从注释数据库中选择注释的函数不起作用

JFG*_*aef 2 select annotations r dplyr

我正在尝试使用 org.Hs.eg.db 中的 Entrez 基因 ID 来注释基因符号。我在使用之前是这样做的:

select(org.Hs.eg.db, keys=mykeys, columns=c("SYMBOL", "ENTREZID"), keytype="SYMBOL")
Run Code Online (Sandbox Code Playgroud)

mykeys 是基因符号的向量。它以前有效,但我没有得到:

`error in usemethod( depth ) no applicable method for 'select_'applied to an object of class "c('OrgDb', 'AnnotationDb', 'envRefClass', '.environment', 'refClass', 'environment', 'refObject', 'AssayData')`"
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?提前致谢!!

JFG*_*aef 5

好吧,我自己解决了:

AnnotationDbi::select(org.Hs.eg.db, keys=mykeys, columns=c("SYMBOL", "ENTREZID"), keytype="SYMBOL")