Skip to content

Commit

Permalink
Fix bug: comment out "filteringmodel" option.
Browse files Browse the repository at this point in the history
  • Loading branch information
taoliu committed May 25, 2012
1 parent 439c385 commit bb5b393
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions MACS2/callpeak.py
@@ -1,5 +1,5 @@
# cython: profile=True
# Time-stamp: <2012-04-13 16:45:26 Tao Liu>
# Time-stamp: <2012-05-24 21:51:10 Tao Liu>

"""Description: MACS 2 main executable
Expand Down Expand Up @@ -115,13 +115,14 @@ def run( args ):
tagsinfo += "# total %ss in control: %d\n" % (tag, c0)
info("#1 total %ss in control: %d", tag, c0)
# not ready yet
if options.filteringmodel:
control.separate_dups()
c0 = treat.total + treat.dups.total
c1 = treat.total
info("#1 Redundant rate of treatment: %.2f", float(c0 - c1) / c0)
tagsinfo += "# Redundant rate in treatment: %.2f\n" % (float(c0-c1)/c0)
elif options.keepduplicates != "all":
#if options.filteringmodel:
# control.separate_dups()
# c0 = treat.total + treat.dups.total
# c1 = treat.total
# info("#1 Redundant rate of treatment: %.2f", float(c0 - c1) / c0)
# tagsinfo += "# Redundant rate in treatment: %.2f\n" % (float(c0-c1)/c0)
#elif options.keepduplicates != "all":
if options.keepduplicates != "all":
if options.keepduplicates == "auto":
info("#1 for control, calculate max duplicate %ss in single position based on binomial distribution...", tag)
control_max_dup_tags = cal_max_dup_tags(options.gsize,c0)
Expand Down

0 comments on commit bb5b393

Please sign in to comment.