annotate DESeq_02.Rmd @ 0:6f94b4b9de44 draft

planemo upload
author mingchen0919
date Tue, 27 Feb 2018 23:57:53 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
1 ---
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
2 output: html_document
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
3 ---
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
4
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
5 ```{r setup, include=FALSE, warning=FALSE, message=FALSE}
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
6 knitr::opts_chunk$set(
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
7 echo = as.logical(opt$X_e),
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
8 error = TRUE
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
9 )
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
10 ```
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
11
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
12
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
13
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
14 # Pre-filtering the dataset.
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
15
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
16 We can remove the rows that have 0 or 1 count to reduce object size and increase the calculation speed.
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
17
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
18 * Number of rows before pre-filtering
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
19 ```{r}
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
20 nrow(dds)
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
21 ```
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
22
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
23 * Number of rows after pre-filtering
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
24 ```{r}
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
25 dds = dds[rowSums(counts(dds)) > 1, ]
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
26 nrow(dds)
6f94b4b9de44 planemo upload
mingchen0919
parents:
diff changeset
27 ```