We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc5d498 + 110477a commit fc0a56aCopy full SHA for fc0a56a
src/pyscenic/recovery.py
@@ -179,7 +179,7 @@ def get_genes(rank_at_max):
179
# but is inline with the RcisTarget implementation.
180
filtered_idx = sranking <= rank_at_max
181
filtered_gene_ids = gene_ids[filtered_idx]
182
- return list(zip(filtered_gene_ids, weights[filtered_idx] if weights is not None else sranking[filtered_idx]))
+ return list(zip(filtered_gene_ids, weights[sorted_idx][filtered_idx] if weights is not None else sranking[filtered_idx]))
183
184
rank_at_max, n_recovered_genes = critical_point()
185
# noinspection PyTypeChecker
0 commit comments