samtools / htsjdk

A Java API for high-throughput sequencing data (HTS) formats.
http://samtools.github.io/htsjdk/
276 stars 244 forks source link

removed redundant code that sets the secondary alignment flag for a r… #1664

Closed KleinSamuel closed 12 months ago

KleinSamuel commented 1 year ago

…eadpair

Description

Short: Removed duplicate code fragment that had no effect.

Long: When adding a new read pair to a SAMRecord using the addPair() method in SAMRecordSetBuilder, the parameters "record1NonPrimary" as well as "record2NonPrimary" are checked to set the secondary alignment flag of the SAM record. This code fragment for both reads was duplicated with no effect. The duplicate is removed in this PR.