Skip to content

Commit

Permalink
ranking
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Oct 22, 2023
1 parent 1a29be9 commit 1cc287e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gseapy/gsva.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ def run(self):
self._threads,
)
self.to_df(gsum.summaries, gmt, df, gsum.indices)
self.ranking = gsum.indices
self.ranking = [rnk[ind] for rnk, ind in zip(gsum.rankings, gsum.indices)]
self._logger.info("Done")
1 change: 1 addition & 0 deletions src/gsva.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ pub fn gsva(
let mut gsea = GSEAResult::new(tau, max_size, min_size, 0, 0);
gsea.summaries = summ;
gsea.indices = sort_idxs;
gsea.rankings = mat_score;
return gsea;

}
Expand Down

0 comments on commit 1cc287e

Please sign in to comment.