Skip to content

Commit

Permalink
Attempt to fix a part of CGATOxford#347 that leads to duplicate lines…
Browse files Browse the repository at this point in the history
… in the output
  • Loading branch information
christianbioinf committed Aug 23, 2019
1 parent e8c2b47 commit c6081f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umi_tools/sam_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def close(self):
found = 0
for read in self.infile.fetch(until_eof=True, multiple_iterators=True):

if read.is_unmapped:
if any((read.is_unmapped, read.mate_is_unmapped, read.is_read1)):
continue

key = read.query_name, read.reference_name, read.reference_start
Expand Down

0 comments on commit c6081f2

Please sign in to comment.