forked from gitter-badger/VisualisingGenomicsData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installPackages.r
37 lines (26 loc) · 2.1 KB
/
installPackages.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
source("https://bioconductor.org/biocLite.R")
biocLite("Gviz")
#http://www.bioconductor.org/packages/3.3/data/annotation/html/BSgenome.Mmusculus.UCSC.mm9.html
#http://www.bioconductor.org/packages/3.3/data/annotation/html/TxDb.Mmusculus.UCSC.mm10.knownGene.html
#http://www.bioconductor.org/packages/3.3/data/annotation/html/TxDb.Mmusculus.UCSC.mm9.knownGene.html
#http://www.bioconductor.org/packages/3.3/data/annotation/html/TxDb.Hsapiens.UCSC.hg19.knownGene.html
## Follow link to download (Example below for installation assumes you download to desktop)
http://www.bioconductor.org/packages/3.3/data/annotation/src/contrib/BSgenome.Mmusculus.UCSC.mm9_1.4.0.tar.gz
http://www.bioconductor.org/packages/3.3/data/annotation/src/contrib/TxDb.Hsapiens.UCSC.hg19.knownGene_3.2.2.tar.gz
http://www.bioconductor.org/packages/3.3/data/annotation/src/contrib/TxDb.Mmusculus.UCSC.mm9.knownGene_3.2.2.tar.gz
http://www.bioconductor.org/packages/3.3/data/annotation/src/contrib/TxDb.Mmusculus.UCSC.mm10.knownGene_3.2.2.tar.gz
## Make sure you have directory on Desktop called "Rlibs"
setwd("C:/Users/tcarroll/Desktop")
mydir <- getwd()
libloc<-file.path(mydir,"TxDb.Hsapiens.UCSC.hg19.knownGene_3.2.2.tar.gz")
install.packages(libloc, lib="C:/Users/tcarroll/Desktop/Rlibs", repos = NULL, type = "source")
libloc<-file.path(mydir,"TxDb.Mmusculus.UCSC.mm10.knownGene_3.2.2.tar.gz")
install.packages(libloc, lib="C:/Users/tcarroll/Desktop/Rlibs", repos = NULL, type = "source")
libloc<-file.path(mydir,"TxDb.Mmusculus.UCSC.mm9.knownGene_3.2.2.tar.gz")
install.packages(libloc, lib="C:/Users/tcarroll/Desktop/Rlibs", repos = NULL, type = "source")
libloc<-file.path(mydir,"BSgenome.Mmusculus.UCSC.mm9_1.4.0.tar.gz")
install.packages(libloc, lib="C:/Users/tcarroll/Desktop/Rlibs", repos = NULL, type = "source")
library(TxDb.Hsapiens.UCSC.hg19.knownGene, lib.loc="C:/Users/tcarroll/Desktop/Rlibs")
library(TxDb.Mmusculus.UCSC.mm10.knownGene, lib.loc="C:/Users/tcarroll/Desktop/Rlibs")
library(TxDb.Mmusculus.UCSC.mm9.knownGene, lib.loc="C:/Users/tcarroll/Desktop/Rlibs")
library(BSgenome.Mmusculus.UCSC.mm9, lib.loc="C:/Users/tcarroll/Desktop/Rlibs")