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

Fix/export and polytomies #234

Merged
merged 9 commits into from
Apr 30, 2023
Merged

Fix/export and polytomies #234

merged 9 commits into from
Apr 30, 2023

Conversation

rneher
Copy link
Member

@rneher rneher commented Apr 30, 2023

The main part of this PR is a reorganization of how random number generator states are handled in TreeTime.
This was previously scattered around and used the default numpy or scipy states. Now, the class TreeAnc owns its own RNG instance that can be seeded explicitly in the constructor and the command line.

Otherwise, this PR implements a few fixes and clean ups

 - very rapid coalescent rates were silently ignored, TreeTime now
   raises an error and exits
 - date and genotype annotations in auspice json were flipped
 - auspice json now contains data and the treetime version
 - slightly changed grid for merger model during propagation
 - typos & comments
 - set default coloring in output
 - add `--rng-seed` to all subcommands
 - use this seed to initialize the default RNG of numpy
 - use this RNG for all random number generation (replace previous
   scipy.stats call with numpy calls)
@rneher rneher merged commit bd24cd4 into master Apr 30, 2023
4 checks passed
@rneher rneher deleted the fix/export-and-polytomies branch April 30, 2023 17:37
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.

None yet

1 participant