Skip to content

norm: left-align <DUP> with INFO/END but no INFO/SVLEN - #2602

Open
davmlaw wants to merge 1 commit into
samtools:developfrom
davmlaw:norm_symbolic_dup_end
Open

davmlaw wants to merge 1 commit into
samtools:developfrom
davmlaw:norm_symbolic_dup_end

Conversation

@davmlaw

@davmlaw davmlaw commented Oct 7, 2026

Copy link
Copy Markdown

🤖 Written by Claude

Fixes #2601.

realign() read a <DUP>'s length only from INFO/SVLEN, so a <DUP> with INFO/END but no SVLEN came back as ERR_SYMBOLIC and was not left-aligned (a <DEL> with only END already was). This falls back to END - POS when SVLEN is absent; the existing INFO/END update then writes the realigned end.

Test norm.symbolic.4 (reusing the norm.symbolic.3 reference) has the explicit dup, the END-only <DUP> and the SVLEN+END <DUP>; all three now normalize to position 11 with END=18. test/test.pl passes (1994/1994).

A <DUP> took its length only from INFO/SVLEN, so one described by
INFO/END alone was returned unchanged rather than realigned.

This branch has not been deployed

No deployments
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.

norm does not left-align <DUP> that has INFO/END but no INFO/SVLEN

1 participant