Skip to content

Commit d16c87c

Browse files
authored
{is} fix chimeric mates (#707)
* Fixes #664 - reverts to using multiple iterators in the TwoPassWriter close method, but not write mates. This still saves the time from opening many iterators everything the contig is changed, but doesn't lose chimeric reads.
1 parent 0c846f8 commit d16c87c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

umi_tools/sam_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def close(self):
625625
len(self.read1s))
626626

627627
found = 0
628-
for read in self.mate_file.fetch(until_eof=True, multiple_iterators=False):
628+
for read in self.mate_file.fetch(until_eof=True, multiple_iterators=True):
629629

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

0 commit comments

Comments
 (0)