Skip to main content

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.5.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

gtdb_tree-0.1.5-cp38-cp38-manylinux_2_34_x86_64.whl (269.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.34+ x86-64

File details

Details for the file gtdb_tree-0.1.5.tar.gz.

File metadata

  • Download URL: gtdb_tree-0.1.5.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for gtdb_tree-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3ef37d7eae862d533d2464868f64bbf7f060b4ef8c566ab44975b35cc24fd6d4
MD5 e38976105eac8939f4d33047fa9786a4
BLAKE2b-256 ee64ba57647cde432925941c314d4161e2f5986048118df87bf60c660fe0e087

See more details on using hashes here.

File details

Details for the file gtdb_tree-0.1.5-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for gtdb_tree-0.1.5-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9ae88d283277bc33beaec4d9690ced3dd1169e6d3159e15ef2a01b08974c2e28
MD5 e3b3567dee83be0f8dd1dbab91665004
BLAKE2b-256 688d0317ae6ae662fcbf338a609fb6f7e4a32c8f8a002867682bae05d22b8677

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page