matsengrp / historydag

https://matsengrp.github.io/historydag
GNU General Public License v3.0
0 stars 1 forks source link

Add beast tree loader #63

Closed willdumm closed 1 year ago

willdumm commented 1 year ago

This is the squashed version of #60

(Copied from #60):

This PR adds basic support for loading trees from BEAST.

In addition, in order to make transition matrix and ambiguity code options more explicit, and to reduce overhead in functions which require those options, this PR introduces some new classes in parsimony.py:

I'm very bad at naming, so let me know if you have suggestions @marybarker. In particular, I was using transition_model lots for variables that expect TransitionAlphabet, so I should probably change the class name to match... but is TransitionModel the best we can come up with?

willdumm commented 1 year ago

60 was reviewed, so I'll bypass protections and merge this without one.