Skip to content

Add tsinfer 1.0 chr20p matching benchmarks - #6

Merged
jeromekelleher merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:tsinfer-bench
Oct 22, 2026
Merged

jeromekelleher merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:tsinfer-bench

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Benchmark the tsinfer-hmm and tsls engines on the ancestor and sample matching phases of a tsinfer 1.0 inference of 1000 Genomes chr20p, using tsinfer's paths as ground truth.

  • tsinfer_groups.py recomputes tsinfer's match groups (run in the tsinfer environment).
  • tsinfer_data.py makes ancestor workloads for any group, by cutting the ancestors tree sequence before the group, and sample workloads.
  • run.py uses a workload's model.json and per-query site windows.
  • tsinfer_summary.py compares the paths with tsinfer's and reports times and memory.
  • The engines take alleles and weight_by_n options, and share a base class.

Benchmark the tsinfer-hmm and tsls engines on the ancestor and sample
matching phases of a tsinfer 1.0 inference of 1000 Genomes chr20p,
using tsinfer's paths as ground truth.

- tsinfer_groups.py recomputes tsinfer's match groups (run in the
  tsinfer environment).
- tsinfer_data.py makes ancestor workloads for any group, by cutting
  the ancestors tree sequence before the group, and sample workloads.
- run.py uses a workload's model.json and per-query site windows.
- tsinfer_summary.py compares the paths with tsinfer's and reports
  times and memory.
- The engines take alleles and weight_by_n options, and share a base
  class.
@jeromekelleher
jeromekelleher merged commit 551788a into tskit-dev:main Oct 22, 2026
15 checks passed
@jeromekelleher
jeromekelleher deleted the tsinfer-bench branch October 22, 2026 14:46
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