Inter-conversion between EntrezGene ID and Symbols

Code

library (org.Hs.eg.db)

Ann_eg2sy.chv <- unlist (as.list (org.Hs.egSYMBOL))

Ann_sy2eg.chv <- names (Ann_eg2sy.chv)
names (Ann_sy2eg.chv) <- Ann_eg2sy.chv 

# EXAMPLES

# From EntrezGene-ID to Symbol
Ann_eg2sy.chv["100033460"]

# From Symbol to EntrezGene-ID
Ann_sy2eg.chv["SNORD115-20"]

Note:

DanieleMerico/Code/Conv_Eg_Symbols (last edited 2010-03-31 19:12:42 by DanieleMerico)

MoinMoin Appliance - Powered by TurnKey Linux