Skip to content

Commit

Permalink
Merge pull request #366 from christianbioinf/{IS}_dedup_with_paired_d…
Browse files Browse the repository at this point in the history
…uplicated_lines

Fix for incorrect output of dedup with --paired (#347) in case of duplicated lines
  • Loading branch information
IanSudbery authored Aug 23, 2019
2 parents e8c2b47 + c6081f2 commit 6945f6a
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 6945f6a

Please sign in to comment.