Search engine for discovering works of Art, research articles, and books related to Art and Culture
ShareThis
Javascript must be enabled to continue!

The mod-minimizer: a simple and efficient sampling algorithm for long k -mers

View through CrossRef
Abstract Motivation Given a string S , a minimizer scheme is an algorithm defined by a triple ( k, w , ????) that samples a subset of k -mers ( k -long substrings) from a string S . Specifically, it samples the minimal k -mer according to the order ???? from each window of w consecutive k -mers in S . Because consecutive windows can sample the same k -mer, the set of the sampled k -mers is typically much smaller than S . More generally, we consider substring sampling algorithms that respect a window guarantee : at least one k -mer must be sampled from every window of w consecutive k -mers. As a sampled k -mer is uniquely identified by its absolute position in S , we can define the density of a sampling algorithm as the fraction of distinct sampled positions. Good methods have low density which, by respecting the window guarantee, is lower bounded by 1 /w . It is however difficult to design a sequence-agnostic algorithm with provably optimal density. In practice, the order ???? is usually implemented using a pseudo-random hash function to obtain the so-called random minimizer. This scheme is simple to implement, very fast to compute even in streaming fashion, and easy to analyze. However, its density is almost a factor of 2 away from the lower bound for large windows. Methods In this work we introduce mod-sampling , a two-step sampling algorithm to obtain new minimizer schemes. Given a (small) parameter t , the mod-sampling algorithm finds the position i of the minimal t -mer in a window. It then samples the k -mer at position i mod w . The lr-minimizer uses t = k − w and the mod-minimizer uses t ≡ k (mod w ). Results These new schemes have provably lower density than random minimizers and other schemes when k is large compared to w , while being as fast to compute. Importantly, the mod-minimizer achieves optimal density when k → ∞. Although the mod-minimizer is not the first method to achieve optimal density for large k , its proof of optimality is simpler than previous work. We provide pseudocode for a number of other methods and compare to them. In practice, the mod-minimizer has considerably lower density than the random minimizer and other state-of-the-art methods, like closed syncmers and miniception, when k > w . We plugged the mod-minimizer into SSHash, a k -mer dictionary based on minimizers. For default parameters ( w, k ) = (11, 21), space usage decreases by 15% when indexing the whole human genome (GRCh38), while maintaining its fast query time.
Title: The mod-minimizer: a simple and efficient sampling algorithm for long k -mers
Description:
Abstract Motivation Given a string S , a minimizer scheme is an algorithm defined by a triple ( k, w , ????) that samples a subset of k -mers ( k -long substrings) from a string S .
Specifically, it samples the minimal k -mer according to the order ???? from each window of w consecutive k -mers in S .
Because consecutive windows can sample the same k -mer, the set of the sampled k -mers is typically much smaller than S .
More generally, we consider substring sampling algorithms that respect a window guarantee : at least one k -mer must be sampled from every window of w consecutive k -mers.
As a sampled k -mer is uniquely identified by its absolute position in S , we can define the density of a sampling algorithm as the fraction of distinct sampled positions.
Good methods have low density which, by respecting the window guarantee, is lower bounded by 1 /w .
It is however difficult to design a sequence-agnostic algorithm with provably optimal density.
In practice, the order ???? is usually implemented using a pseudo-random hash function to obtain the so-called random minimizer.
This scheme is simple to implement, very fast to compute even in streaming fashion, and easy to analyze.
However, its density is almost a factor of 2 away from the lower bound for large windows.
Methods In this work we introduce mod-sampling , a two-step sampling algorithm to obtain new minimizer schemes.
Given a (small) parameter t , the mod-sampling algorithm finds the position i of the minimal t -mer in a window.
It then samples the k -mer at position i mod w .
The lr-minimizer uses t = k − w and the mod-minimizer uses t ≡ k (mod w ).
Results These new schemes have provably lower density than random minimizers and other schemes when k is large compared to w , while being as fast to compute.
Importantly, the mod-minimizer achieves optimal density when k → ∞.
Although the mod-minimizer is not the first method to achieve optimal density for large k , its proof of optimality is simpler than previous work.
We provide pseudocode for a number of other methods and compare to them.
In practice, the mod-minimizer has considerably lower density than the random minimizer and other state-of-the-art methods, like closed syncmers and miniception, when k > w .
We plugged the mod-minimizer into SSHash, a k -mer dictionary based on minimizers.
For default parameters ( w, k ) = (11, 21), space usage decreases by 15% when indexing the whole human genome (GRCh38), while maintaining its fast query time.

Related Results

Revealing the hidden language of DNA
Revealing the hidden language of DNA
(English) Genomics has revolutionized in recent years due to the rapid advancements in high-throughput sequencing technologies, leading to an explosion of genomic data. This has op...
The open-closed mod-minimizer algorithm
The open-closed mod-minimizer algorithm
Abstract Sampling algorithms that deterministically select a subset of k -mers are an important building bloc...
Co-infections of MERS-CoV with other respiratory viruses in Saudi Arabia
Co-infections of MERS-CoV with other respiratory viruses in Saudi Arabia
Background: The Middle East Respiratory Syndrome (MERS) is a viral respiratory disease caused by a member of the coronaviruses called Middle East Respiratory Syndrome Coronavirus (...
Weighted minimizer sampling improves long read mapping
Weighted minimizer sampling improves long read mapping
Abstract Motivation In this era of exponential data growth, minimizer sampling has become a standard algor...
10-minimizers: a promising class of constant-space minimizers
10-minimizers: a promising class of constant-space minimizers
Abstract Minimizers are sampling schemes which are ubiquitous in almost any high-throughput sequencing analysis. Assuming a fixed alphabet of siz...
A SENTIMENT ANALYSIS OF MERS-CoV OUTBREAK THROUGH TWITTER SOCIAL MEDIA MONITORING
A SENTIMENT ANALYSIS OF MERS-CoV OUTBREAK THROUGH TWITTER SOCIAL MEDIA MONITORING
Background: The latest outbreak of Middle East respiratory syndrome coronavirus (MERS-CoV) in South Korea in 2015 has drawn attention from across the world. How MERS impacts the ge...
Generating minimum-density minimizers
Generating minimum-density minimizers
Abstract Minimizers are sampling schemes which are ubiquitous in almost any high-throughput sequencing analysis. Assuming a fixed alphabet of siz...
Minimizer-space de Bruijn graphs
Minimizer-space de Bruijn graphs
Abstract DNA sequencing data continues to progress towards longer reads with increasingly lower sequencing error rates. We focus on the problem o...

Back to Top