Skip to content

Commit 069f124

Browse files
committed
fix clustering
1 parent 2c40961 commit 069f124

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pilotpy/tools/Trajectory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def Clustering(EMD, df, category = 'status', sample_col=1,res = 0.01,metric ='co
560560
while flag == True:
561561
adata = sc.AnnData(EMD)
562562
sc.pp.neighbors(adata, metric=metric)
563-
sc.tl.leiden(adata, resolution = res)
563+
sc.tl.leiden(adata, resolution = res,metric=metric)
564564
labels = np.array(adata.obs.leiden)
565565
if len(df.status.unique()) > len(np.unique(labels)):
566566

0 commit comments

Comments
 (0)