Skip to content

Include END/SVLEN in variant id for non-symbolic SVs - #243

Open
chenyangsu wants to merge 1 commit into
Clinical-Genomics:mainfrom
chenyangsu:fix/nonsymbolic-sv-variant-id
Open

chenyangsu wants to merge 1 commit into
Clinical-Genomics:mainfrom
chenyangsu:fix/nonsymbolic-sv-variant-id

Conversation

@chenyangsu

Copy link
Copy Markdown

For two non-symbolic SVs at chr1:66265 (REF=N, ALT=A, SVTYPE=INS) with SVLEN=250 and SVLEN=251, get_variant_id() returns chr1_66265_N_A for both, so the second record overwrites the first in get_batches().

Could we also append END or SVLEN in get_variant_id() when SVTYPE or SVLEN is present in INFO (preferring SVLEN when END equals POS) and warn in get_batches() if a duplicate id still collides? Happy to gate only on SVTYPE if you prefer.

Testing: pytest -> 454 passed, ruff check/format -> clean (6 new tests fail on main).

Fixes #213

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.

genmod models silently drops SVs with non-symbolic ALT values

1 participant