Tree Maker is a Python script that allows you to create and visualize phylogenetic trees in a simple and automated way.
- Produces phylogenetic trees in PDF format.
- Customizable label colors and styles.
- Supports Python 3.8 and higher.
git clone https://github.com/cfe-lab/make_tree.git
pip install .
pip install git+https://github.com/cfe-lab/make_tree
For development dependencies use hatch.
Activate an environment with hatch env create [dev|test]
.
Test with hatch env run -e test cov
Note: tree_maker requires trees be generated from Clustal!
IMPORTANT: You will need
libgl1
to use this,apt install libgl1
for Debian based systems.
To use Tree Maker, run the following command:
make_tree input.newick output.pdf
Alternatively, import it into your own project:
from make_tree import load_tree, export_tree
t = load_tree("A,B,C;")
export_tree(t, "/tmp/tree.pdf", "My tree")
This will generate a PDF file containing the phylogenetic tree.
Contributions to Tree Maker are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
Tree Maker is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.