Function nthash::ntr64

source · []
pub fn ntr64(s: &[u8], i: usize, k: usize) -> u64
Expand description

Calculate the hash for a k-mer in the reverse strand of a sequence.

This is a low level function, more useful for debugging than for direct use.

   use nthash::ntr64;
   let rh = ntr64(b"TGCAG", 0, 5);
   assert_eq!(rh, 0x8cf2d4072cca480e);