Skip to content

Fix operator precedence bug in SAMAlignment.getBaseModificationSets()#1833

Open
kojix2 wants to merge 1 commit into
igvteam:mainfrom
kojix2:sam-alignment-operator-precedence
Open

Fix operator precedence bug in SAMAlignment.getBaseModificationSets()#1833
kojix2 wants to merge 1 commit into
igvteam:mainfrom
kojix2:sam-alignment-operator-precedence

Conversation

@kojix2
Copy link
Copy Markdown

@kojix2 kojix2 commented May 18, 2026

Hi IGV team.

This fixes the precedence of a condition.

In Java, && has higher precedence than ||, so the current condition recomputes baseModificationSets when the read has an MM tag, even if it has already been initialized.

This adds parentheses so that base modification sets are computed only once for both Mm and MM tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant