[BioC] How to save jpegs of all MAplots of an affybatch

Giulio Di Giovanni perimessaggini at hotmail.com
Wed Nov 23 17:09:37 CET 2005


Hi,

hoping is not a stupid question,
I would like to have a jpeg copy of all MAplots I created for my affybatch 
object.

jpeg(file=paste(sampleNames(mysamples), anname,".jpeg", sep=""))
MAplot(mysamples)
dev.off()

doesn't work, it writes on the same file all the plots

and (ovbiously)

for(i in 1:n){
jpeg(file=paste(sampleNames(mysamples[,i]),"MAplot.jpeg", sep=""))
MAplot(mysamples[,i])
dev.off()
}

because to produce a MAplot on an affy chip, you need a median pseudo-chip 
(i.e. at least two chips)

Does anyone have an idea/suggestion ?

Thanks a lot in advance

Giulio



More information about the Bioconductor mailing list