Bryce Kille, Ragnar Groot Koerkamp, Drake McAdams, Alan Liu, Todd Treangen
{"title":"A near-tight lower bound on the density of forward sampling schemes","authors":"Bryce Kille, Ragnar Groot Koerkamp, Drake McAdams, Alan Liu, Todd Treangen","doi":"10.1101/2024.09.06.611668","DOIUrl":null,"url":null,"abstract":"Motivation: Sampling <em>k</em>-mers is a ubiquitous task in sequence analysis algorithms. Sampling schemes such as the often-used random minimizer scheme are particularly appealing as they guarantee that at least one <em>k</em>-mer is selected out of every <em>w</em> consecutive <em>k</em>-mers. Sampling fewer <em>k</em>-mers often leads to an increase in efficiency of downstream methods. Thus, developing schemes that have low density, i.e., have a small proportion of sampled <em>k</em>-mers, is an active area of research. After over a decade of consistent efforts in both decreasing the density of practical schemes and increasing the lower bound on the best possible density, there is still a large gap between the two.\nResults: We prove a near-tight lower bound on the density of forward sampling schemes, a class of schemes that generalizes minimizer schemes. For small <em>w</em> and <em>k</em>, we find optimal schemes and observe that our bound is tight when <em>k</em> ≡ 1 (mod <em>w</em>). For large <em>w</em> and <em>k</em>, the bound can be approximated by 1/(<em>w</em>+<em>k</em>)·⌈(<em>w</em>+<em>k</em>)/<em>w</em>⌉. Importantly, our lower bound implies that existing schemes are much closer to achieving optimal density than previously known. For example, with the default minimap2 HiFi settings <em>w</em>=19 and <em>k</em>=19, we show that the best known scheme for these parameters, the double decycling-set-based minimizer of Pellow et al., is at most 3% denser than optimal, compared to the previous gap of at most 50%. Furthermore, when <em>k</em> ≡ 1 (mod <em>w</em>) and σ →∞, we show that mod-minimizers introduced by Groot Koerkamp and Pibiri achieve optimal density matching our lower bound.","PeriodicalId":501307,"journal":{"name":"bioRxiv - Bioinformatics","volume":"53 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"bioRxiv - Bioinformatics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1101/2024.09.06.611668","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Motivation: Sampling k-mers is a ubiquitous task in sequence analysis algorithms. Sampling schemes such as the often-used random minimizer scheme are particularly appealing as they guarantee that at least one k-mer is selected out of every w consecutive k-mers. Sampling fewer k-mers often leads to an increase in efficiency of downstream methods. Thus, developing schemes that have low density, i.e., have a small proportion of sampled k-mers, is an active area of research. After over a decade of consistent efforts in both decreasing the density of practical schemes and increasing the lower bound on the best possible density, there is still a large gap between the two.
Results: We prove a near-tight lower bound on the density of forward sampling schemes, a class of schemes that generalizes minimizer schemes. For small w and k, we find optimal schemes and observe that our bound is tight when k ≡ 1 (mod w). For large w and k, the bound can be approximated by 1/(w+k)·⌈(w+k)/w⌉. Importantly, our lower bound implies that existing schemes are much closer to achieving optimal density than previously known. For example, with the default minimap2 HiFi settings w=19 and k=19, we show that the best known scheme for these parameters, the double decycling-set-based minimizer of Pellow et al., is at most 3% denser than optimal, compared to the previous gap of at most 50%. Furthermore, when k ≡ 1 (mod w) and σ →∞, we show that mod-minimizers introduced by Groot Koerkamp and Pibiri achieve optimal density matching our lower bound.