Size: 737
Comment:
|
Size: 736
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 27: | Line 27: |
* there's a number 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` | * 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` |
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 your species identifier for any other species (e.g. 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