You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the is_supplementary flag in the Mapping structure actually records whether or not the alignment is primary not if it is supplementary. That is valid (and potentially equally optimal) alignments that are secondary (because by the SAM spec only one can be elected as primary) are instead marked as supplementary. The offending line of code seems to be:
let is_supplementary = reg.sam_pri() == 0;
The is_supplementary flag should record if the alignment is actually a supplementary alignment or not. If the mapping is “secondary” or not can already be obtained by the is_primary flag being set to false.
The text was updated successfully, but these errors were encountered:
rob-p
changed the title
Supplementary mapping flag is not set correctly
Bug: Supplementary mapping flag is not set correctly
Aug 17, 2024
This is addressed in the changes to the alignment-score branch, and supplementary mappings fully match those in minimap2 when including the query-name as is possible with the latest PR, so closing this.
It seems that the
is_supplementary
flag in theMapping
structure actually records whether or not the alignment isprimary
not if it is supplementary. That is valid (and potentially equally optimal) alignments that are secondary (because by the SAM spec only one can be elected as primary) are instead marked as supplementary. The offending line of code seems to be:The
is_supplementary
flag should record if the alignment is actually a supplementary alignment or not. If the mapping is “secondary” or not can already be obtained by theis_primary
flag being set to false.The text was updated successfully, but these errors were encountered: