Skip to content

Compose mixed inherited and somatic haplotypes (10.11.1) - #567

Merged
iskandr merged 1 commit into
mainfrom
fix/500-mixed-inherited-haplotypes
Sep 30, 2026
Merged

iskandr merged 1 commit into
mainfrom
fix/500-mixed-inherited-haplotypes

Conversation

@iskandr

@iskandr iskandr commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Mixed cis groups containing an allele already in GermlineContext previously returned Unresolved. They now compare novel edits against the patient baseline, retaining inherited alleles once. The #500 reproduction returns p.S159T rather than attempting to apply the inherited allele twice.

Normalize and deduplicate alleles once, then use the existing phase graph and layout pipeline for every edit type. Known-cis group members anchor phase before resolver answers; other germline alleles retain their uncertainty, and homozygous alleles do not bridge haplotypes. Results retain the original group membership, the first novel allele as the primary variant, and per-hypothesis phase/source/novel-edit evidence. All-inherited groups report allele overlap without inferring LOH.

Regression coverage includes inherited and novel SNVs/insertions/deletions, repeated and normalized-equivalent alleles, both input orders, reverse strand, cis/trans/unknown phase, phase propagation and limits, and the public collection/haplotype APIs. The scientific baseline follows Hundal et al.; direct haplotype inputs continue to assert cis, while collections require resolver support to form a group.

Validation:

Version: 10.11.1. Fixes #500. Published to PyPI from clean main; wheel/sdist SHA256 hashes match the local build, and an isolated install passes the original reproduction (p.S159T).

Release-process discrepancy encountered during inspection is already tracked in #414: the current deploy.sh does not implement the bump/guards/tags described in AGENTS.md. The version bump is included here; deployment ran from a verified clean main after CI and merge, following RELEASING.md.

@iskandr
iskandr merged commit 5615e5e into main Sep 30, 2026
5 checks passed
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.

Compose mixed inherited and somatic haplotypes without reapplying inherited alleles

1 participant