Skip to content

Commit

Permalink
count reads output rather than positions
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSudbery committed Mar 14, 2016
1 parent 7490815 commit 968ee3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dedup_umi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

1 comment on commit 968ee3b

@IanSudbery
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes output counting first brought to attention in #16

Please sign in to comment.