» Articles » PMID: 38468275

Finding Maximal Exact Matches in Graphs

Overview
Publisher Biomed Central
Date 2024 Mar 12
PMID 38468275
Authors
Affiliations
Soon will be listed here.
Abstract

Background: We study the problem of finding maximal exact matches (MEMs) between a query string Q and a labeled graph G. MEMs are an important class of seeds, often used in seed-chain-extend type of practical alignment methods because of their strong connections to classical metrics. A principled way to speed up chaining is to limit the number of MEMs by considering only MEMs of length at least ( -MEMs). However, on arbitrary input graphs, the problem of finding MEMs cannot be solved in truly sub-quadratic time under SETH (Equi et al., TALG 2023) even on acyclic graphs.

Results: In this paper we show an -time algorithm finding all -MEMs between Q and G spanning exactly L nodes in G, where n is the total length of node labels, d is the maximum degree of a node in G, , and is the number of output MEMs. We use this algorithm to develop a -MEM finding solution on indexable Elastic Founder Graphs (Equi et al., Algorithmica 2022) running in time , where H is the maximum number of nodes in a block, and is the total number of -MEMs. Our results generalize to the analysis of multiple query strings (MEMs between G and any of the strings). Additionally, we provide some experimental results showing that the number of graph MEMs is an order of magnitude smaller than the number of string MEMs of the corresponding concatenated collection.

Conclusions: We show that seed-chain-extend type of alignment methods can be implemented on top of indexable Elastic Founder Graphs by providing an efficient way to produce the seeds between a set of queries and the graph. The code is available in https://github.com/algbio/efg-mems .

References
1.
Makinen V, Navarro G, Siren J, Valimaki N . Storage and retrieval of highly repetitive sequence collections. J Comput Biol. 2010; 17(3):281-308. DOI: 10.1089/cmb.2009.0169. View

2.
Ma J, Caceres M, Salmela L, Makinen V, Tomescu A . Chaining for accurate alignment of erroneous long reads to acyclic variation graphs. Bioinformatics. 2023; 39(8). PMC: 10423031. DOI: 10.1093/bioinformatics/btad460. View

3.
NEEDLEMAN S, Wunsch C . A general method applicable to the search for similarities in the amino acid sequence of two proteins. J Mol Biol. 1970; 48(3):443-53. DOI: 10.1016/0022-2836(70)90057-4. View

4.
Vyverman M, De Baets B, Fack V, Dawyndt P . essaMEM: finding maximal exact matches using enhanced sparse suffix arrays. Bioinformatics. 2013; 29(6):802-4. DOI: 10.1093/bioinformatics/btt042. View

5.
Li H, Feng X, Chu C . The design and construction of reference pangenome graphs with minigraph. Genome Biol. 2020; 21(1):265. PMC: 7568353. DOI: 10.1186/s13059-020-02168-z. View