changeset 9:4200518b0feb draft

planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/count_roi_variants commit 7496128ee9ef800fe780e545d2157da8a4f89d35-dirty
author peterjc
date Thu, 11 May 2017 10:05:08 -0400
parents 7f6a56260be6
children 7a05cb080ea5
files tools/count_roi_variants/count_roi_variants.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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())