forked from hemberg-lab/scRNA.seq.course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
09-exprs-overview-reads.Rmd
80 lines (71 loc) · 2.65 KB
/
09-exprs-overview-reads.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
---
output: html_document
---
# Data visualization (Reads)
```{r, message=FALSE, warning=FALSE}
library(scater, quietly = TRUE)
options(stringsAsFactors = FALSE)
reads <- readRDS("blischak/reads.rds")
reads.qc <- reads[fData(reads)$use, pData(reads)$use]
endog_genes <- !fData(reads.qc)$is_feature_control
```
```{r, echo=FALSE}
library(knitr)
opts_chunk$set(out.width='90%', fig.align = 'center')
```
```{r expr-overview-pca-before-qc-reads, fig.cap = "PCA plot of the blischak data"}
scater::plotPCA(reads[endog_genes, ],
ntop = 500,
colour_by = "batch",
size_by = "total_features",
shape_by = "individual",
exprs_values = "counts")
```
```{r expr-overview-pca-after-qc-reads, fig.cap = "PCA plot of the blischak data"}
scater::plotPCA(reads.qc[endog_genes, ],
ntop = 500,
colour_by = "batch",
size_by = "total_features",
shape_by = "individual",
exprs_values = "counts")
```
```{r expr-overview-tsne-before-qc-reads, fig.cap = "tSNE map of the blischak data"}
scater::plotTSNE(reads[endog_genes, ],
ntop = 500,
perplexity = 130,
colour_by = "batch",
size_by = "total_features",
shape_by = "individual",
exprs_values = "counts",
rand_seed = 123456)
```
```{r expr-overview-tsne-after-qc-reads, fig.cap = "tSNE map of the blischak data"}
scater::plotTSNE(reads.qc[endog_genes, ],
ntop = 500,
perplexity = 130,
colour_by = "batch",
size_by = "total_features",
shape_by = "individual",
exprs_values = "counts",
rand_seed = 123456)
```
```{r expr-overview-tsne-after-qc-exercise2-1, fig.cap = "tSNE map of the blischak data (perplexity = 10)", echo=FALSE}
scater::plotTSNE(reads.qc[endog_genes, ],
ntop = 500,
perplexity = 10,
colour_by = "batch",
size_by = "total_features",
shape_by = "individual",
exprs_values = "counts",
rand_seed = 123456)
```
```{r expr-overview-tsne-after-qc-exercise2-2, fig.cap = "tSNE map of the blischak data (perplexity = 200)", echo=FALSE}
scater::plotTSNE(reads.qc[endog_genes, ],
ntop = 500,
perplexity = 200,
colour_by = "batch",
size_by = "total_features",
shape_by = "individual",
exprs_values = "counts",
rand_seed = 123456)
```