Applying bioconductor functions to files in different Windows directories
1
0
Entering edit mode
@ruppert-valentino-1376
Last seen 9.7 years ago
Hello, I would be grateful for any help or advise on the following issue. I have affy files in different directories and want to point ReadAffy() to read files from all directories. Is there a way I can do this via setwd but in a loop and if so how? For example can I say : setwd("C:\\RawArrayData\\Cel Files\\U133\\*") X <- ReadAffy() Also similarly, I wrote a function that annotate files in separate directories. Can I run that on the root and get it to annotate all files below the root directory in windows i.e. the children of the root directory. Many Thanks, _________________________________________________________________ Imagine a life without walls.? See the possibilities.
annotate affy annotate affy • 647 views
ADD COMMENT
0
Entering edit mode
Mark Robinson ★ 1.1k
@mark-robinson-2171
Last seen 9.7 years ago
Hi. How about an alternative. Something like: fn <- dir(".","CEL",recursive=TRUE) (e.g. replace "." with your directory "C:\\RawArrayData ...") x <- ReadAffy(filenames=fn) Cheers, Mark On 09/12/2008, at 6:07 AM, Ruppert Valentino wrote: > > Hello, > I would be grateful for any help or advise on the > following issue. > > I have affy files in different directories and want to point > ReadAffy() to read files from all directories. > Is there a way I can do this via setwd but in a loop and if so how? > > For example can I say : > > setwd("C:\\RawArrayData\\Cel Files\\U133\\*") > X <- ReadAffy() > > > Also similarly, I wrote a function that annotate files in separate > directories. Can I run that on the root and get it to annotate all > files below > the root directory in windows i.e. the children of the root directory. > > > Many Thanks, > > > _________________________________________________________________ > Imagine a life without walls. See the possibilities. > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor ------------------------------ Mark Robinson Epigenetics Laboratory, Garvan Bioinformatics Division, WEHI e: m.robinson at garvan.org.au e: mrobinson at wehi.edu.au p: +61 (0)3 9345 2628 f: +61 (0)3 9347 0852
ADD COMMENT

Login before adding your answer.

Traffic: 766 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6