Skip to content

Commit 20ad2c9

Browse files
fix: Add QNAME in pair identification
1 parent 7843453 commit 20ad2c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/htsjdk/samtools/SAMRecord.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ private boolean hasReferenceName() {
338338
*/
339339
public boolean isPair(final SAMRecord record) {
340340
return record != null
341+
&& this.getReadName().equals(record.getReferenceName())
341342
&& this.getMateAlignmentStart() == record.getAlignmentStart()
342343
&& record.getMateAlignmentStart() == this.getAlignmentStart()
343344
&& !NO_ALIGNMENT_REFERENCE_NAME.equals(this.getMateReferenceName())

0 commit comments

Comments
 (0)