You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instantiate the DESeqDataSet and generate result table. See ?DESeqDataSetFromTximport and ?DESeq for more information about the steps performed by the program.
run the `summary` command to have an idea of how many genes are up and down-regulated between the two conditions
138
+
139
+
`summary(res)`
140
+
141
+
DESeq uses a negative binomial distribution. Such distribution has two parameters: mean and dispersion. The dispersion is a parameter describing how much the variance deviates from the mean.
142
+
143
+
You can read more about the methods used by DESeq2 in the [paper](https://genomebiology.biomedcentral.com/articles/10.1186/s13059-014-0550-8) or the [vignette](https://www.bioconductor.org/packages/devel/bioc/vignettes/DESeq/inst/doc/DESeq.pdf)
144
+
145
+
Plot dispersions:
146
+
147
+
```R
148
+
plotDispEsts(dds, main="Dispersion plot")
149
+
```
150
+
151
+
For clustering and heatmaps, we need to log transform our data:
As always, install and load the necessary packages:
203
+
204
+
```R
205
+
biocLite("AnnotationDbi")
206
+
biocLite("org.Hs.eg.db")
207
+
biocLite("pathview")
208
+
biocLite("gage")
209
+
biocLite("gageData")
210
+
211
+
library(AnnotationDbi)
212
+
library(org.Hs.eg.db)
213
+
library(pathview)
214
+
library(gage)
215
+
library(gageData)
216
+
```
217
+
218
+
Let’s use the mapIds function to add more columns to the results. The row.names of our results table has the Ensembl gene ID (our key), so we need to specify keytype=ENSEMBL. The column argument tells the mapIds function which information we want, and the multiVals argument tells the function what to do if there are multiple possible values for a single input value. Here we ask to just give us back the first one that occurs in the database. Let’s get the Entrez IDs, gene symbols, and full gene names.
0 commit comments