Skip to content

Commit

Permalink
Added parameter "pth" to config files of individual comparisons.
Browse files Browse the repository at this point in the history
  • Loading branch information
grexor committed Jul 6, 2016
1 parent da5a5d3 commit c447b53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/rnamotifs2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ for region in ["r1s", "r1e", "r2s", "r2e", "r3s", "r3e"]:
continue
if rnamotifs2.data.dist.get("e", None)==None and region[-1]=="e":
continue
rnamotifs2.start(comps, region, 0, 4)
# rnamotifs2.data.pth = 4 (default)
rnamotifs2.start(comps, region, 0, rnamotifs2.data.pth)

if rnamotifs2.data.data_type=="apa":
os.system("rnamotifs2.draw_apa -comps %s" % comps)
Expand Down
5 changes: 4 additions & 1 deletion data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ def read_config(comps):
continue
f.close()

# by default, do not correct for FDR
# default values
if getattr(m, "use_FDR", None)==None:
setattr(m, "use_FDR", False)

if getattr(m, "pth", None)==None:
setattr(m, "pth", 4)

if getattr(m, "base_motif_thr", None)==None:
setattr(m, "base_motif_thr", 0.01)

Expand Down

0 comments on commit c447b53

Please sign in to comment.