Closed urwahnawaz closed 3 years ago
The matrix is too large, so Matrix::rowMeans(X == 0) give rise the error. Here, X is a large sparse matrix (dgCMatrix). X == 0 will give you a dense logical matrix object (lgeMatrix) while X > 0 will give you a sparse logical matrix object (lgCMatrix). The Matrix cannot process too large dense logical matrix. To fix this problem, you can chang the code:
zero_proportion = Matrix::rowMeans(X == 0)
to:
zero_proportion = 1-Matrix::rowSums(X > 0)/ncol(X)
Implemented the suggested change.
Hi guys,
I'm trying to run hippo on my own data but apparently I keep getting this error message:
This is the command I'm running:
and this is what my sce looks like:
Any help would be greatly appreciated! Thanks in advance