Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 1.52 KB

README.md

File metadata and controls

64 lines (39 loc) · 1.52 KB

Tree Maker

Tree Maker is a Python script that allows you to create and visualize phylogenetic trees in a simple and automated way.

Features

  • Produces phylogenetic trees in PDF format.
  • Customizable label colors and styles.
  • Supports Python 3.8 and higher.

Installation

Option 1: Clone the repository

git clone https://github.com/cfe-lab/make_tree.git
pip install  .

Option 2: Install directly from the repository

pip install git+https://github.com/cfe-lab/make_tree

Development

For development dependencies use hatch.

Activate an environment with hatch env create [dev|test].

Test with hatch env run -e test cov

Usage

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.

Contributing

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.

License

Tree Maker is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.