Function nthash::ntf64

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

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

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

   use nthash::ntf64;
   let fh = ntf64(b"TGCAG", 0, 5);
   assert_eq!(fh, 0xbafa6728fc6dabf);