Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary tree resolutions and fast sampling #84

Merged
merged 10 commits into from
Jan 30, 2024
Merged

Binary tree resolutions and fast sampling #84

merged 10 commits into from
Jan 30, 2024

Conversation

willdumm
Copy link
Collaborator

This PR includes:

  • machinery to iterate through nodes which would be produced by resolving a multifurcation, and compute their supports, without explicitly choosing a single binary resolution (historydag.utils.iter_resolved_clade_supports)
  • (for fun/testing) a function to produce complete DAGs containing all possible binary topologies on a set of leaf labels (historydag.dag.make_binary_complete_dag)
  • a new general interface for passing data of sampled histories to an arbitrary target object without an intermediate history DAG representation (historydag.dag.PreorderTreeBuilder and subclasses)
  • a faster, and non-recursive sampling method HistoryDag.fast_sample

@willdumm willdumm merged commit a0514e1 into main Jan 30, 2024
2 checks passed
@willdumm willdumm deleted the wd-binary-trees branch January 30, 2024 23:09
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