Patch release on top of v2.2.2. No cache invalidation: existing v2.2.2 caches remain current on upgrade and allelix db update signal-skips every annotator. v2.2.3 ships no schema or interpreter version changes.
Highlights
-
23andMe parser tolerates the v5 "is generated" banner variant. Newer 23andMe v5 raw-data exports replace the historical first-line prose
"# This data file generated by 23andMe"with"# This data file is generated by 23andMe."(extra word "is", trailing period). The strictstartswithcheck on the historical prefix failed silently and dropped the file through all parsers to "Unsupported format." The parser now matches against a tuple of both known canonical banner-line variants; future vendor banner edits get a new entry in the tuple without further detection-logic changes. The deliberate "no loose substring matching" policy is preserved, so transcoded fixtures and third-party converter output that mention 23andMe in passing are still correctly rejected. Banner-less 23andMe-shape files (WGSExtract output, Genetic Lifehacks converter output, privacy-conscious users who delete the comment block) remain out of scope for this parser by design and route to a separate generic-TSV parser landing in v2.3. -
gnomAD position resolver chunk size brought to the project's parameter-count convention. The position-keyed resolver added in v2.2.2 batched at the full
_BULK_BATCH_SIZEconstant while binding two SQLite parameters per input pair, so each chunk issued a 1800-parameter query — the only batched query in the codebase exceeding the ~999-parameter convention every other batched annotator (and gnomAD's own multi-parameter queries) deliberately respects. Modern SQLite raised the variable limit well past 1800, so the deviation was harmless at runtime — but it was a foot-gun for any future change. Chunk size is now_BULK_BATCH_SIZE // 2, matching the annotator's ownbulk_lookup_by_alt(identical 2-parameter shape, same divisor) andbulk_lookup_by_position(4-parameter shape,// 4, same convention scaled). Zero runtime behavior change. -
README data-lifecycle line corrected. The README still claimed a
db-lifecyclesubcommand was "planned for v2.1."allelix db cleanshipped in v2.2.0 and is documented elsewhere in the same README; the stale line was a v2.0 relic. Replaced with an accurate one-line note that the cache-side lifecycle ships and that managing report files written via--outputremains the user's responsibility.
Process
- Release-content discipline. A new section in
CONTRIBUTING.mdestablishes a hard rule: raw drift-vulnerable counts (panel-coverage ratios, timing arrows, explicit before/after pairs) must not appear inCHANGELOG.md, commit messages, or GitHub Release notes unless wrapped with an explicit snapshot caveat — or, preferably, quoted via the §19 ground-truth harness output format, which is drift-tolerant by design. The harness floor invariants intest_data/HG002_GROUND_TRUTH.yamlare the canonical regression-detection signal. A CI sanitize guard now enforces this on the[Unreleased]block of the CHANGELOG; past releases are not retroactively enforced.
Known limitations
- GRCh38 rsID-less files still fall back to ClinVar / gnomAD position resolution for rsID-keyed lookups. Full dbSNP resolution is targeted for v2.3+.
- Banner-less 23andMe-shape files (WGSExtract output, Genetic Lifehacks converter output, comment-stripped uploads) are out of scope for the 23andMe parser by design. A separate generic-TSV parser, landing in v2.3, will handle them without misattributing them to a specific vendor.
Calibration
- Array carrier counts unchanged. The v2.1.0 strand-aware carrier-matching pathway is untouched.
- JSON report schema stays at 6. No new fields, no semantic changes.
- No loose substring matching. The two-layer design (vendor-specific parser + generic fallback in v2.3) gives better provenance attribution than libraries that detect 23andMe by bare substring; banner-bearing files get correctly attributed to their vendor.
Fixed
- 23andMe parser silently rejected newer v5 exports because the canonical first-line banner prose was edited; both old and new banner variants are now recognized.
- gnomAD position resolver query chunk size brought to the project's parameter-count convention.
- README's stale "planned for v2.1" line on the data-lifecycle subcommand corrected (shipped in v2.2.0).
- Code-comment + CHANGELOG citation pointed at a non-existent method (
bulk_lookup_af) — fixed to name the real precedent (bulk_lookup_by_alt).
Added
tests/fixtures/mock_23andme_v5_is_generated.txt— committed fixture pinning the v5 banner-line variant. Both v4 and v5 variants are tested in CI; identical analysis output across both confirms data-fidelity preservation.CONTRIBUTING.md§ Release-content discipline — hard rule against drift-vulnerable counts in shipped release surfaces, with the two acceptable shapes named (snapshot caveat or harness-output quote).tests/test_changelog_sanitize.py— extended to flag the three drift patterns (panel ratios, timing arrows, before/after pairs) in the[Unreleased]block.
Verification
- Tests. 1734 passed, 0 skipped, 5 deselected (slow / integration).
- Coverage. CI 3.11 / 3.12 matrix clears the 92.5 floor. Local 3.14 measures 93.03; CI runs ~0.1–0.2pp lower per the calibration note in
pyproject.toml. - Lint.
ruff check/ruff format --check/mypyall clean. - §19 ground-truth harness on the real GIAB GRCh38 benchmark:
✓ giab_grch38_benchmark: 2034 annotations, 1235 unique keys, all invariants hold. The harness floor invariants are drift-tolerant by design and remain the canonical regression signal. - Cross-parser identity on the
user1190transcoded files (same individual in six vendor-format envelopes): symmetric set diff of(source, rsid, significance)tuples is0across all six formats. Deterministic regression signal that does not drift with DB refreshes. - Wrong-allele safety invariant. Every alt-set annotation with a stamped CADD score has its alt directly in gnomAD's alts at that rsID; zero via-complement hits on the real-data battery.
- Same-sample superset check. HG002 DeepVariant gVCF analyze output is a strict superset of the GIAB GRCh38 benchmark output at default magnitude filter (0 benchmark rows missing from the gVCF).