Nexwick
Rust library providing Nexus and Newick parsers to read in phylogenetic tree files and strings.
Installation
cargo add nexwick or add to your Cargo.toml:
Quick Start
use ;
// Parse a Newick string
let tree = parse_newick_str.unwrap;
assert_eq!;
// Parse a Nexus file
let = parse_nexus_file.unwrap;
Documentation
See https://docs.rs/nexwick for full documentation, including:
- Tree types ([CompactTree] vs [SimpleTree])
- Parser configuration (burnin, lazy/eager mode)
- Custom tree builders
License
Licensed under either of Apache License 2.0 or MIT license at your option.