Skip to content

Commit 98b72ec

Browse files
committed
fix n_top_feature bug
1 parent cfd7631 commit 98b72ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ALLCools/mcds/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def highly_variable_methylation_feature(
260260

261261
# Select n_top_feature
262262
if n_top_feature is not None:
263-
feature_subset = df.index.isin(df.sort_values("dispersion_norm", ascending=False).index[:5000])
263+
feature_subset = df.index.isin(df.sort_values("dispersion_norm", ascending=False).index[:n_top_feature])
264264
else:
265265
max_disp = np.inf if max_disp is None else max_disp
266266
dispersion_norm[np.isnan(dispersion_norm)] = 0 # similar to Seurat

0 commit comments

Comments
 (0)