Closed alejoaa closed 2 years ago
Hi @alejoaa,
It seems that you have a data.frame in either your counts or logcounts slot. This should be a matrix. So it would be worth to double check this.
If this is not the case, you could share a subset of your object with me and I can check myself.
Best, Daniel
Hi @dbdimitrov,
Thanks, your solution worked. Seems that in all my analyses the SingleCellExperment
stores counts and logcounts as data.frame
. I had tried to directly coerce the data.frame
to a sparse matrix and it didn't work. But running assay(sce, "counts") <- as.matrix(assay(sce, "counts"))
fixed it.
Best, Alejandro
Hi, thanks for the Liana package!
I'm running into an error that I haven't been able to solve. When running
liana_wrap
with a SingleCellExperiment I get the following error:Do you know how I may be able to solve it? Thanks