cogent3 plugin for ete3
Project description
A plugin for converting a cogent3 tree to ete3 tree object
Developed an app that takes a cogent3 PhyloNode then returns an ete3 PhyloTree, plus an app for edge colouring.
cogent3 to ete3 tree
from cogent3 import load_tree, get_app
from cogent3_ete3.style import show_legend
tree = load_tree("data/tree_large_scale.newick")
conv = get_app("cogent3_to_ete3")
t = conv(tree)
t is an ete3 PhyloTree.
colour edges by a mapping
The ete3_colour_edge app allows you to colour information on selected edges. The app applies a colour to named edges. This means for colouring internal edges the node must have names.
edge_to_cat = {"Vombatidae_Vombatus_ursinus": "A",
"Dasyuridae_Sarcophilus_harrisii": "B",
"Peramelidae_Echymipera_kalubu" : "C",
"Pseudochiridae_Pseudochirulus_forbesi": "D"}
cat_to_colour={"A":"blue",
"B":"blue",
"C":"red",
"D":"orange"}
cl = get_app("ete3_colour_edge", edge_to_cat=edge_to_cat, cat_to_colour=cat_to_colour)
t = cl(t)
You can use the convenient function to show a legend.
show_legend(t, cat_to_colour, legend_title="Your Category")
In the pop-up window, you can explore further and render the tree in a file as you progress:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cogent3_ete3-2025.7.3.tar.gz.
File metadata
- Download URL: cogent3_ete3-2025.7.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00bdea60b7dd1593afea84e1b3c150c88a63bbc7dfe3b616aa91f714c89d61ba
|
|
| MD5 |
048eed13bd1373ea3a73ab1ac65dd398
|
|
| BLAKE2b-256 |
903b0c7d6af355a9ffe82c19d27c06665e15d8cda5345ccefde749cc9ae2ecda
|
Provenance
The following attestation bundles were made for cogent3_ete3-2025.7.3.tar.gz:
Publisher:
release.yml on YapengLang/cogent3-ete3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogent3_ete3-2025.7.3.tar.gz -
Subject digest:
00bdea60b7dd1593afea84e1b3c150c88a63bbc7dfe3b616aa91f714c89d61ba - Sigstore transparency entry: 260944661
- Sigstore integration time:
-
Permalink:
YapengLang/cogent3-ete3@53895d2f10b489d605a45a1c9bd8129c6929bd9f -
Branch / Tag:
refs/tags/2025.7.3 - Owner: https://github.com/YapengLang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@53895d2f10b489d605a45a1c9bd8129c6929bd9f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file cogent3_ete3-2025.7.3-py3-none-any.whl.
File metadata
- Download URL: cogent3_ete3-2025.7.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a456842d2d7dda115901dad359c00a74564d97a907334b266586b3043bcc1b
|
|
| MD5 |
2a1f23c4a4fb37325ef3184a5dcb0e4c
|
|
| BLAKE2b-256 |
73eb55093538fa17554ba8fcea9da629369b1e69cf3593cf4766d65ad1b071a6
|
Provenance
The following attestation bundles were made for cogent3_ete3-2025.7.3-py3-none-any.whl:
Publisher:
release.yml on YapengLang/cogent3-ete3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogent3_ete3-2025.7.3-py3-none-any.whl -
Subject digest:
06a456842d2d7dda115901dad359c00a74564d97a907334b266586b3043bcc1b - Sigstore transparency entry: 260944672
- Sigstore integration time:
-
Permalink:
YapengLang/cogent3-ete3@53895d2f10b489d605a45a1c9bd8129c6929bd9f -
Branch / Tag:
refs/tags/2025.7.3 - Owner: https://github.com/YapengLang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@53895d2f10b489d605a45a1c9bd8129c6929bd9f -
Trigger Event:
workflow_dispatch
-
Statement type: