From 9ac463754f5234455dbf4d42fd45c18b369aeed0 Mon Sep 17 00:00:00 2001 From: "Erik Garrison (aider)" Date: Sat, 19 Oct 2024 18:55:39 -0500 Subject: [PATCH] fix: Replace deprecated `globalJaccardNumerator` with `hgNumerator` in `computeMap.hpp` --- src/map/include/computeMap.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);