-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from dvklopfenstein/master
Added a new test to find error. Test can be run by cd-ing into tests and...
- Loading branch information
Showing
5 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
AT2G00000 | ||
AT4G00001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
import os | ||
|
||
def test(): | ||
"""Test to find this error below. | ||
Traceback (most recent call last): | ||
File "../scripts/find_enrichment.py", line 130, in <module> | ||
study=study, methods=methods) | ||
File "../scripts/../goatools/go_enrichment.py", line 93, in __init__ | ||
self.run_study(study) | ||
File "../scripts/../goatools/go_enrichment.py", line 129, in run_study | ||
p_val_distribution = calc_qval(study_count, study_n, | ||
UnboundLocalError: local variable 'study_count' referenced before assignment | ||
""" | ||
os.system("python {SCR} --alpha=0.05 {STUDY} {POP} {ASSN} --fdr --obo={OBO}".format( | ||
SCR="../scripts/find_enrichment.py", | ||
OBO="../go-basic.obo", | ||
STUDY="data/study_unknown", | ||
POP="../data/population", | ||
ASSN="../data/association")) | ||
|
||
if __name__ == '__main__': | ||
test() | ||
|