Skip to content

Instantly share code, notes, and snippets.

@langsdlc
Created July 28, 2020 19:30
Show Gist options
  • Save langsdlc/0dfa307847e147fa5e20cc307ce3fa3f to your computer and use it in GitHub Desktop.
Save langsdlc/0dfa307847e147fa5e20cc307ce3fa3f to your computer and use it in GitHub Desktop.
var welcome_message = "<div class=\"message-header\">Welcome</div>" +
"<br />" +
"<h2>Welcome to the Research IT Resources Guide.</h2>" +
"<p>What do you need more information on?</p>";
var data_acquisition_message = "<div class=\"message-header\">Data Acquisition</div>" +
"<br />" +
"<h2>Data can be captured or resides in many formats.</h2>" +
"<p>Does the data you need already exist?</p>";
var data_acquisition_yes_message = "<div class=\"message-header\">Data Curation Experts</div>" +
"<br />" +
"<p>There are many places on campus that can help connect you with the data you need. The " +
"<a href=\"http://library.vanderbilt.edu/scholarly/data.php\">Jean and Alexander Heard Library</a>" +
", as well as the " +
"<a href=\"https://www.vanderbilt.edu/datascience/\"> Data Science Institute<a/>" +
" and the " +
"<a href=\"https://www.vanderbilt.edu/digitalhumanities/\">Center for Digital Humanities</a> " +
"can help to connect you with databases already in existence. Also worth consulting with, the Vanderbilt " +
"<a href=\"https://www.vanderbilt.edu/digitalhumanities/\">Creative Data Solutions Shared Resource.</a></p>";
var data_acquisition_no_message = "<div class=\"message-header\">No</div>" +
"<br />" +
"<p>Do you need to collect your data?</p>";
var data_collection_tools_yes_message = "<div class=\"message-header\">Yes- Data Collection Tools</div>" +
"<br />" +
"<p><a href=\"https://www.vanderbilt.edu/datascience/\"> RedCap<a/></p>" +
"<p><a href=\"https://opendatakit.org/\"> Open Data Kit<a/></p>" +
"<p><a href=\"https://www.library.vanderbilt.edu/scholarly/data.php\"> Data Curation Specialist<a/></p>";
var jean_and_alexander_heard_library_message = "<div class=\"message-header\">Jean and Alexander Heard Library</div>" +
"<br />" +
"<p>The library has training and data resources.</p>";
var contact_research_it_message = "<div class=\"message-header\">Contact Research IT</div>" +
"<br />" +
"<p>Please contact the " +
"<a href=\"https://research.vanderbilt.edu/rit‑overview/staff/\">Research IT Consultant.</a></p>";
var statistical_analysis_message = "<div class=\"message-header\">Statistical Analysis</div>" +
"<br />" +
"<p>The <a href=\"https://www.vanderbilt.edu/datascience/\">Vanderbilt Data Science Institute</a> offers workshops, consultations, and bootcamps related to data science and statistical analysis.</p>" +
"<br />" +
"<p>The <a href=\"https://www.vanderbilt.edu/biostatistics-graduate/training/\">Department of Biostatistics</a> offers workshops and clinics, supporting a wide range of needs, such as the R Clinic, Biostatistics Clinic, Clinical Research Center workshops, the Center for Quantitative Science workshops, as well as the Statistical Computing Series.</p>" +
"<br />" +
"<p>The <a href=\"https://www.vanderbilt.edu/biostatistics-graduate/training/\">Kennedy Center</a> also offers Biostatistics an Bioinformatics education and consultation in experimental design, data collection and storage, analysis, and interpretation of findings.</p>";
var geospatial_analysis_message = "<div class=\"message-header\">Geospatial Analysis Resources</div>" +
"<br />" +
"<p><a href=\"https://www.vanderbilt.edu/sarl/\">Vanderbilt Spatial Analysis Research Lab</a></p>" +
"<p><a href=\"http://www.library.vanderbilt.edu/scholarly/gis.php\">Jean and Alexander Heard Library</a></p>" +
"<p><a href=\"https://research.vanderbilt.edu/rit‑overview/short‑term‑consultation‑and‑programming/\">Research Software Engineer for Hire</a></p>";
var big_data_message = "<div class=\"message-header\">Big Data</div>" +
"<br />" +
"<p>Data Science Institute</p>";
var custom_programming_solutions_message = "<div class=\"message-header\">Custom Programming Solutions</div>" +
"<br />" +
"<h2>Research IT wants to connect you with a programmer that can best fit your need. The selections below do not include all supported languages</h2>" +
"<p>What type of programming solution or language do you need support with?</p>";
var research_software_engineer_for_hire_message = "<div class=\"message-header\">Research Software Engineer for Hire</div>" +
"<br />" +
"<p>Contact the " +
"<a href=\"https://research.vanderbilt.edu/rit‑overview/short‑term‑consultation‑and‑programming/\">Research Software Engineer for Hire</a></p>";
var ACCRE_message = "<div class=\"message-header\">ACCRE</div>" +
"<br />" +
"<p>Contact ACCRE for more information.</p>";
var vanderbilt_1TB_storage = "<div class=\"message-header\">Vanderbilt Storage Resources</div>" +
"<br />" +
"<p><a href=\"https://vanderbilt.account.box.com/login\">Vanderbilt Box</a> and " +
"<a href=\"https://it.vanderbilt.edu/services/catalog/collaboration_and_communication/collaboration/OneDrive_for_Business.php\">Vanderbilt One Drive</a>" +
" are free storage solutions with a maximum file upload size of 15 GB.</p>";
var data_science_institute_message = "<div class=\"message-header\">Data Science Institute</div>" +
"<br />" +
"<p>Please contact the <a href=\"https://www.vanderbilt.edu/datascience/events/data-science-workshops/\">Data Science Institute</a></p>";
var data_storage_message = "<div class=\"message-header\">Data Storage</div>" +
"<br />" +
"<h2>Secure Storage</h2>" +
"<p>Do you need secure storage (is there a restriction on how your data may be stored and accessed?)?</p>";
var secure_storage_options_message = "<div class=\"message-header\">Secure Storage Options</div>" +
"<br />" +
"<h2>We have multiple ways of accommodating secure storage needs. Storage options are determined by size and level of security needed for your data." +
"<p>Have you completed all necessary forms related to contracting your data use agreement? If not please review the requirements from " +
"<a href=\"https://www.vanderbilt.edu/sponsoredprograms/contracts_data_use_agreements.php\"> Sponsored Programs.</a></p>";
var amazon_web_services_message = "<div class=\"message-header\">Amazon Web Services</div>" +
"<br />" +
"<p>VUIT is hosting Amazon Web Services for secure storage solutions</p>";
var data_storage_message_2 = "<div class=\"message-header\">Data Storage</div>" +
"<br />" +
"<h2>At Vanderbilt we have some various data storage solutions availble. Many times the solution you need depends on the size and type of data you need to store.</h2>" +
"<p>How large is the dataset you need to store?</p>"
var data_storage_message_3 = "<div class=\"message-header\">Data Storage</div>" +
"<br />" +
"<h2>At Vanderbilt we have some various data storage solutions availble. Many times the solution you need depends on the size and type of data you need to store.</h2>" +
"<p>How large is the dataset you need to store?</p>";
var vanderbilt_1TB_storage = "<div class=\"message-header\">Vanderbilt Storage Resources</div>" +
"<br />" +
"<p><a href=\"https://vanderbilt.account.box.com/login\">Vanderbilt Box</a> and " +
"<a href=\"https://it.vanderbilt.edu/services/catalog/collaboration_and_communication/collaboration/OneDrive_for_Business.php\">Vanderbilt One Drive</a>" +
" are free storage solutions with a maximum file upload size of 15 GB.</p>";
var training_and_education_message = "<div class=\"message-header\">Training and Education</div>" +
"<br />" +
"<h3>At Vanderbilt, we have many training resources availble, both free and paid. If you don't see the type of training you need, please suggest it as a topic using the feedback option.</h3>" +
"<p>What type of training do you need?</p>";
var data_analysis_message = "<div class=\"message-header\">Data Analysis</div>" +
"<br />" +
"<h3>Data analysis comes in many flavors, the solution depends on the type of outcome or research you are performing. Some of these types of analysis overlap, so choose the answer that best fits your need</h3>" +
"<p>What type of analysis do you need?</p>";
var vanderbilt_training = "<div class=\"message-header\">Training and Resources</div>" +
"<br />" +
"<p>Vanderbilt Research IT, Data Science Institute, ACCRE, and the Library offers <a href=\"https://research.vanderbilt.edu/researchadministration/about/research-it/rit-overview/education-and-training/\">Software Carpentry</a> bootcamps twice a semester. Unix, Git and Version Control, R, and Python are taught on a rotating basis.</p>"+
"<br />" +
"<p>The Data Science Institute offers workshops and bootcamps on R and Python. Please check their <a href=\"https://www.vanderbilt.edu/datascience/events/data-science-workshops/\">website</a> for updated offerings.</p>"+
"<br />" +
"<p>For gentle introductions to various digital skills please visit the <a href=\"https://www.library.vanderbilt.edu/scholarly/workshops.php\">Vanderbilt Library Digital Scholarship and Communications</a> website.</p>";
var data = {
message: welcome_message,
decisions: [{
answer: "Data Acquisition",
class: "yellow",
message: data_acquisition_message,
decisions: [{
answer: "Yes",
class: "yellow",
message: data_acquisition_yes_message
},
{
answer: "No",
class: "red",
message: data_acquisition_no_message,
decisions: [{
answer: "Yes",
class: "yellow",
message: data_collection_tools_yes_message
},
{
answer: "No",
class: "red",
message: contact_research_it_message
},
{
answer: "Not Sure",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "Not Sure",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "Data Analysis",
class: "yellow",
message: data_analysis_message,
decisions: [{
answer: "Custom",
class: "yellow",
message: contact_research_it_message
},
{
answer: "Statistical Analysis",
class: "yellow",
message: statistical_analysis_message
},
{
answer: "Geospatial Analysis",
class: "yellow",
message: geospatial_analysis_message
},
{
answer: "Big Data",
class: "yellow",
message: big_data_message
},
{
answer: "Not Sure",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "Custom Programming Solutions",
class: "yellow",
message: custom_programming_solutions_message,
decisions: [{
answer: "Web development, e.g., HTML, JavaScript, CSS",
class: "yellow",
message: research_software_engineer_for_hire_message
},
{
answer: "Software development, e.g., Python, C, C++, Java",
class: "yellow",
message: research_software_engineer_for_hire_message
},
{
answer: "Data Analytics, e.g., Python, R",
class: "yellow",
message: research_software_engineer_for_hire_message
},
{
answer: "I don't see what I need",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "Training and Education",
class: "yellow",
message: training_and_education_message,
decisions: [{
answer: "High-Performance Computation",
class: "yellow",
message: ACCRE_message
},
{
answer: "Data Science Methods",
class: "yellow",
message: data_science_institute_message
},
{
answer: "Git and Version Control",
class: "yellow",
message: vanderbilt_training
},
{
answer: "Python",
class: "yellow",
message: vanderbilt_training
},
{
answer: "R",
class: "yellow",
message: vanderbilt_training
},
{
answer: "Geographic Information Systems",
class: "yellow",
message: jean_and_alexander_heard_library_message
},
{
answer: "Basic Statistics",
class: "yellow",
message: data_science_institute_message
},
{
answer: "My area is not listed",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "Data Storage",
class: "yellow",
message: data_storage_message,
decisions: [{
answer: "Yes",
class: "yellow",
message: secure_storage_options_message,
decisions: [{
answer: "Yes",
class: "yellow",
message: data_storage_message_2,
decisions: [{
answer: "Less than 1 TB",
class: "yellow",
message: vanderbilt_1TB_storage
},
{
answer: "More than 1 TB but less than 10 TB",
class: "yellow",
message: ACCRE_message
},
{
answer: "10‑100 TB",
class: "yellow",
message: ACCRE_message
},
{
answer: "More than 100 TB",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "No",
class: "red",
message: data_storage_message_2,
decisions: [{
answer: "Less than 1 TB",
class: "yellow",
message: vanderbilt_1TB_storage
},
{
answer: "More than 1 TB but less than 10 TB",
class: "yellow",
message: ACCRE_message
},
{
answer: "10‑100 TB",
class: "yellow",
message: ACCRE_message
},
{
answer: "More than 100 TB",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "I don't know",
class: "yellow",
message: contact_research_it_message
}
]
},
{
answer: "No",
class: "red",
message: data_storage_message_2,
decisions: [{
answer: "Less than 1 TB",
class: "yellow",
message: vanderbilt_1TB_storage
},
{
answer: "More than 1 TB but less than 10 TB",
class: "yellow",
message: ACCRE_message
},
{
answer: "10‑100 TB",
class: "yellow",
message: ACCRE_message
},
{
answer: "More than 100 TB",
class: "yellow",
message: contact_research_it_message
}
]
}
]
}
]
};
$(document).ready(function() {
$('.main').decisionTree({
data: data
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment