matsengrp / gctree

GCtree: phylogenetic inference of genotype-collapsed trees
https://matsengrp.github.io/gctree
GNU General Public License v3.0
16 stars 2 forks source link

CLI to calculate parsimony scores #93

Open willdumm opened 2 years ago

willdumm commented 2 years ago

So far, this PR only a script scripts/parsimony.py providing functions and a cli for calculating parsimony scores of trees, given a newick(s) and fasta. Also has an option to combine trees into a history DAG.

More features to come, including refactoring disambiguation code to make computing parsimony score more efficient (only one pass is needed to do so, but disambiguation requires two traversals and many more steps), and to allow disambiguations to yield minimally ambiguous characters at internal nodes.

Also, everything else mentioned in issue https://github.com/matsengrp/historydag/issues/17