Function nthash::ntc64[][src]

pub fn ntc64(s: &[u8], i: usize, ksize: usize) -> u64

Calculate the canonical hash (minimum hash value between the forward and reverse strands in a sequence).

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

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