Skip to content

Commit

Permalink
removed redundant code that sets the secondary alignment flag for a r…
Browse files Browse the repository at this point in the history
…eadpair
  • Loading branch information
kleins95 authored and lbergelson committed Jul 28, 2023
1 parent 6d3fc7b commit 5404ca2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,6 @@ public List<SAMRecord> addPair(final String name, final int contig1, final int c
end2.setSecondaryAlignment(true);
}

if (record1NonPrimary) {
end1.setSecondaryAlignment(true);
}
if (record2NonPrimary) {
end2.setSecondaryAlignment(true);
}

// set mate info
SamPairUtil.setMateInfo(end1, end2, true);

Expand Down

0 comments on commit 5404ca2

Please sign in to comment.