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
Usage
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.0.tar.gz
(233.2 kB
view hashes)
Built Distribution
Close
Hashes for gtdb_tree-0.1.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d7425dd3caea10944804affab3635452bfa42382b006a195d12e1dfbfb29590 |
|
MD5 | 33ef23717ba339801e376e7f8e854251 |
|
BLAKE2b-256 | 39befd485d85bfc054c6ff415652ee6095dec7c6c78cb99df2411722044016e3 |