Skip to main content

Lint Typecheck types - Mypy Ruff

CFE Tree Maker

CFE 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.10 and higher.

Installation

uv tool install cfetree

Usage

Note: CFE Tree Maker requires trees be generated from Clustal!

To use CFE Tree Maker, run the following command:

cfetree input.newick output.pdf

Alternatively, 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.

Contributing

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.

Development

Use uv to manage the environment.

Install all dev dependencies:

uv sync --extra test --extra dev

Test:

uv run pytest

Lint:

uv run ruff check

Format:

uv run ruff format

Type-check:

uv run mypy cfetree tests

License

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

Metadata

Release files for cfetree 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfetree 2.0.0
File Size Uploaded
cfetree-2.0.0.tar.gz 99.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfetree 2.0.0
File Interpreter ABI Platform
cfetree-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 120.3 kB

Release files / cfetree-2.0.0.tar.gz

Download URL cfetree-2.0.0.tar.gz
Size 99.3 kB
Tags Source
SHA-256 checksum
How to use checksums
631120630f06488851baefb60fd2d16c388ac9632b2cdd46c1967f9677f45956
BLAKE2b-256 checksum
How to use checksums
fa6c6967276748239459730489ce91a54be86e630d1a8127b5c812ae0b821637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.12

Release files / cfetree-2.0.0-py3-none-any.whl

Download URL cfetree-2.0.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
020d6ecf7119efa52b189c0f0a43a20b8d91c3dff25bd3a0329dda17ecec508f
BLAKE2b-256 checksum
How to use checksums
14038b09c83b5e49a8dcff783eb97d093d7ef7491e56e8363b568419852f0880
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.12

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page