Question: multiple annotations with get()?
4.8 years ago by
Ed Siefker • 220
Ed Siefker • 220 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: SFRP2 MGP COL10A1 MSRB3 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) Error in .checkKeysAreWellFormed(keys) : keys must be supplied in a character vector with no NAs > class(symb[])  "character" > length(symb[])  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?
ADD COMMENT • link •