[R] help
Jim Lemon
jim at bitwrit.com.au
Thu Mar 4 23:19:08 CET 2010
On 03/04/2010 10:30 PM, mahalakshmi sivamani wrote:
> Hi all ,
>
> I have one query.
>
> i have list of some .cel files. in my program i have to mention the path of
> these .cel files
>
> part of my program is,
>
> rna.data<-exprs(justRMA(filenames=file.names, celfile.path=*datadir*,
> sampleNames=sample.names, phenoData=pheno.data,
> cdfname=cleancdfname(hg18_Affymetrix U133A)))
>
>
> in the place of "datadir" i have to mention the character string of the
> directory of these .cel files. I don't know how to give the path for all
> these files.
>
> i set the path as given below,
>
>
>> rna.data<-exprs(justRMA(filenames=file.names, celfile.path="*D:/MONO1.CEL"
> "D:/MONO2.CEL" "D:/MONO3.CEL" "D:/MACRO1.CEL" "D:/MACRO2.CEL"
> "D:/MACRO3.CEL"*,sampleNames=sample.names, phenoData=pheno.data,
> cdfname=cleancdfname(hg18_Affymetrix U133A)))
>
>
> it shows this error,
>
> Error: unexpected string constant in
> "rna.data<-exprs(justRMA(filenames=file.names, celfile.path="D:/MONO1"
> "D:/MONO2""
>
>
Hi Mahalakshmi,
If you want to pass more than one string as an argument, you must pass
them as a character vector.
celfile.path=c("D:/MONO1.CEL","D:/MONO2.CEL","D:/MONO3.CEL",
"D:/MACRO1.CEL","D:/MACRO2.CEL","D:/MACRO3.CEL")
Although this is not guaranteed to make your function work correctly.
Jim
More information about the R-help
mailing list