Skip to content
Prev 5134 / 21312 Next

[Bioc-devel] [devteam-bioc] problem w/ "exprs<-" method and LumiBatch objects

On 01/10/2014 12:07 AM, Maintainer wrote:
actually, the expression values have been replaced

 > dim(exprs(example.lumi))
[1] 100   4

but the object is no longer valid

 > validObject(example.lumi)
Error in validObject(example.lumi) :
   invalid class "LumiBatch" object: row numbers differ for assayData members

This is also true of the ExpressionSet example (the object is no longer valid), 
it's just that the dims are taken from a different location so reflect the addition.

The user should be providing expression values with the same dimensions (and 
with the same dimnames) as the original. I think the intended use case was more 
along the lines of replacing the expression matrix with say a transformed 
version, exprs(x) = log(exprs(x)).

Obviously Biobase shouldn't be allowing the user to see an invalid object, but 
the design of the package does not make it easy to enforce this; I'll work on 
providing something more robust, but the end result of trying the above 
assignment will be an error.

Martin