Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyTeichman committed Jan 11, 2025
1 parent a272ba4 commit 3900476
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rnalysis/utils/enrichment_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,8 @@ def format_results(self, unformatted_results_list: list):
if not self.return_nonsignificant:
self.results = self.results.filter(pl.col('significant'))
def _correct_multiple_comparisons(self):
results_nulls = self.results.filter(pl.col('pval').is_null())
self.results = self.results.filter(pl.col('pval').is_not_null())
results_nulls = self.results.filter(pl.col('pval').is_nan())
self.results = self.results.filter(pl.col('pval').is_not_nan())

significant, padj = multitest.fdrcorrection(self.results['pval'].to_list(), alpha=self.alpha)
self.results = pl.concat([self.results.with_columns(padj=padj, significant=significant), results_nulls],
Expand Down Expand Up @@ -1389,7 +1389,6 @@ def _go_classic_on_batch(self, go_term_batch: Iterable[str], annotation_idx: int
"""
gene_set = self.ranked_genes if self.single_set else self.gene_set
annotations = self.mutable_annotations[annotation_idx]
print(annotations)
return {go_id: self.stats_test.run(go_id, annotations[go_id], gene_set, self.background_set) for go_id in
go_term_batch}

Expand Down

0 comments on commit 3900476

Please sign in to comment.