CFE 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.10 and higher.
uv tool install cfetreeNote: CFE Tree Maker requires trees be generated from Clustal!
To use CFE Tree Maker, run the following command:
cfetree input.newick output.pdfAlternatively, import it into your own project:
from cfetree 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 CFE 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.
Use uv to manage the environment.
Install all dev dependencies:
uv sync --extra test --extra devTest:
uv run pytestLint:
uv run ruff checkFormat:
uv run ruff formatType-check:
uv run mypy cfetree testsCFE Tree Maker is licensed under the GNU General Public License v3.0. See the LICENSE file for more details.