Closed djgroso closed 2 years ago
Thank you for pointing this out!
I looked into it on my end testing:
library(STdeconvolve)
data("mOB")
cd <- as(mOB$counts, "dgCMatrix")
dat <- base::t(cd)
and got the same error:
Error in t.default(cd) : argument is not a matrix
So it seems like the base transpose function t()
doesn't like sparse matrices for some reason.
So for now, to run the code, you can try:
t(as.matrix(cd))
as the input matrix.
Let me know if you're still having issues.
This worked-- thanks for your help!
Hello,
Hope you are all doing well. I've had success running MERINGUE and implementing the "getting started" tutorial for STdeconvolve with our data. I had no issues loading in our counts (cd) matrix (large dgCMatrix) until the pre-processing step in the "additional features" tutorial:
I get the error:
Error in t.default(cd) : argument is not a matrix
Was wondering if you had any insight as to why it does not recognize the cd counts matrix considering that it was working for the other analyses-- can share what our matrix looks like if need be.
Thanks in advance!