Skip to content
Prev 13481 / 21312 Next

[Bioc-devel] Virtual class for `matrix` and `DelayedArray`? (or better strategy for dealing with them both)

Thanks Herv? and Stephanie for your suggestions. I am really looking for a S4 methods solution however, given how my package is already set up. Also, I have several functions that I need to adapt in this way, so it seems cleaner and simpler to do the class union, which sounds like is not a problem  ? for Stephanie?s solution, for each function I?d have to write 2 S4methods and an internal function which feels more cluttered code to maintain for me. And it sounds like there?s not a virtual class I could use instead so I am correct to defining it myself. 

In terms of the setClassUnion, I chose ?DelayedArray? because I wanted to capture HDF5Matrix and DelayedMatrix, but I now see that HDF5Matrix inherits from DelayedMatrix. I must have missed that somehow. 

Thanks,
Elizabeth