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
Copy file name to clipboardExpand all lines: rna_seq.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,17 +217,17 @@ library(gageData)
217
217
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.
218
218
219
219
```R
220
-
res$symbol= mapIds(org.Hs.eg.db,
220
+
res$symbol<- mapIds(org.Hs.eg.db,
221
221
keys=row.names(res),
222
222
column="SYMBOL",
223
223
keytype="ENSEMBL",
224
224
multiVals="first")
225
-
res$entrez= mapIds(org.Hs.eg.db,
225
+
res$entrez<- mapIds(org.Hs.eg.db,
226
226
keys=row.names(res),
227
227
column="ENTREZID",
228
228
keytype="ENSEMBL",
229
229
multiVals="first")
230
-
res$name= mapIds(org.Hs.eg.db,
230
+
res$name<- mapIds(org.Hs.eg.db,
231
231
keys=row.names(res),
232
232
column="GENENAME",
233
233
keytype="ENSEMBL",
@@ -243,16 +243,16 @@ The gageData package has pre-compiled databases mapping genes to KEGG pathways a
243
243
```R
244
244
data(kegg.sets.hs)
245
245
data(sigmet.idx.hs)
246
-
kegg.sets.hs=kegg.sets.hs[sigmet.idx.hs]
246
+
kegg.sets.hs<-kegg.sets.hs[sigmet.idx.hs]
247
247
head(kegg.sets.hs, 3)
248
248
```
249
249
250
250
Run the pathway analysis. See help on the gage function with `?gage`. Specifically, you might want to try changing the value of same.dir.
Finally, the `pathview()` function in the pathview package makes the plots. Let’s write a function so we can loop through and draw plots for the top 5 pathways we created above.
0 commit comments