use-gene 0.1.0

Primitive gene identity vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    28 out of 28 items documented1 out of 27 items with examples
  • Size
  • Source code size: 11.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 878.26 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-biology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-gene

Primitive gene identity vocabulary.

use-gene stores descriptive gene identifiers, symbols, names, loci, alleles, and genotypes. It does not implement sequence alignment, genome annotation, FASTA/FASTQ parsing, variant calling, mutation-effect prediction, or medical interpretation.

use use_gene::{Allele, GeneSymbol, Genotype, Locus};

let symbol = GeneSymbol::new("BRCA1").unwrap();
let locus = Locus::new("17q21.31").unwrap();
let genotype = Genotype::new(vec![Allele::new("A").unwrap(), Allele::new("a").unwrap()]);

assert_eq!(symbol.to_string(), "BRCA1");
assert_eq!(locus.to_string(), "17q21.31");
assert_eq!(genotype.to_string(), "A/a");