Open Xparx opened 5 years ago
Hm, I would even say this is bug on the sklearn PCA level.
I ran into the same error.
I have larger number of cells than 50. but sc.tl.pca(adata, use_highly_variable_genes = False) resolved my error.
So you have fewer than 50 HVGs? Maybe just use more HVGs, then the whole thing should work.
Another option is to set fewer components to use in sc.tl.pca, option n_comps should be set to at most number of variable genes.
Minor bug I assume.
Using fewer than 50 cells raises the following error when trying to run
sc.tl.pca
. The code handles this when then_vars < 50
but not whenn_obs
is.