Skip to content

Commit

Permalink
If find_enrichment arg, pval=-1, print ALL GO terms, regardless of th…
Browse files Browse the repository at this point in the history
…e pvalues
  • Loading branch information
dvklopfenstein committed Jul 18, 2018
1 parent 928dbd4 commit 8c3709c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goatools/cli/find_enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def prt_results(self, results):

def get_results(self):
"""Given all GOEA results, return the significant results (< pval)."""
return self.get_results_sig() if self.args.pval is not None else self.results_all
return self.get_results_sig() if self.args.pval != -1.0 else self.results_all

def _init_objgoea(self, pop, assoc):
"""Run gene ontology enrichment analysis (GOEA)."""
Expand Down

0 comments on commit 8c3709c

Please sign in to comment.