colorclade draws phylogenies with hierarchical coloring for easier visual comparison.
Project description
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. TODO
@software{moreno2024colorclade,
author = {Matthew Andres Moreno},
title = {mmore500/colorclade},
month = mar,
year = 2024,
publisher = {Zenodo},
doi = {TODO},
url = {TODO}
}
Consider also citing Biopython and matplotlib. And don't forget to leave a star on GitHub!
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for colorclade-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed280f5e6281e08a431571cb94c2b5a336d30463d3f0933e3975b049e6c950c0 |
|
MD5 | ae131b811f70d6fa811e6d98f438e5c8 |
|
BLAKE2b-256 | f393dd44b3090279d5005280972e92478c774fc3c0a0ec6a216031e9bd9f0fd6 |