Description
Reduce openvariant/variant/variant.py to a thin wrapper over _core.VariantReader. Preserve iterator protocol and where parameter.
Files
openvariant/variant/variant.py — REWRITE
openvariant/variant/where.py — REWRITE (shim to Rust parser)
Definition of Done
Documentation needed: No external API changes.
Tests needed:
- Existing
tests/test_variant.py must pass without modification
- Existing
tests/test_where.py must pass without modification
Description
Reduce
openvariant/variant/variant.pyto a thin wrapper over_core.VariantReader. Preserve iterator protocol andwhereparameter.Files
openvariant/variant/variant.py— REWRITEopenvariant/variant/where.py— REWRITE (shim to Rust parser)Definition of Done
Variant(path, annotation, where="CHR == 1")still worksfor row in variant.read()still yieldsdict[str, str]where.pydelegates to_coreparse, kept only for any external import compatDocumentation needed: No external API changes.
Tests needed:
tests/test_variant.pymust pass without modificationtests/test_where.pymust pass without modification