mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-29 23:08:12 +08:00
fix pca call in reembeddings (#1793)
This had the wrong dim passed into n_comps, and so failed when the number of genes was less than 50.
This commit is contained in:
@@ -43,7 +43,7 @@ def scanpy_umap(adata, obs_mask=None, pca_options={}, neighbors_options={}, umap
|
||||
for k in list(adata.uns.keys()):
|
||||
del adata.uns[k]
|
||||
|
||||
sc.pp.pca(adata, zero_center=None, n_comps=min(adata.n_obs - 1, 50), **pca_options)
|
||||
sc.pp.pca(adata, zero_center=None, n_comps=min(adata.n_vars - 1, 50), **pca_options)
|
||||
sc.pp.neighbors(adata, **neighbors_options)
|
||||
sc.tl.umap(adata, **umap_options)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user