Closed HenrikBengtsson closed 8 years ago
This is because clearCache()
tries to call getCdf()
on an AffymetrixCelSet with a files list containing a single NULL
element:
> clearCache.AffymetrixCelSet
function (this, ...)
{
NextMethod("clearCache")
this$.averageFiles <- list()
if (length(this) > 0) {
cdf <- getCdf(this)
clearCache(cdf)
}
invisible(this)
}
<environment: namespace:aroma.affymetrix>
The above is effectively because it is possible to have:
> library("aroma.affymetrix")
> df <- AffymetrixCelFile()
> getPathname(df)
NULL
> df
Error in readBin(pathname, what = raw(), n = 10) : invalid connection
> getCdf(df)
Error in affxparser::readCelHeader(...) :
Argument 'filename' should be a single file:
This lead me to identify the following two underlying issues in R.filesets:
We most likely want to solve/decide on those two before attacking this issue.
Fixed in commit 14a06b8, e.g.
> AffymetrixCelSet()
AffymetrixCelSet:
Name: NA
Tags:
Path: NA
Platform: Affymetrix
Chip type: NA
Number of arrays: 0
Time period: NA
Total file size: 0.00MB
RAM: 0.00MB