-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path01-reqs.Rmd
207 lines (160 loc) · 7.11 KB
/
01-reqs.Rmd
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
---
output: html_document
---
# Technical requirements
## R-based
This course is based on the popular programming language [R](https://www.r-project.org/). However, one of the methods that we describe ([SNN-Cliq](http://bioinfo.uncc.edu/SNNCliq/)) is only partly R-based. It makes a simple _python_ call from R and requires a user to have write permissions to the working directory.
## Docker image
If you do not want to install all the packages required for the course manually, you can run a course docker image which contains all the required packages.
Make sure Docker is installed on your system. If not, please follow [these instructions](https://docs.docker.com/engine/installation/). To run the course docker image:
```
docker run -it quay.io/hemberg-group/scrna-seq-course:latest R
```
It will download the course docker image (may take some time) and start a new R session in a docker container with all packages installed and all data files available.
## Manual installation
If you are not using a docker image of the course, then to be able to run all code chunks of the course you need to clone or download the [course GitHub repository](https://github.com/hemberg-lab/scRNA.seq.course) and start an R session in the cloned folder. You will also need to install the following R packages (ordered by purposes):
### General
[devtools](https://cran.r-project.org/web/packages/devtools/index.html)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
install.packages("devtools")
```
[BiocInstaller](http://bioconductor.org/packages/BiocInstaller)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
source('https://bioconductor.org/biocLite.R')
biocLite('BiocInstaller')
```
[scRNA.seq.funcs](https://github.com/hemberg-lab/scRNA.seq.funcs) - R package containing some special functions used in this course:
```{r, eval=FALSE, message=FALSE, warning=FALSE}
devtools::install_github("hemberg-lab/scRNA.seq.funcs")
```
### Plotting
[pheatmap](https://cran.r-project.org/web/packages/pheatmap/index.html)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
install.packages("pheatmap")
```
[limma](https://bioconductor.org/packages/limma)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("limma")
```
### QC and normalisation
[scater](http://bioconductor.org/packages/scater)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
source('https://bioconductor.org/biocLite.R')
biocLite('scater')
```
[mvoutlier](https://cran.r-project.org/web/packages/mvoutlier/index.html) - for an automatic outlier detection used by the [scater](https://github.com/davismcc/scater) package.
```{r, eval=FALSE, message=FALSE, warning=FALSE}
install.packages("mvoutlier")
```
[statmod](https://cran.r-project.org/web/packages/statmod/index.html) - a dependency for [mvoutlier](https://cran.r-project.org/web/packages/mvoutlier/index.html).
```{r, eval=FALSE, message=FALSE, warning=FALSE}
install.packages("statmod")
```
[scran](http://bioconductor.org/packages/scran)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
source('https://bioconductor.org/biocLite.R')
biocLite('scran')
```
[RUVSeq](https://bioconductor.org/packages/RUVSeq)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("RUVSeq")
```
### Clustering
[pcaReduce](https://github.com/JustinaZ/pcaReduce)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
devtools::install_github("JustinaZ/pcaReduce")
```
[pcaMethods](http://bioconductor.org/pcaMethods) is a [pcaReduce](https://github.com/JustinaZ/pcaReduce) dependency:
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("pcaMethods")
```
[SC3](http://bioconductor.org/packages/SC3)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
source("https://bioconductor.org/biocLite.R")
biocLite("SC3")
```
[SEURAT](https://github.com/satijalab/seurat)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
devtools::install_github('satijalab/seurat')
```
### Dropouts
[M3Drop](http://bioconductor.org/packages/M3Drop)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
source("https://bioconductor.org/biocLite.R")
biocLite("M3Drop")
```
### Pseudotime
[TSCAN](https://bioconductor.org/packages/TSCAN)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("TSCAN")
```
[monocle](https://bioconductor.org/packages/monocle)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("monocle")
```
[destiny](https://bioconductor.org/packages/destiny)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("destiny")
```
[SLICER](https://github.com/jw156605/SLICER)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
devtools::install_github('jw156605/SLICER')
```
### Differential Expression
[ROCR](https://cran.r-project.org/web/packages/ROCR/index.html)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
install.packages("ROCR")
```
[edgeR](https://bioconductor.org/packages/edgeR)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("edgeR")
```
[DESeq2](https://bioconductor.org/packages/DESeq2)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("DESeq2")
```
[MAST](https://bioconductor.org/packages/MAST)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("MAST")
```
[scde](http://hms-dbmi.github.io/scde/) (optional)
```{r, eval=FALSE, message=FALSE, warning=FALSE}
devtools::install_github("hms-dbmi/scde", build_vignettes = FALSE)
```
* Installation on Mac OS X may require [this additional gfortran library](http://thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error/):
```
curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /
```
* See the [help page](http://hms-dbmi.github.io/scde/help.html) for additional support.
## Extra tools
[MultiAssayExperiment](https://bioconductor.org/packages/MultiAssayExperiment) for working with [conquer](http://imlspenticton.uzh.ch:3838/conquer/) datasets:
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("MultiAssayExperiment")
```
[SummarizedExperiment](https://bioconductor.org/packages/SummarizedExperiment) for working with [conquer](http://imlspenticton.uzh.ch:3838/conquer/) datasets:
```{r, eval=FALSE, message=FALSE, warning=FALSE}
## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite("SummarizedExperiment")
```