Aligning distant sequences to graphs using long seed sketches

  1. Gunnar Rätsch1,2,3,4
  1. 1Department of Computer Science, ETH Zurich, Zurich 8092, Switzerland;
  2. 2University Hospital Zurich, Biomedical Informatics Research, Zurich 8091, Switzerland;
  3. 3Swiss Institute of Bioinformatics, Lausanne 1015, Switzerland;
  4. 4ETH AI Center, 8092 Zurich, Switzerland
  1. 5 These authors contributed equally to this work.

  • Corresponding authors: andre.kahles{at}inf.ethz.ch, raetsch{at}inf.ethz.ch
  • Abstract

    Sequence-to-graph alignment is crucial for applications such as variant genotyping, read error correction, and genome assembly. We propose a novel seeding approach that relies on long inexact matches rather than short exact matches, and show that it yields a better time-accuracy trade-off in settings with up to a Formula mutation rate. We use sketches of a subset of graph nodes, which are more robust to indels, and store them in a k-nearest neighbor index to avoid the curse of dimensionality. Our approach contrasts with existing methods and highlights the important role that sketching into vector space can play in bioinformatics applications. We show that our method scales to graphs with 1 billion nodes and has quasi-logarithmic query time for queries with an edit distance of Formula. For such queries, longer sketch-based seeds yield a Formula increase in recall compared with exact seeds. Our approach can be incorporated into other aligners, providing a novel direction for sequence-to-graph alignment.

    Footnotes

    • Received January 5, 2023.
    • Accepted April 16, 2023.

    This article is distributed exclusively by Cold Spring Harbor Laboratory Press for the first six months after the full-issue publication date (see https://genome.cshlp.org/site/misc/terms.xhtml). After six months, it is available under a Creative Commons License (Attribution-NonCommercial 4.0 International), as described at http://creativecommons.org/licenses/by-nc/4.0/.

    | Table of Contents

    Preprint Server