R Annotations
From Informatics
annaffy is the package to be concerned with mainly. There's a vignette which shows some of the basics.
Here are some steps I've discovered:
- library("annaffy")
- library("reposTools")
- install.packages2("hgu95av2")
- library("hgu95av2") [or library(chipname, character.only = TRUE) ]
- probeids <- ls(hgu95av2SYMBOL)
- anntable <- aafTableAnn(probeids, "hgu95av2", aaf.handler())
- saveText(anntable, "hgu95av2.txt")
Command line parameter handling:
- To get the last parameter on the command line - chipname <- commandArgs()[length(args)]
Command line notes:
- cat annotationTemplate.R |sed 's/-chipname-/hgu95av2/'>tempannot.R
- wget http://www.bioconductor.org/packages/data/annotation/1.7/bin/windows/contrib/2.2/ -O -|grep -o 'zip">.*[^cdf|probe]_'|sed 's/zip">//'|sed 's/_//' > chiplist.txt