Skip to content

Compression experiments - #5

Merged
jeromekelleher merged 3 commits into
tskit-dev:mainfrom
jeromekelleher:compression-experiments
Oct 16, 2026
Merged

jeromekelleher merged 3 commits into
tskit-dev:mainfrom
jeromekelleher:compression-experiments

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

No description provided.

AncestorMatcher.viterbi_matrix runs Viterbi and also returns a
CompressedMatrix of the normalised values and recombination_required
flags stored in the traceback at each site, with the maximum likelihood
as the normalisation factor. CompressedMatrix.dump and
tsls.load_compressed_matrix save and reload matrices for a tree
sequence.
experiments/compression captures exact Viterbi and forward matrices on
sc2ts sub-ARGs and simulated ARGs and analyses their compression: the
stored lists are already minimal, while the Viterbi traceback is
dominated by repeated lists that a delta encoding would reduce 50-430x
on sc2ts. Correct the sibling-merging suggestion in the thresholding
README.
CI runs pytest -n 4, which requires the xdist plugin.
@jeromekelleher
jeromekelleher merged commit 9968a62 into tskit-dev:main Oct 16, 2026
15 checks passed
@jeromekelleher
jeromekelleher deleted the compression-experiments branch October 16, 2026 20:01
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.

1 participant