Genome Research · 2023 · 14 citations · 21 references
Life SciencesBioinformaticsBiologyGenomicsInformation RetrievalSequence AnalysisSequence AlignmentSequence Similarity SearchFull-text RetrievalIndex StructuresIndexing Data StructuresOverlap DetectionPattern Matching AlgorithmsSequence Database IndexingSequence SimilaritySequence Space Exploration
Tools that classify sequencing reads against a database of reference sequences require efficient index data-structures. The r -index is a compressed full-text index that answers substring presence/absence, count, and locate queries in space proportional to the amount of distinct sequence in the database: <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"><m:mrow><m:mi mathvariant="script">O</m:mi></m:mrow><m:mo>(</m:mo><m:mi>r</m:mi><m:mo>)</m:mo></m:math> space, where r is the number of Burrows–Wheeler runs. To date, the r -index has lacked the ability to quickly classify matches according to which reference sequences (or sequence groupings, i.e., taxa) a match overlaps. We present new algorithms and methods for solving this problem. Specifically, given a collection D of d documents, <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"><m:mrow><m:mi mathvariant="script">D</m:mi></m:mrow><m:mo>=</m:mo><m:mo fence="false">{</m:mo><m:mrow><m:msub><m:mi>T</m:mi><m:mn>1</m:mn></m:msub></m:mrow><m:mo>,</m:mo><m:mrow><m:msub><m:mi>T</m:mi><m:mn>2</m:mn></m:msub></m:mrow><m:mo>,</m:mo><m:mo>…</m:mo><m:mo>,</m:mo><m:mrow><m:msub><m:mi>T</m:mi><m:mi>d</m:mi></m:msub></m:mrow><m:mo fence="false">}</m:mo></m:math> over an alphabet of size σ, we extend the r -index with <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"><m:mrow><m:mi mathvariant="script">O</m:mi></m:mrow><m:mo>(</m:mo><m:mi>r</m:mi><m:mi>d</m:mi><m:mo>)</m:mo></m:math> additional words to support document listing queries for a pattern <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"><m:mi>S</m:mi><m:mo>[</m:mo><m:mn>1..</m:mn><m:mi>m</m:mi><m:mo>]</m:mo></m:math> that occurs in <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"><m:mi>n</m:mi><m:mi>d</m:mi><m:mi>o</m:mi><m:mi>c</m:mi></m:math> documents in D in <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"><m:mrow><m:mi mathvariant="script">O</m:mi></m:mrow><m:mo>(</m:mo><m:mi>m</m:mi><m:mi>log</m:mi><m:mo></m:mo><m:mrow><m:msub><m:mi>log</m:mi><m:mi>w</m:mi></m:msub></m:mrow><m:mo>(</m:mo><m:mi>σ</m:mi><m:mo>+</m:mo><m:mi>n</m:mi><m:mrow><m:mrow><m:mo>/</m:mo></m:mrow><m:mrow><m:mtext/></m:mrow></m:mrow><m:mi>r</m:mi><m:mo>)</m:mo><m:mo>+</m:mo><m:mi>n</m:mi><m:mi>d</m:mi><m:mi>o</m:mi><m:mi>c</m:mi><m:mo>)</m:mo></m:math> time and <m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll"><m:mrow><m:mi mathvariant="script">O</m:mi></m:mrow><m:mo>(</m:mo><m:mi>r</m:mi><m:mi>d</m:mi><m:mo>)</m:mo></m:math> space, where w is the machine word size. Applied in a bacterial mock community experiment, our method is up to three times faster than a comparable method that uses the standard r -index locate queries. We show that our method classifies both simulated and real nanopore reads at the strain level with higher accuracy compared with other approaches. Finally, we present strategies for compacting this structure in applications in which read lengths or match lengths can be bounded.
21
Minimap2: pairwise alignment for nucleotide sequences
Heng Li · Bioinformatics · 2018 · 16.8K citations · Full text
Improved metagenomic analysis with Kraken 2
Derrick E. Wood, Jennifer Lu, Ben Langmead · Genome biology · 2019 · 7.1K citations · Full text
A Block-sorting Lossless Data Compression Algorithm
Michael T. Burrows, D. J. Wheeler · 1994 · 2.4K citations
Suffix Arrays: A New Method for On-Line String Searches
Udi Manber, Gene Myers · SIAM Journal on Computing · 1993 · 2K citations