Metabolomics Society Forum

Software => R => XCMS => Topic started by: annamarilone on July 08, 2011, 05:41:53 PM

Title: printing diffreport to different folder
Post by: annamarilone on July 08, 2011, 05:41:53 PM
Hi All,

I would like to print my diffreport to a different folder than the one I'm currently in (i.e. print to a folder other than the one in which my mzxml files are located). Is there a way to do this, and if so, what is the command (my current command is reporttab<-diffreport(xset7, "KO", "WT", "outputfile", 1000)?

Thanks in advance,
Anna Mari
Title: Re: printing diffreport to different folder
Post by: hpbenton on July 09, 2011, 07:49:54 AM
Anna,

It'll be something like this :
Code: [Select]
create.dir("NewDir")
diffreport(xset7, "KO", "WT", file="NewDir/outputfile", eicmax=1000)

If you want to go back up one level/the directory before then it's ../ So...
Code: [Select]
diffreport(xset7, "KO", "WT", file="../outputfile", eicmax=1000)
##or
create.dir("../diffreportsDIR")
diffreport(xset7, "KO", "WT", file="../diffreportsDIR/outputfile", eicmax=1000)