merge louvain and prepare extra requires (#897)

This commit is contained in:
Charlotte Weaver
2019-08-29 12:49:19 -07:00
committed by GitHub
parent c35f94fe6d
commit 77de22d1ed
3 changed files with 4 additions and 9 deletions
+1 -8
View File
@@ -160,14 +160,7 @@ def prepare(
sc.pp.neighbors(adata)
def run_louvain(adata):
try:
sc.tl.louvain(adata)
except ModuleNotFoundError:
click.echo(
"\nWarning: louvain module is not installed, no clusters will be calculated. "
"To fix this please install cellxgene with the optional feature louvain enabled: "
"`pip install cellxgene[louvain]`"
)
sc.tl.louvain(adata)
def run_layout(adata):
if len(unique(adata.obs["louvain"].values)) < 10: