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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: colorclade-0.2.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for colorclade-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d06d573787d522cf4e7e43dce493f67616133e9b2588b2ecc78e356de3530f66
MD5 1231c731c05045b74c6e6e34f6011012
BLAKE2b-256 2b39c60b4a89bec3ff6a15a4f534146261fc184e116916d7639140dc701ce60f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: colorclade-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for colorclade-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e06e9294f945699224d9376b663b9023fa540807dbb8d20bd9dda5e30dbe6634
MD5 af120b73f423224cbfbb1d6ee4063058
BLAKE2b-256 34c769b880f3c867febb8dd35c4775deaa43f5156dcce6290a534e737d92ee79

See more details on using hashes here.

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