Size: 736
Comment:
|
← Revision 5 as of 2010-03-31 19:12:42 ⇥
Size: 729
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 26: | Line 26: |
* use `org.Xx.eg.db` where `Xx` is your species identifier for any other species (e.g. `Mm` for mouse) | * use `org.Xx.eg.db` where `Xx` is the species identifier (e.g. `Hs` for human, `Mm` for mouse) |
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:
use org.Xx.eg.db where Xx is the species identifier (e.g. Hs for human, Mm for mouse)
there's lots of of annotation data available in these packages; use ls ("package:ppp.db") to see the, where ppp.db is the package name, e.g. org.Hs.eg.db