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 Distribution
gtdb_tree-0.1.2.tar.gz
(7.5 kB
view details)
Built Distributions
File details
Details for the file gtdb_tree-0.1.2.tar.gz
.
File metadata
- Download URL: gtdb_tree-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b5fc0387df664edd8c7cb338d936511e6c399c7763951e7d569ac97ceef397 |
|
MD5 | 933e5e6a0e942c855f7a7a538667e11d |
|
BLAKE2b-256 | dd39007b93e5b902b04f0b07d348dd570a52d8928eb99484e0d117ac7256b883 |
File details
Details for the file gtdb_tree-0.1.2-py3-none-win_amd64.whl
.
File metadata
- Download URL: gtdb_tree-0.1.2-py3-none-win_amd64.whl
- Upload date:
- Size: 64.5 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947c872b58cf5df26395f423dbc9bcb4aa52bfefdc62d3222dbe342a651fc7e4 |
|
MD5 | 7fb99209498e7952414ffaa4b7197289 |
|
BLAKE2b-256 | abaf8f19c7ac113fdf5dfee74cc7ac9e636f5e004926329f7c54c6e3ca7cfa4c |
File details
Details for the file gtdb_tree-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: gtdb_tree-0.1.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622f0d04c110c646cdeb991f07e44ad7380724aea7ccc5cf9628b75af523281b |
|
MD5 | 2d2c565288043029c8e1290fe5fa20ae |
|
BLAKE2b-256 | ff73a96318983ac1cb4d69462e87ceed0c08b051053c1414d4b439db795aca25 |
File details
Details for the file gtdb_tree-0.1.2-py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: gtdb_tree-0.1.2-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 201c8e2c9a68417864babcfc5d5d71596bb55dfedf7e92b7a3b7d4d6584a93b9 |
|
MD5 | 4ea41be72336f16335bf283df832b8db |
|
BLAKE2b-256 | 12845ddd79d01f99bc109af3253812d76a618679813527a48d073af391dd2663 |