File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1+ 2.3.3
2+
3+ * Fixed a bug wherein proper pairs where being incorrectly called improper pairs, thereby causing slightly incorrect read extension.
4+
152.3.2
26
37 * The deeptoolsinterval module was modified to speed up plotEnrichment, which was taking forever to finish.
Original file line number Diff line number Diff line change @@ -700,13 +700,17 @@ def is_proper_pair():
700700 return False
701701 if read .reference_id != read .next_reference_id :
702702 return False
703- if self .maxPairedFragmentLength > abs (read .template_length ) > 0 :
703+ if not self .maxPairedFragmentLength > abs (read .template_length ) > 0 :
704704 return False
705705 # check that the mates face each other (inward)
706- if read .reference_start < read .next_reference_start and not read .is_reverse and read .mate_is_reverse :
707- return True
708- if read .reference_start >= read .next_reference_start and read .is_reverse and not read .mate_is_reverse :
709- return True
706+ if read .is_reverse is read .mate_is_reverse :
707+ return False
708+ if read .is_reverse :
709+ if read .reference_start >= read .next_reference_start :
710+ return True
711+ else :
712+ if read .reference_start <= read .next_reference_start :
713+ return True
710714 return False
711715 # if no extension is needed, use pysam get_blocks
712716 # to identify start and end reference positions.
You can’t perform that action at this time.
0 commit comments