Skip to content

Commit c84c710

Browse files
committed
Try to fix vignette image links #1
1 parent 5cedaed commit c84c710

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

vignettes/introduction.Rmd

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -182,20 +182,16 @@ Here we will add a gene symbol column to the `airway` object. This will be used
182182
library(org.Hs.eg.db)
183183
library(AnnotationDbi)
184184
185-
# Add gene symbol and entrez for better annotation
186-
rowData(airway)$symbol = AnnotationDbi::mapIds(org.Hs.eg.db::org.Hs.eg.db,
187-
keys = rownames(airway),
188-
keytype = "ENSEMBL",
189-
column = "SYMBOL",
190-
multiVals = "first"
191-
)
192-
193-
rowData(airway)$entrezid = AnnotationDbi::mapIds(org.Hs.eg.db::org.Hs.eg.db,
194-
keys = rownames(airway),
185+
# Add gene symbol and entrez
186+
airway <-
187+
airway |>
188+
189+
mutate(entrezid = mapIds(org.Hs.eg.db,
190+
keys = .feature,
195191
keytype = "ENSEMBL",
196192
column = "ENTREZID",
197193
multiVals = "first"
198-
)
194+
))
199195
200196
detach("package:org.Hs.eg.db", unload = TRUE)
201197
detach("package:AnnotationDbi", unload = TRUE)

0 commit comments

Comments
 (0)