Algorithms for Molecular Biology (Jul 2023)

Eulertigs: minimum plain text representation of k-mer sets without repetitions in linear time

  • Sebastian Schmidt,
  • Jarno N. Alanko

DOI
https://doi.org/10.1186/s13015-023-00227-1
Journal volume & issue
Vol. 18, no. 1
pp. 1 – 21

Abstract

Read online

Abstract A fundamental operation in computational genomics is to reduce the input sequences to their constituent k-mers. For maximum performance of downstream applications it is important to store the k-mers in small space, while keeping the representation easy and efficient to use (i.e. without k-mer repetitions and in plain text). Recently, heuristics were presented to compute a near-minimum such representation. We present an algorithm to compute a minimum representation in optimal (linear) time and use it to evaluate the existing heuristics. Our algorithm first constructs the de Bruijn graph in linear time and then uses a Eulerian-cycle-based algorithm to compute the minimum representation, in time linear in the size of the output.

Keywords