specifying filenames and celfile.path to ReadAffy()
0
0
Entering edit mode
@gordon-smyth
Last seen 1 hour ago
WEHI, Melbourne, Australia
Am I right in thinking that arguments filenames and celfile.path cannot both be specified to ReadAffy()? So one can't use celfile.path to specify certain CEL files to be read from a specified directory? This is fine: > dir(celpath) [1] "binary.cel" "text.cel" > abatch <- ReadAffy(celfile.path=celpath) but any attempt to specify filenames at the same time fails: > abatch <- ReadAffy("text.cel",celfile.path=celpath) Error in read.affybatch(filenames = filenames, phenoData = phenoData, : Could not open file text.cel > abatch <- ReadAffy(filenames="text.cel",celfile.path=celpath) Error in read.affybatch(filenames = filenames, phenoData = phenoData, : Could not open file text.cel So to read specified files from a specified directory, one should give a vector of full path names: abatch <- ReadAffy(filenames=file.path(celpath,"text.cel")) Is this the recommended way to do it? Gordon
• 2.9k views
ADD COMMENT

Login before adding your answer.

Traffic: 647 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