We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd7631 commit 98b72ecCopy full SHA for 98b72ec
1 file changed
ALLCools/mcds/utilities.py
@@ -260,7 +260,7 @@ def highly_variable_methylation_feature(
260
261
# Select n_top_feature
262
if n_top_feature is not None:
263
- feature_subset = df.index.isin(df.sort_values("dispersion_norm", ascending=False).index[:5000])
+ feature_subset = df.index.isin(df.sort_values("dispersion_norm", ascending=False).index[:n_top_feature])
264
else:
265
max_disp = np.inf if max_disp is None else max_disp
266
dispersion_norm[np.isnan(dispersion_norm)] = 0 # similar to Seurat
0 commit comments