diff --git a/src/core/src/manifest.rs b/src/core/src/manifest.rs index 475fa79112..aefedeb05f 100644 --- a/src/core/src/manifest.rs +++ b/src/core/src/manifest.rs @@ -82,7 +82,8 @@ impl Record { pub fn from_sig(sig: &Signature, path: &str) -> Vec { sig.iter() .map(|sketch| { - let (ksize, md5, with_abundance, moltype, n_hashes, num, scaled) = match sketch { + let (mut ksize, md5, with_abundance, moltype, n_hashes, num, scaled) = match sketch + { Sketch::MinHash(mh) => ( mh.ksize() as u32, mh.md5sum(), @@ -106,6 +107,10 @@ impl Record { let md5short = md5[0..8].into(); + if moltype != HashFunctions::Murmur64Dna { + ksize /= 3; + } + Self { internal_location: path.into(), moltype: moltype.to_string(),