Skip to content
Prev 5344 / 21312 Next

[Bioc-devel] RE : AnnotationDbi and select function

Also,

There is nothing wrong with using GENEID the way that you initially 
did.  It was just a small bug that prevented some internal subsetting 
from working properly and that is now fixed.

It just happened that GENEID was equivalent to ENTREZID in this case.  
And that ends up making it a slower choice just because the software has 
to do more work (in case GENEID is something else). So since you know 
that these are in fact ENTREZIDs, you can take Jims suggestion as a 
short cut and thus get a little performance boost.

But it's still a less specific thing to request than GENEID (which could 
potentially be another kind of ID).  So the two things (GENEID and 
ENTREZID) are not always the same kind of thing.  They just happened to 
both be ENTREZID in *this* case.  In a different scenario GENEID from 
the associated TranscriptDb might be something like an ensembl gene ID.  
And then to use a shortcut would mean using ENSEMBL instead of ENTREZID 
to do the shortcut...

In contrast: GENEID should normally always work (but it should also be a 
tiny bit slower).

Sorry if you know all this stuff, but I think its better to be explicit 
than to say too little.


   Marc
On 03/12/2014 02:53 PM, Marc Carlson wrote: