-
Notifications
You must be signed in to change notification settings - Fork 16
/
genomic_data.R
16 lines (11 loc) · 1.13 KB
/
genomic_data.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Installation for genomic analysis in R
# To run the following code, you can source this file within an R session:
# open this file in VSCode, copy and paste the code into your session console
# The packages below include tools from Bioconductor, a software suite designed for genomic analsyis in R. These packages include (relatively) large data files, as well as many dependencies (other packages that are installed with the main package). Please plan ahead for installing these tools, and be aware that the output from these installs is verbose and may include warnings. Feel free to show up early to lecture if you'd like assistance confirming the installs completed satisfactorily.
# install package to manage Bioconductor packages
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
# install bioconductor packages
BiocManager::install(c("VariantAnnotation", "GenomicRanges", "Rsamtools", "plyranges"), update = TRUE, ask = FALSE)
# if you receive the following prompt in the console, hit Enter (confirming yes)
# Do you want to install from sources the package which needs compilation? (Yes/no/cancel)