5 unstable releases
| 0.3.1 | Nov 28, 2025 |
|---|---|
| 0.3.0 | Nov 24, 2025 |
| 0.2.0 | Feb 20, 2025 |
| 0.1.1 | Feb 15, 2025 |
| 0.1.0 | Feb 13, 2025 |
#249 in Biology
42KB
404 lines
dabuild
dabuild provides your analysis with genome build metadata.
Example
Use GRCh38.p13 build (Homo sapiens):
use dabuild::{GenomeBuild, GenomeBuildIdentifier};
use dabuild::builds::get_grch38_p13;
// Load the build
let build: GenomeBuild = get_grch38_p13();
// Check the basic credentials, such as major assembly and patch version
assert_eq!(build.id().major_assembly(), "GRCh38");
assert_eq!(build.id().patch(), Some("p13"));
// Obtain a contig (e.g. `chrY`) by name ...
let y = build.contig_by_name("Y");
assert!(y.is_some());
/// ... or by the GenBank accession ...
let y = build.contig_by_name("CM000686.2");
assert!(y.is_some());
/// ... or by the RefSeq accession ...
let y = build.contig_by_name("NC_000024.10");
assert!(y.is_some());
/// ... or by the UCSC identifier.
let y = build.contig_by_name("chrY");
assert!(y.is_some());
Documentation
See more examples along with the complete documentation at docs.rs.
Dependencies
~155–560KB
~13K SLoC