zinbwave Matrix error
Closed this issue · 6 comments
Hello,
I'm trying to run zinbwave in a cluster and seems to run but I get a Matrix error:
sce_cl2_zinb <- zinbwave(sce_cl2, K = 2, X = "~mouseID + Sex" , epsilon=1e12, BPPARAM=BiocParallel::MulticoreParam(8), verbose = TRUE)
Create model:
ok
Initialize parameters:
ok
Optimize parameters:
Iteration 1
penalized log-likelihood = -21740231789.945
After dispersion optimization = -21739843271.2819
user system elapsed
1.571 9.862 477.966
After right optimization = -10876510949.4719
After orthogonalization = -13745479.7973216
user system elapsed
1.401 13.033 100.598
After left optimization = -12633848.2457174
After orthogonalization = -12410537.8832695
Iteration 2
penalized log-likelihood = -12410537.8832695
After dispersion optimization = -12410537.8832695
user system elapsed
1.155 9.499 134.225
After right optimization = -12379701.8727642
After orthogonalization = -12379673.1041869
user system elapsed
0.900 5.435 37.266
After left optimization = -12378974.9080583
After orthogonalization = -12378974.4038585
Iteration 3
penalized log-likelihood = -12378974.4038585
After dispersion optimization = -12378974.4038585
user system elapsed
0.886 5.043 35.479
After right optimization = -12377788.410242
After orthogonalization = -12377788.3266477
user system elapsed
1.208 7.518 42.181
After left optimization = -12377733.3209309
After orthogonalization = -12377733.3209296
Iteration 4
penalized log-likelihood = -12377733.3209296
After dispersion optimization = -12377733.3209296
user system elapsed
1.067 6.529 49.023
After right optimization = -12377381.0485549
After orthogonalization = -12377381.0388892
user system elapsed
0.975 4.738 55.937
After left optimization = -12377367.3906731
After orthogonalization = -12377367.3906544
Iteration 5
penalized log-likelihood = -12377367.3906544
ok
Error in t.default(x) : argument is not a matrix
Otherwise I'm mostly interested in the weight values for using in edgeR.
please advice.
I'm also getting a similar error..
Sorry for getting late to this. What version of zinbwave are you using? Can you produce a minimal running example illustrating this behavior?
Not sure what is going on here. Is counts(z)
indeed of class matrix
? (Rather than a sparseMatrix or other matrix representations?)
Was a solution for this error ever discovered? I am encountering the same problem with version 1.10.0
The likely error was that the assay of the SingleCellExperiment object was not of class matrix
.
Please, check the class of your input object (e.g., class(x)
or class(assay(x))
).