# Needed for most chapters
install.packages("tidyverse")
# Needed for certain chapter
install.packages(c("plotly",
"DT",
"knitr",
"rmarkdown",
"survminer",
"ModelMetrics",
"gower",
"randomForest",
"gbm",
"glmnet",
"mice",
"prophet",
"tidytext",
"gutenbergr",
"tm",
"topicmodels"))
# For the predictive modeling chapter
install.packages("caret", dependencies = c("Depends", "Suggests"))
# Bioconductor packages are installed differently
install.packages("BiocManager")
BiocManager::install(c("DESeq2",
"RTCGA",
"RTCGA.clinical",
"RTCGA.mRNA",
"ggtree",
"Biostrings"))
Appendix A — Setup
A.1 Software
- R. If you don’t have R installed, download and install it from CRAN.
- RStudio. Download and install it from RStudio’s website.
- R packages. Install the following packages by running the following code in RStudio:
A.2 Data
- Option 1: Download all the data. Download and extract this zip file (11.36 Mb) with all the data for the entire workshop. This may include additional datasets that we won’t use here.
-
Option 2: Download individual datasets as needed.
- Create a new folder somewhere on your computer that’s easy to get to (e.g., your Desktop). Name it
bds
. Inside that folder, make a folder calleddata
, all lowercase. - Download individual data files as needed, saving them to the new
bdsr/data
folder you just made. Click to download. If data displays in your browser, right-click and select Save link as… (or similar) to save to the desired location.
- Create a new folder somewhere on your computer that’s easy to get to (e.g., your Desktop). Name it
- data/airway_metadata.csv
- data/airway_scaledcounts.csv
- data/annotables_grch38.csv
- data/austen.csv
- data/brauer2007_messy.csv
- data/brauer2007_sysname2go.csv
- data/brauer2007_tidy.csv
- data/dmd.csv
- data/flu_genotype.csv
- data/gapminder.csv
- data/grads_dd.csv
- data/grads.csv
- data/h7n9_analysisready.csv
- data/h7n9.csv
- data/heartrate2dose.csv
- data/ilinet.csv
- data/movies_dd.csv
- data/movies_imdb.csv
- data/movies.csv
- data/nhanes_dd.csv
- data/nhanes.csv
- data/SRP026387_metadata.csv
- data/SRP026387_scaledcounts.csv
- data/stressEcho.csv