Question: specifying filenames and celfile.path to ReadAffy()
0
gravatar for Gordon Smyth
14.8 years ago by
Gordon Smyth37k
Walter and Eliza Hall Institute of Medical Research, Melbourne, Australia
Gordon Smyth37k wrote:
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
• 1.5k views
ADD COMMENTlink written 14.8 years ago by Gordon Smyth37k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 301 users visited in the last hour