Skip to content

Commit

Permalink
Download go-basic.obo file if it does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvklopfenstein committed Apr 25, 2018
1 parent 1e4be3d commit dd2dee0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_find_enrichment_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
__copyright__ = "Copyright (C) 2010-2018, DV Klopfenstein, H Tang. All rights reserved."

import os
import sys
import collections as cx
from goatools.base import download_go_basic_obo
from goatools.cli.find_enrichment import rd_files
from goatools.cli.find_enrichment import get_objgoea

Expand All @@ -26,9 +28,11 @@ def test_find_enrichment():
filenames = ['data/study', 'data/population', 'data/association']
methods = ['bonferroni', 'sidak', 'holm', 'fdr_bh']
alpha = 0.05
fin_obo = os.path.join(REPO, 'go-basic.obo')
download_go_basic_obo(fin_obo, prt=sys.stdout, loading_bar=None)
args = ntobj(
filenames=[os.path.join(REPO, f) for f in filenames],
obo='go-basic.obo',
obo=fin_obo,
pval=0.05,
alpha=alpha,
pvalcalc='fisher',
Expand Down

0 comments on commit dd2dee0

Please sign in to comment.