Skip to content

Commit

Permalink
fix: Add QNAME in pair identification
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisVerkhoturov committed Sep 22, 2017
1 parent 7843453 commit 20ad2c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/htsjdk/samtools/SAMRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ private boolean hasReferenceName() {
*/
public boolean isPair(final SAMRecord record) {
return record != null
&& this.getReadName().equals(record.getReferenceName())
&& this.getMateAlignmentStart() == record.getAlignmentStart()
&& record.getMateAlignmentStart() == this.getAlignmentStart()
&& !NO_ALIGNMENT_REFERENCE_NAME.equals(this.getMateReferenceName())
Expand Down

1 comment on commit 20ad2c9

@yfarjoun
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh? this.getReadName().equals(record.getReferenceName()) ? that can't be right.

Please sign in to comment.