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
This is a draft of how to fix it:
#check available updated database
query(ah,'org.Hs.eg.db.sqlite')
human_orgdb <- query(ah, c("Homo sapiens", "OrgDb"))
test <- human_orgdb[["AH111575"]]
test
The text was updated successfully, but these errors were encountered:
Unfortunately while this works, the following line from the original code, which uses select() will not work on it without specifying the package select() is from:
human_orgdb <- human_orgdb[["AH111575"]]
annotations_orgdb <- select(human_orgdb, res_tableOE_tb$gene, c("SYMBOL", "GENENAME", "ENTREZID"), "ENSEMBL")
Error in UseMethod("select") :
no applicable method for 'select' applied to an object of class "c('OrgDb', 'AnnotationDb', 'envRefClass', '.environment', 'refClass', 'environment', 'refObject', 'AssayData')"
This, however, will work (with a warning):
human_orgdb <- human_orgdb[["AH111575"]]
annotations_orgdb <- AnnotationDbi::select(human_orgdb, res_tableOE_tb$gene, c("SYMBOL", "GENENAME", "ENTREZID"), "ENSEMBL")
'select()' returned 1:many mapping between keys and columns
Which also implies that the note itself is wrong, since the note mentions these 1:many mappings are automatically removed.
This is a draft of how to fix it:
#check available updated database
query(ah,'org.Hs.eg.db.sqlite')
human_orgdb <- query(ah, c("Homo sapiens", "OrgDb"))
test <- human_orgdb[["AH111575"]]
test
The text was updated successfully, but these errors were encountered: