# HG changeset patch # User peterjc # Date 1494511508 14400 # Node ID 4200518b0febc43d82643c561b94ea28a5899c85 # Parent 7f6a56260be6ec9bc489050f3a9dd07da1d1d85c planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/count_roi_variants commit 7496128ee9ef800fe780e545d2157da8a4f89d35-dirty diff -r 7f6a56260be6 -r 4200518b0feb tools/count_roi_variants/count_roi_variants.py --- a/tools/count_roi_variants/count_roi_variants.py Wed May 10 12:38:55 2017 -0400 +++ b/tools/count_roi_variants/count_roi_variants.py Thu May 11 10:05:08 2017 -0400 @@ -196,6 +196,10 @@ def count_region(): + """Count reads mapped to the region. + + Calls samtools view and parses the output. + """ # Could recreate the region string (with no commas in start/end)? # region = "%s:%i-%i" % (ref, start, end) @@ -239,7 +243,7 @@ def record_counts(): - + """Record counts to tabular file.""" tally = count_region() total = sum(tally.values())