Error occurs in scib.me.cell_cycle and is rooted in scib.me.pc_regression.
When the number of features of the input matrix is smaller or equal to the number of PCA components (n_comps) the svd_solver is set to "full", which doesn't work with sparse matrices.
Solution
Whenever n_comps >= min(matrix.shape), convert to dense matrix
Closes #291
Error occurs in
scib.me.cell_cycle
and is rooted inscib.me.pc_regression
.When the number of features of the input matrix is smaller or equal to the number of PCA components (
n_comps
) thesvd_solver
is set to "full", which doesn't work with sparse matrices.Solution Whenever
n_comps >= min(matrix.shape)
, convert to dense matrix