Skip to content
Prev 5339 / 21312 Next

[Bioc-devel] AnnotationDbi and select function

Hi Nicolas,
On 3/12/2014 12:39 PM, Servant Nicolas wrote:
Not sure what 'GENEID' is in this context - it appears to be Entrez 
Gene. But anyway, if you use "ENTREZID" instead, it works fine:

 > symbol <- select(Homo.sapiens, names(geneGR), "SYMBOL", "ENTREZID")
 > symbol <- select(Homo.sapiens, names(geneGR), "GENEID", "ENTREZID")
Error in res[, .reverseColAbbreviations(x, cnames), drop = FALSE] :
   incorrect number of dimensions
 > symbol <- select(Homo.sapiens, names(geneGR)[1:1000], "GENEID", 
"ENTREZID")
 > symbol <- select(Homo.sapiens, names(geneGR)[1:1001], "GENEID", 
"ENTREZID")
Error in res[, .reverseColAbbreviations(x, cnames), drop = FALSE] :
   incorrect number of dimensions

Best,

Jim