Skip to content

Commit d899f95

Browse files
authored
Merge pull request #47 from zhoujt1994/patch-9
Update balanced_pca.py
2 parents f70e294 + bddb1f4 commit d899f95

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ALLCools/clustering/balanced_pca.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def significant_pc_test(adata: anndata.AnnData, p_cutoff=0.1, update=True, obsm=
119119

120120
def pc_ks_test(pcs, p_cutoff=0.1, min_pc=4):
121121
i = 0
122-
for i in range(pcs.shape[1] - 1):
122+
for i in range(pcs.shape[1]):
123+
if i == (pcs.shape[1] - 1):
124+
break
123125
cur_pc = pcs[:, i]
124126
next_pc = pcs[:, i + 1]
125127
_, p = ks_2samp(cur_pc, next_pc)

0 commit comments

Comments
 (0)