Sunday, June 03, 2007

One-liner for mapping Affymetrix Probe ID to NCBI Entrez Gene ID :-)

You can map Affymetrix IDs to NCBI Entrez Genes by one-liner command.
echo 'library(mouse4302)\nwrite.table(unlist
file="affyid2genename.txt", sep="\\t", eol="\\n",
quote=F, col.names=F)' | R --no-save
The result was written to "affyid2genename.txt" file:
less affyid2genename.txt
1459626_at NA
1457754_at RIKEN cDNA 4930430F08 gene
1452692_a_at NADH dehydrogenase (ubiquinone) flavoprotein 2
You need R, Bioconductor and mouse4302 package.

No comments: