Skip to content

Use the VCF reference length for Interval coordinates - #446

Open
ZuolinCheng wants to merge 1 commit into
daler:masterfrom
ZuolinCheng:r8-117-issue-201
Open

ZuolinCheng wants to merge 1 commit into
daler:masterfrom
ZuolinCheng:r8-117-issue-201

Conversation

@ZuolinCheng

Copy link
Copy Markdown

Match the bundled C++ VCF parser when Python constructs Interval records. The half-open interval spans the reference allele, so insertions with a single reference base retain a one-base span.

Fixes #201

Validation

  • Recompile the patched extension and rerun the four fixture cases with the test site first and editable package hooks disabled — All four VCF interval cases pass.
  • Recompile the pinned Cython extension and run the new synthetic fixture checks in an isolated Python test site — Two multi-base reference cases fail on the pinned base, while both one-base controls pass.

Validation scope

  • Tests target interval construction and use only synthetic records. The existing native C++ VCF reader is unchanged.
  • The change keeps existing C++ parsing behavior and does not interpret INFO/END for symbolic alleles.

AI assistance

OpenAI Codex (GPT-6.2 Sol) assisted with implementation and local tests. Gemini 4 Hydrogen High independently reviewed the initial patch, followed by local feedback handling and verification. This description was prepared with Codex assistance.

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.

VCF feature interval length handling

1 participant