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. TODO

@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.2.0.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

colorclade-0.2.0-py2.py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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