LTLA / scuttle

Clone of the Bioconductor repository for the scuttle package.
https://bioconductor.org/packages/devel/bioc/html/scuttle.html
9 stars 7 forks source link

no slot of name "subdata" for this object of class "TENxMatrixSeed" #11

Open janinemelsen opened 3 years ago

janinemelsen commented 3 years ago

R version 4.1.0 scuttle 1.0.4.

After updating to the latest version of R I received the following error upon running this code:

se.aggregated <- sumCountsAcrossCells(sce, ids=sce$cluster, assay.type='counts')

Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'type': no slot of name "subdata" for this object of class "TENxMatrixSeed"

What is happening here?

Thanks!

Janine

LTLA commented 3 years ago

This doesn't seem like a scuttle problem. I suspect the real issue is that you've got a TENxMatrix inside your sce that you've reloaded from an RDS file. The class definition changed in the last release to include a subdata field, and your particular instance is out of date. This is probably resolvable by calling updateObject() on the SCE.