Skip to content
Prev 3207 / 21307 Next

[Bioc-devel] GSEABase::mapIdentifiers() stopped mapping identifiers

On 03/14/2012 07:08 AM, Robert Castelo wrote:
So the answer to the original post should have been closer to 'use 
EntrezIdentifier for org.Hs.eg.db annotations'? As in the final line of

library(Biobase)
library(org.Hs.eg.db)
library(GSVAdata)
data(c2BroadSets)
mapped_genes <- mappedkeys(org.Hs.egSYMBOL)
exp <- matrix(rnorm(1000), nrow=100,
     dimnames=list(mapped_genes[1:100], paste("sample", 1:10, sep="")))
eset <- new("ExpressionSet", exprs=exp, annotation="org.Hs.eg.db")
gsc <- mapIdentifiers(c2BroadSets, EntrezIdentifier(annotation(eset)))

class?GeneIdentifierType says AnnotationIdentifier is meant for 
Affymetrix chip packages (there seem to be some underlying problems 
anyway, GeneSet(eset) creates AnnotationIdentifier).

Martin