forked from AlexsLemonade/refinebio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathillumina_dependencies.R
52 lines (46 loc) · 1.74 KB
/
illumina_dependencies.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
options(warn=2)
options(repos=structure(c(CRAN="http://cran.us.r-project.org")))
options(Ncpus=parallel::detectCores())
devtools::install_version('doParallel', version='1.0.11')
devtools::install_version('data.table', version='1.11.0')
devtools::install_version('optparse', version='1.4.4')
devtools::install_version('lazyeval', version='0.2.1')
devtools::install_version('tidyverse', version='1.2.1')
devtools::install_version('rlang', version='0.3.1')
# devtools::install_url() requires BiocInstaller
install.packages('https://bioconductor.org/packages/3.6/bioc/src/contrib/BiocInstaller_1.28.0.tar.gz')
# Helper function that installs a list of packages based on input URL
install_with_url <- function(main_url, packages) {
lapply(packages,
function(pkg) devtools::install_url(paste0(main_url, pkg)))
}
bioc_url <- 'https://bioconductor.org/packages/3.6/bioc/src/contrib/'
bioc_pkgs <- c(
'oligo_1.42.0.tar.gz',
'limma_3.34.9.tar.gz',
'AnnotationDbi_1.40.0.tar.gz'
)
install_with_url(bioc_url, bioc_pkgs)
release_url <- 'https://bioconductor.org/packages/release/data/annotation/src/contrib/'
illumina_pkgs <- c(
'illuminaHumanv1.db_1.26.0.tar.gz',
'illuminaHumanv2.db_1.26.0.tar.gz',
'illuminaHumanv3.db_1.26.0.tar.gz',
'illuminaHumanv4.db_1.26.0.tar.gz',
'illuminaMousev1.db_1.26.0.tar.gz',
'illuminaMousev1p1.db_1.26.0.tar.gz',
'illuminaMousev2.db_1.26.0.tar.gz',
'illuminaRatv1.db_1.26.0.tar.gz'
)
install_with_url(release_url, illumina_pkgs)
# Load these libraries because apparently just installing them isn't
# enough to verify that they have complementary versions.
library("optparse")
library(data.table)
library("dplyr")
library("rlang")
library(AnnotationDbi)
library(lazyeval)
library(limma)
library(oligo)
library(doParallel)