| Crates.io | nexwick |
| lib.rs | nexwick |
| version | 0.1.0 |
| created_at | 2026-01-25 19:49:59.647583+00 |
| updated_at | 2026-01-25 19:49:59.647583+00 |
| description | Parser for Nexus files and Newick strings |
| homepage | https://github.com/joklawitter/nexwick/ |
| repository | https://github.com/joklawitter/nexwick/ |
| max_upload_size | |
| id | 2069408 |
| size | 274,190 |
Rust library providing Nexus and Newick parsers to read in phylogenetic tree files and strings.
cargo add nexwick or add to your Cargo.toml:
[dependencies]
nexwick = "0.1"
use nexwick::{parse_newick_str, parse_nexus_file};
// Parse a Newick string
let tree = parse_newick_str("((A:0.1,B:0.2):0.3,C:0.4);").unwrap();
assert_eq!(tree.num_leaves(), 3);
// Parse a Nexus file
let (trees, labels) = parse_nexus_file("phylo.trees").unwrap();
See https://docs.rs/nexwick for full documentation, including:
Licensed under either of Apache License 2.0 or MIT license at your option.