diff --git a/src/map/include/computeMap.hpp b/src/map/include/computeMap.hpp index e676bec5..95b64c8b 100644 --- a/src/map/include/computeMap.hpp +++ b/src/map/include/computeMap.hpp @@ -1142,7 +1142,7 @@ namespace skch std::unordered_map hash_to_freq; if (param.stage1_topANI_filter) { - double maxJaccard = refSketch->globalJaccardNumerator / static_cast(Q.sketchSize); + double maxJaccard = refSketch->hgNumerator / static_cast(Q.sketchSize); double cutoff_j = Stat::md2j(1 - param.percentageIdentity + param.ANIDiff, param.kmerSize); int minIntersectionSize = std::max( static_cast(cutoff_j * Q.sketchSize), @@ -1443,7 +1443,7 @@ namespace skch if (param.stage1_topANI_filter) { // Use the global Jaccard numerator here - double jaccardSimilarity = refSketch->globalJaccardNumerator / Q.sketchSize; + double jaccardSimilarity = refSketch->hgNumerator / Q.sketchSize; double mash_dist = Stat::j2md(jaccardSimilarity, param.kmerSize); double cutoff_ani = std::max(0.0, (1 - mash_dist) - param.ANIDiff); double cutoff_j = Stat::md2j(1 - cutoff_ani, param.kmerSize);