From 968ee3be238263dcf0285a58b419ccf57f977614 Mon Sep 17 00:00:00 2001 From: IanSudbery Date: Mon, 14 Mar 2016 10:32:14 +0000 Subject: [PATCH] count reads output rather than positions --- dedup_umi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dedup_umi.py b/dedup_umi.py index 36ac0ab7..749197e4 100644 --- a/dedup_umi.py +++ b/dedup_umi.py @@ -870,7 +870,6 @@ def main(argv=None): read_length=options.read_length, detection_method=options.detection_method): - nOutput += 1 nInput += sum([bundle[umi]["count"] for umi in bundle]) if nOutput % 10000 == 0: @@ -896,6 +895,7 @@ def main(argv=None): if options.ignore_umi: for umi in bundle: + nOutput += 1 outfile.write(bundle[umi]["read"]) if options.paired: try: @@ -917,6 +917,7 @@ def main(argv=None): for read in reads: outfile.write(read) + nOutput += 1 if options.paired: # TS - write out paired end mate try: