Mahmudur Rahman Hera, David Koslicki, Conrado Martinez
{"title":"MaxGeomHash bridges MinHash and FracMinHash for scalable similarity estimation using sub-linear <i>k</i>-mer sketching.","authors":"Mahmudur Rahman Hera, David Koslicki, Conrado Martinez","doi":"10.1101/gr.282217.126","DOIUrl":null,"url":null,"abstract":"<p><p>With the surge in sequencing data generated from biological studies, designing scalable computational techniques has become essential. One effective strategy to enable large-scale computation is to extract <i>k</i>-mers from long sequences, and summarize large <i>k</i>-mer sets into random samples (a.k.a. sketches). These sketches enable rapid estimation of similarity metrics such as Jaccard or cosine, and thus facilitate scalable computations. Popular sketching tools in bioinformatics range from the MinHash algorithm to generate fixed-size sketches; to FracMinHash algorithm to retain a fraction of all <i>k</i>-mers. Here, we introduce a novel sketching algorithm, MaxGeomHash, which for a specified integer parameter <i>b</i> ≥ 1, will produce a random sample of size <i>b lg(n/b) + O(b)</i> without knowing the total number of <i>k</i>-mers <i>n</i> beforehand. Notably, this is the first permutation-invariant and parallelizable sketching algorithm to date that can produce sublinear sketches. We also introduce a variant, α-MaxGeomHash, that produces sketches of size <i>Θ(n<sup>α</sup>)</i> for a given <i>α; ∈</i> (0, 1). We study the algorithm's properties, analyze generated sample sizes, verify theoretical results empirically, provide a fast implementation, and investigate similarity estimate quality. With intermediate-sized samples between constant (MinHash) and linear (FracMinHash), MaxGeomHash balances efficiency (smaller samples need less processing) with accuracy (larger samples yield better estimates). On genomic datasets, we demonstrate that MaxGeomHash enables pairwise similarity estimation at a large scale, and MaxGeomHash sketches enable similarity estimation more accurately than MinHash, and more efficiently than FracMinHash.</p>","PeriodicalId":12678,"journal":{"name":"Genome research","volume":" ","pages":""},"PeriodicalIF":6.3000,"publicationDate":"2026-11-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Genome research","FirstCategoryId":"99","ListUrlMain":"https://doi.org/10.1101/gr.282217.126","RegionNum":2,"RegionCategory":"生物学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"BIOCHEMISTRY & MOLECULAR BIOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
With the surge in sequencing data generated from biological studies, designing scalable computational techniques has become essential. One effective strategy to enable large-scale computation is to extract k-mers from long sequences, and summarize large k-mer sets into random samples (a.k.a. sketches). These sketches enable rapid estimation of similarity metrics such as Jaccard or cosine, and thus facilitate scalable computations. Popular sketching tools in bioinformatics range from the MinHash algorithm to generate fixed-size sketches; to FracMinHash algorithm to retain a fraction of all k-mers. Here, we introduce a novel sketching algorithm, MaxGeomHash, which for a specified integer parameter b ≥ 1, will produce a random sample of size b lg(n/b) + O(b) without knowing the total number of k-mers n beforehand. Notably, this is the first permutation-invariant and parallelizable sketching algorithm to date that can produce sublinear sketches. We also introduce a variant, α-MaxGeomHash, that produces sketches of size Θ(nα) for a given α; ∈ (0, 1). We study the algorithm's properties, analyze generated sample sizes, verify theoretical results empirically, provide a fast implementation, and investigate similarity estimate quality. With intermediate-sized samples between constant (MinHash) and linear (FracMinHash), MaxGeomHash balances efficiency (smaller samples need less processing) with accuracy (larger samples yield better estimates). On genomic datasets, we demonstrate that MaxGeomHash enables pairwise similarity estimation at a large scale, and MaxGeomHash sketches enable similarity estimation more accurately than MinHash, and more efficiently than FracMinHash.
期刊介绍:
Launched in 1995, Genome Research is an international, continuously published, peer-reviewed journal that focuses on research that provides novel insights into the genome biology of all organisms, including advances in genomic medicine.
Among the topics considered by the journal are genome structure and function, comparative genomics, molecular evolution, genome-scale quantitative and population genetics, proteomics, epigenomics, and systems biology. The journal also features exciting gene discoveries and reports of cutting-edge computational biology and high-throughput methodologies.
New data in these areas are published as research papers, or methods and resource reports that provide novel information on technologies or tools that will be of interest to a broad readership. Complete data sets are presented electronically on the journal''s web site where appropriate. The journal also provides Reviews, Perspectives, and Insight/Outlook articles, which present commentary on the latest advances published both here and elsewhere, placing such progress in its broader biological context.