This repository contains tools for phylogenetic tree manipulation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
tests
.gitignore
.travis.yml
LICENSE
README.md
findtrunk.py
requirements.txt
test_all_of_the_units.py
trunktraitevolution.py

README.md

phylo-tools Build Status

This repository contains tools for phylogenetic tree manipulation

findtrunk.py

This script reconstructs the phylogenetic tree trunk using a reverse-traversal method. The tree topology is traversed backward starting iteratively from each leaf in the tree. The program counts how many times each edge is traversed and it stores the sum of the counts in a new label called "trunk" associated to each edge in the topology.

    $ python3 findtrunk.py -i input_tree.tree --input-format nexus

Goto documentation

trunktraitevolution.py

This script computes the permanence and the number of switches of a discrete trait on the tree trunk.

    $ python3 trunktraitevolution.py -i input_tree.tree --input-format nexus --feature location

Goto documentation