colorclade draws phylogenies with hierarchical coloring for easier visual comparison
- Free software: MIT license
- Repository: https://github.com/mmore500/colorclade
- Documentation: https://github.com/mmore500/colorclade/blob/master/README.md
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()
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!
Metadata
Release files for colorclade 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| colorclade-0.3.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colorclade-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 19.3 kB
Release files / colorclade-0.3.0.tar.gz
| Download URL | colorclade-0.3.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ad4851f55e30b4c56f87671168f33dbc8fd6b198d0cab3adbe1ec482ff7da08
|
|
BLAKE2b-256 checksum How to use checksums |
4f1d08353144aab9e79ba0325eadc78d470766e9ee9622d2b03b16e6336c3762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / colorclade-0.3.0-py2.py3-none-any.whl
| Download URL | colorclade-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9b50a9452d005c524a09d004247c72edc065f2ac57b502282b3b6f72379fa537
|
|
BLAKE2b-256 checksum How to use checksums |
c919edbd849ecf69ddfd39ca6e136160361aa8537643a924247bf673dc918f06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|