Hi all,
I am using clusterProfiler to perform KEGG enrichment. I have a list of gene Symbol (Rat genes). First I need to translate the symbols to EntrezID.
I installed the Genome wide annotation for Rat:
source("https://bioconductor.org/biocLite.R")
biocLite("org.Rn.eg.db")
Then I tried to run the command:
x <- c("GPX3", "GLRX", "LBP", "CRYAB", "DEFB1", "HCLS1", "SOD2", "HSPA2",
"ORM1", "IGFBP1", "PTHLH", "GPC3", "IGFBP3","TOB1", "MITF", "NDRG1",
"NR1H4", "FGFR3", "PVR", "IL6", "PTPRM", "ERBB2", "NID2", "LAMB1",
"COMP", "PLS3", "MCAM", "SPP1", "LAMC1", "COL4A2", "COL4A1", "MYOC",
"ANXA4", "TFPI2", "CST6", "SLPI", "TIMP2", "CPM", "GGT1", "NNMT",
"MAL", "EEF1A2", "HGD", "TCN2", "CDA", "PCCA", "CRYM", "PDXK",
"STC1", "WARS", "HMOX1", "FXYD2", "RBP4", "SLC6A12", "KDELR3", "ITM2B")
eg = bitr(x, fromType="SYMBOL", toType="ENTREZID", OrgDb="org.Rn.eg.db")
Then I got the warning message:
'select()' returned 1:1 mapping between keys and columns Warning
message: In bitr(x4, fromType = "SYMBOL", toType = "ENTREZID", OrgDb =
Rat) :
98.21% of input gene IDs are fail to map...
Could anyone tell me what happened and how should I do?
Many thanks,
Stanley
wayj86 : If you use @Kevin's solution below then be sure to replace Rat biomart in place of human example below.
Good catch genomax. I have added a comment to my answer for Rattus norvegicus.
@wayj86: You have now received multiple answers below. If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted. If possible, you should test all of then and can "accept" multiple answers as correct.
Copy that. thank you