A Python package for parsing GTDB trees using Rust
Project description
gtdb_tree
A library for parsing Newick format files, especially GTDB tree files.
Features
- Parse Newick formatted strings into a structured representation of trees.
- Handle various formats of Newick strings, including those with bootstrap values and distances.
Installation
Add this crate to your Cargo.toml
:
[dependencies]
gtdb_tree = "0.1.0"
Usage
Here's a simple example of how to use the library:
use gtdb_tree::tree::parse_tree;
fn main() {
let newick_str = "((A:0.1,B:0.2):0.3,C:0.4);";
match parse_tree(newick_str) {
Ok(nodes) => println!("Parsed nodes: {:?}", nodes),
Err(e) => println!("Error parsing: {:?}", e),
}
}
Python Usage
A Python package for parsing GTDB trees using Rust.
Installation
pip install gtdb_tree
import gtdb_tree
result = gtdb_tree.parse_tree("((A:0.1,B:0.2):0.3,C:0.4);")
print(result)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for gtdb_tree-0.1.4-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 536b34af95dd7429009e74d75a2d9172560ff19f6f2f2bc3ab46b014fa6cc271 |
|
MD5 | fe153910d0bd6563922634a99cd46c53 |
|
BLAKE2b-256 | 8d5b46fb10963285c2c7007f09012fa0a0c03906ff716ff4219b721d5e115350 |
Close
Hashes for gtdb_tree-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 423c47a3ed8449964cd58433515df8c1c257abe384eb2cd38ba2d0ebc818b212 |
|
MD5 | 671888badeda3e6820c208bcfcc6e7ad |
|
BLAKE2b-256 | 42c1af2068813c6737fecacd9bec088dd7484aafb5ba04b672a2d18c9f331bc7 |
Close
Hashes for gtdb_tree-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee8ceff2049c8f4c59f817b59a3e055ac70e6484c2c98489d93eb0df0fd9900f |
|
MD5 | 8ff88c1b8b39b417ebaa7c3b88c694cb |
|
BLAKE2b-256 | 0bc4e759685f60c4989837d7609e184841254877aa03e72ebd47a2e7a3766da0 |
Close
Hashes for gtdb_tree-0.1.4-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a124691cbfc36913c7fc216828d90ea83ff7231b8e16c50627a583c3145d90 |
|
MD5 | bccf724ed5a72f1abc775220965bcd92 |
|
BLAKE2b-256 | e93820cb2eee9e3f960451a8fb770aebea63e4d23c130f6f53f36f9be0e5e0f1 |
Close
Hashes for gtdb_tree-0.1.4-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3e4cb79b08e4e935e8e02c0bd816173b3aea61ca1afbf7b2dfdf7b8b5c78af3 |
|
MD5 | 6cb64b0e1979fbd6e07e02a81cdd7f8d |
|
BLAKE2b-256 | 1a4900b1150b39fcb4c399b13e031216a66d4c25c352f52cad9c6b7580ae8ad9 |
Close
Hashes for gtdb_tree-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5b645f3e611c10b889f87588be7e8a33d510c8eca9308943ce58ab536370615 |
|
MD5 | 70dff01eea067664b066f7e8f061a1f1 |
|
BLAKE2b-256 | 21c196440dd30ac8221ea5c906a033887df63054ef555ac51626404899aa519d |
Close
Hashes for gtdb_tree-0.1.4-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2443f5c673e0be6615cdaaff09d8cfe2c84d86e067bbcb0825abfc8c35c6bc75 |
|
MD5 | 8ccaa7603b6c07c66ac002d87d0ca63c |
|
BLAKE2b-256 | d9c26b5858308b4d3a0e79cb9e040bf798c689f4d759f1ab7d7a9897d9217663 |
Close
Hashes for gtdb_tree-0.1.4-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a16cdfe88c3b1ab456320f39e99c0829d265e6407806ff61eaf28c69938e77 |
|
MD5 | f6b089ce4bd9e2a611278a215fc921e7 |
|
BLAKE2b-256 | e67050220aa6f4484983535e8135a810a1db95b004c3e861dfa13d4c4f7c495f |
Close
Hashes for gtdb_tree-0.1.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5be31fb1c7983d00b6d06b5ac8afad78f61742bbd742947ee6b12f6698b0da07 |
|
MD5 | e1d79173410d56c6ed0213acd262ec99 |
|
BLAKE2b-256 | b906356eb4cab57944bcdbf3131f9b29e585f5fd8d5bd54003b3c689fb617f63 |
Close
Hashes for gtdb_tree-0.1.4-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1034e848a3b36dedfe31ec99a2941eb1876b45b0c785e88cb47000d7817e9d4 |
|
MD5 | 8b68d4b5fd1fca407a25b0cfb24feca9 |
|
BLAKE2b-256 | 8ff18f1ff0972dc51222541ea73d6a431d1ff119ef888e1e185bd29eaffd98e4 |
Close
Hashes for gtdb_tree-0.1.4-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ae01835fdb55e6051ecfcecc21a8007d9653b05359a7130e83de7f2af81a6da |
|
MD5 | cce59579db1b35f5796a176df4fd0e7f |
|
BLAKE2b-256 | 7962711ae0ea323a00004110fdcc3b9d59c22aaed8af81d5fdc83cbbd9e027fe |
Close
Hashes for gtdb_tree-0.1.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d2dd0400e71a6c707e7f8c69bd3f025988eacd934b4c3ba31de099cc49b750 |
|
MD5 | 798002067240cae482f4b0143f687d75 |
|
BLAKE2b-256 | 6db022c6dc741d3cd307de7baddc218285a7aa972b89995f1347d5edf801d63e |