[BioC] combineAffyBatch problem

Martin Morgan mtmorgan at fhcrc.org
Sat Dec 13 02:11:39 CET 2008


Hi --

I cannot replicate this on my system -- the code you post below works
for me. Perhaps some of your packages are out-of-date. Try
update.packages() following the instructions here:

http://bioconductor.org/docs/install

This is my sessionInfo()

> sessionInfo()
R version 2.8.0 Patched (2008-11-10 r46882) 
x86_64-unknown-linux-gnu 

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] tools     stats     graphics  utils     datasets  grDevices methods  
[8] base     

other attached packages:
[1] hu6800cdf_2.3.0      matchprobes_1.14.0   affy_1.20.0         
[4] Biobase_2.2.1        limma_2.16.3         hgu133acdf_2.3.0    
[7] hgu133plus2cdf_2.3.0

loaded via a namespace (and not attached):
[1] affyio_1.10.1        preprocessCore_1.4.0

What is yours?

Martin

"Rifat A Hamoudi" <r.hamoudi at ucl.ac.uk> writes:

> Dear BioC users,
>
> I hope someone can help me. I am having problems running combineAffyBatch,
> when I run it I get the following error :
>
> Error in as.data.frame.default(x[[i]], optional = TRUE) :
>   cannot coerce class "AnnotatedDataFrame" into a data.frame
>
> I also run the script in matchprobe vignette but I still get this error.
>
> Can anyone help me to understand the source of this error and how to
> correct it?
>
> The code is below :
>
>
> thanks
>
>
> library(gsubfn)
> library(limma)
> library(matchprobes)
> library(hgu133acdf)
> library(hgu133plus2cdf)
> f1 <- system.file("extdata", "118T1.cel", package="matchprobes")
> f1
> f2 <- system.file("extdata", "CL2001032020AA.cel", package="matchprobes")
> pd1 <- new("AnnotatedDataFrame", data=data.frame(fromFile = I(f1),
> row.names="f1"))
> pd1
> pd1 <- new("AnnotatedDataFrame", data=data.frame(fromFile = I(f2),
> row.names="f2"))
> pd1 <- new("AnnotatedDataFrame", data=data.frame(fromFile = I(f1),
> row.names="f1"))
> pd2 <- new("AnnotatedDataFrame", data=data.frame(fromFile = I(f2),
> row.names="f2"))
> x1<-read.affybatch(filenames=f1, compress=TRUE, phenoData=pd1)
> x1
> x2<-read.affybatch(filenames=f2, compress=TRUE, phenoData=pd2)
> res<-combineAffyBatch(list(x1,x2), c("hu6800probe", "hgu95av2probe")
> , newcdf = "comb")
> res<-combineAffyBatch(list(x1,x2), c("hu6800probe", "hgu95av2probe"),
> newcdf="comb")
>
>> res<-combineAffyBatch(list(x1,x2), c("hu6800probe", "hgu95av2probe"),
> newcdf="comb")
> Loading required package: hu6800probe
> Loading required package: hgu95av2probe
> package:hu6800probe	hu6800probe
> package:hgu95av2probe	hgu95av2probe
> 34431 unique probes in common
> Error in as.data.frame.default(x[[i]], optional = TRUE) :
>   cannot coerce class "AnnotatedDataFrame" into a data.frame
>>
>
> _______________________________________________
> 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

-- 
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M2 B169
Phone: (206) 667-2793



More information about the Bioconductor mailing list