Skip to main content

colorclade draws phylogenies with hierarchical coloring for easier visual comparison.

Project description

PyPi CI GitHub stars DOI

colorclade draws phylogenies with hierarchical coloring for easier visual comparison

Install

python3 -m pip install colorclade

Example Usage

from colorclade import draw_colorclade_tree

fig, axes = plt.subplots(1, 2)
draw_colorclade_tree(
    alifestd_df1,
    taxon_name_key="taxon",
    ax=axes.flat[0],
    backend="biopython",
)
draw_colorclade_tree(
    alifestd_df2,
    taxon_name_key="taxon",
    ax=axes.flat[1],
    backend="biopython",
    label_tips=False,
)
axes.flat[1].set_xlim(reversed(axes.flat[1].get_xlim()))
fig.set_size_inches(7, 2.5)
plt.tight_layout()

example

See tests/test_draw_colorclade_tree.py for full example code.

Citing

If colorclade contributes to a scientific publication, please cite it as

Matthew Andres Moreno. (2024). mmore500/colorclade. Zenodo. https://doi.org/10.5281/zenodo.10802404

@software{moreno2024colorclade,
  author = {Matthew Andres Moreno},
  title = {mmore500/colorclade},
  month = mar,
  year = 2024,
  publisher = {Zenodo},
  doi = {10.5281/zenodo.10802404},
  url = {https://zenodo.org/doi/10.5281/zenodo.10802404}
}

Consider also citing Biopython and matplotlib. And don't forget to leave a star on GitHub!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colorclade-0.3.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colorclade-0.3.0-py2.py3-none-any.whl (10.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file colorclade-0.3.0.tar.gz.

File metadata

  • Download URL: colorclade-0.3.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for colorclade-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7ad4851f55e30b4c56f87671168f33dbc8fd6b198d0cab3adbe1ec482ff7da08
MD5 ddf971aa8765b4bf33fce13908d7a1d6
BLAKE2b-256 4f1d08353144aab9e79ba0325eadc78d470766e9ee9622d2b03b16e6336c3762

See more details on using hashes here.

File details

Details for the file colorclade-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: colorclade-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for colorclade-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9b50a9452d005c524a09d004247c72edc065f2ac57b502282b3b6f72379fa537
MD5 1809834c9eccc0893a13fcf522e9f731
BLAKE2b-256 c919edbd849ecf69ddfd39ca6e136160361aa8537643a924247bf673dc918f06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page