variantkey 0.1.0

Pure rust implementation of variantkey
Documentation
  • Coverage
  • 53.85%
    7 out of 13 items documented1 out of 7 items with examples
  • Size
  • Source code size: 6.57 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.92 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • informationsea/variantkey-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • informationsea

variantkey-rs

Build & Test

Pure rust implementation of variantkey

Example

use variantkey::{encode_variant_key, decode_variant_key, Variant};
assert_eq!(
    Ok(0x0807728e88e80000),
    encode_variant_key(b"1", 976157, b"T", b"C"),
);
assert_eq!(
    decode_variant_key(0x0806b567a0fee000),
    Ok(Variant {
        chrom: b"1".to_vec(),
        position: 879311,
        reference: Some(b"TTTC".to_vec()),
        alternative: Some(b"T".to_vec()),
    })
);