Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
- Include PR #254
  • Loading branch information
cflerin committed Feb 10, 2021
2 parents bb2e4ca + fc0a56a commit 925f116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyscenic/recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_genes(rank_at_max):
# but is inline with the RcisTarget implementation.
filtered_idx = sranking <= rank_at_max
filtered_gene_ids = gene_ids[filtered_idx]
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]))

rank_at_max, n_recovered_genes = critical_point()
# noinspection PyTypeChecker
Expand Down

0 comments on commit 925f116

Please sign in to comment.