[BioC] multiple annotations with get()?
sdavis2 at mail.nih.gov
Fri Oct 11 21:34:45 CEST 2013
On Fri, Oct 11, 2013 at 3:31 PM, Ed Siefker <ebs15242 at gmail.com> wrote:
> I have a list of gene symbols I want to convert into entrez ids.
> For example, I have a txt file with these symbols:
> I've loaded Biobase, annotate, and org.Hs.eg.db and done the following:
> symb<- read.table("example.txt",stringsAsFactors=FALSE)
>> get(symb, org.Hs.egSYMBOL2EG)
You may want to use mget (multiple get) instead.
> Error in .checkKeysAreWellFormed(keys) :
> keys must be supplied in a character vector with no NAs
>  "character"
>  4
>> get(symb[], org.Hs.egSYMBOL2EG)
>  "6423"
> Why is get() only giving me one entrez ID? Shouldn't it give me a vector
> of 4 entrez IDs when I pass it a vector of 4 gene symbols?
> Bioconductor mailing list
> Bioconductor at r-project.org
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
More information about the Bioconductor