{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,5]],"date-time":"2026-09-05T11:12:00Z","timestamp":1788606720926,"version":"build-2803163510"},"reference-count":45,"publisher":"Oxford University Press (OUP)","issue":"9","license":[{"start":{"date-parts":[[2026,7,27]],"date-time":"2026-07-27T00:00:00Z","timestamp":1785110400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Spanish Ministerio de Ciencia, Innovaci\u00f3n y Universidades y de la Agencia","award":["CNS2025-166442"],"award-info":[{"award-number":["CNS2025-166442"]}]},{"name":"Spanish Ministerio de Ciencia, Innovaci\u00f3n y Universidades y de la Agencia","award":["MICIU\/AEI\/10.13039\/501100011033"],"award-info":[{"award-number":["MICIU\/AEI\/10.13039\/501100011033"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2026,8,31]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:sec>\n                    <jats:title>Motivation<\/jats:title>\n                    <jats:p>Sequence-to-graph alignment is a central problem in bioinformatics, with applications in multiple sequence alignment (MSA) and pangenome analysis, among others. However, current algorithms for optimal affine-gap alignment impose high memory and computational requirements, limiting their scalability to aligning long sequences to complex graphs. Practical solutions partially address this problem using heuristic strategies that ultimately trade off optimality for speed.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>This work presents Theseus, a novel, fast, and optimal affine-gap sequence-to-graph alignment algorithm. Theseus leverages similarities between genomic sequences to accelerate the alignment computation and reduces the overall memory requirements without compromising optimality. To that end, Theseus processes only a subset of the dynamic programming cells, using a sparse-data strategy that enables efficient sequence-to-graph alignment. Moreover, our algorithm supports optimal affine-gap alignment on arbitrary directed graphs, including those with cycles. We evaluate Theseus on two key problems: MSA and pangenome read mapping. For MSA, we compare it against SPOA, abPOA, and POASTA. Theseus is 1.6\u00d7 to 17.6\u00d7 faster than POASTA, and 7.3\u00d7 faster, on average, than SPOA, both optimal aligners. Compared with abPOA, Theseus ensures optimality and scales to the largest problems. For pangenome read mapping, we benchmark Theseus against the alignment stage of the mapping tool vg map, along with the alignment kernels of SPOA, abPOA, and POASTA. Theseus outperforms the other methods, showing a 1.9\u00d7 to 16.9\u00d7 speedup on short reads. Moreover, Theseus is 1.5\u00d7 to 36.3\u00d7 faster than vg when aligning against synthetic cyclic graphs.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Availability and implementation<\/jats:title>\n                    <jats:p>Theseus code and documentation are publicly available at https:\/\/github.com\/albertjimenezbl\/theseus-lib.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.1093\/bioinformatics\/btag561","type":"journal-article","created":{"date-parts":[[2026,7,25]],"date-time":"2026-07-25T11:38:52Z","timestamp":1784979532000},"source":"Crossref","is-referenced-by-count":1,"title":["Theseus: fast and optimal affine-gap sequence-to-graph alignment"],"prefix":"10.1093","volume":"42","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-3958-9664","authenticated-orcid":false,"given":"Albert","family":"Jim\u00e9nez-Blanco","sequence":"first","affiliation":[{"name":"Department of Computer Science, Universitat Polit\u00e8cnica de Catalunya , Barcelona, 08034,","place":["Spain"]},{"name":"Computer Sciences Department, Barcelona Supercomputing Center , Barcelona, 08034,","place":["Spain"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1891-4359","authenticated-orcid":false,"given":"Lori\u00e9n","family":"L\u00f3pez-Villellas","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Systems Engineering, University of Zaragoza , Zaragoza, 50018,","place":["Spain"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6697-0331","authenticated-orcid":false,"given":"Juan Carlos","family":"Moure","sequence":"additional","affiliation":[{"name":"Department of Computer Architecture and Operative Systems, Universitat Aut\u00f2noma de Barcelona , Barcelona, 08193,","place":["Spain"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9848-8758","authenticated-orcid":false,"given":"Miquel","family":"Moreto","sequence":"additional","affiliation":[{"name":"Computer Sciences Department, Barcelona Supercomputing Center , Barcelona, 08034,","place":["Spain"]},{"name":"Department of Computer Architecture, Universitat Polit\u00e8cnica de Catalunya , Barcelona, 08034,","place":["Spain"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7951-3914","authenticated-orcid":false,"given":"Santiago","family":"Marco-Sola","sequence":"additional","affiliation":[{"name":"Department of Computer Science, Universitat Polit\u00e8cnica de Catalunya , Barcelona, 08034,","place":["Spain"]},{"name":"Computer Sciences Department, Barcelona Supercomputing Center , Barcelona, 08034,","place":["Spain"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"286","published-online":{"date-parts":[[2026,7,27]]},"reference":[{"key":"2026090506320631300_btag561-B1","doi-asserted-by":"crossref","first-page":"68","DOI":"10.1038\/nature15393","article-title":"A global reference for human genetic variation","volume":"526","author":"1000 Genomes Project Consortium","year":"2015","journal-title":"Nature"},{"key":"2026090506320631300_btag561-B2","doi-asserted-by":"crossref","first-page":"btad701","DOI":"10.1093\/bioinformatics\/btad701","article-title":"WFA-GPU: gap-affine pairwise read-alignment using GPUs","volume":"39","author":"Aguado-Puig","year":"2023","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B3","doi-asserted-by":"crossref","first-page":"btae631","DOI":"10.1093\/bioinformatics\/btae631","article-title":"BIMSA: accelerating long sequence alignment using processing-in-memory","volume":"40","author":"Alonso-Mar\u00edn","year":"2024","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B4","doi-asserted-by":"crossref","first-page":"297","DOI":"10.1016\/S0022-5193(89)80196-1","article-title":"Gap costs for multiple sequence alignment","volume":"138","author":"Altschul","year":"1989","journal-title":"J Theor Biol"},{"key":"2026090506320631300_btag561-B5","doi-asserted-by":"crossref","first-page":"4794","DOI":"10.1038\/s41467-020-18564-9","article-title":"A diploid assembly-based benchmark for variants in the major histocompatibility complex","volume":"11","author":"Chin","year":"2020","journal-title":"Nat Commun"},{"key":"2026090506320631300_btag561-B6","doi-asserted-by":"crossref","first-page":"987","DOI":"10.1038\/nbt.2023","article-title":"How to apply de bruijn graphs to genome assembly","volume":"29","author":"Compeau","year":"2011","journal-title":"Nat Biotechnol"},{"key":"2026090506320631300_btag561-B7","first-page":"118","article-title":"Computational pan-genomics: status, promises and challenges","volume":"19","author":"Computational Pan-Genomics Consortium","year":"2018","journal-title":"Brief Bioinform"},{"key":"2026090506320631300_btag561-B8","doi-asserted-by":"crossref","first-page":"3712","DOI":"10.1093\/bioinformatics\/btaa265","article-title":"Vargas: heuristic-free alignment for assessing linear and graph read aligners","volume":"36","author":"Darby","year":"2020","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B9","first-page":"1466","author":"Doblas","year":"2023"},{"key":"2026090506320631300_btag561-B10","doi-asserted-by":"crossref","first-page":"btaf112","DOI":"10.1093\/bioinformatics\/btaf112","article-title":"Quicked: high-performance exact sequence alignment based on bound-and-align","volume":"41","author":"Doblas","year":"2025","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B11","first-page":"1656","author":"Doblas","year":"2025"},{"key":"2026090506320631300_btag561-B12","doi-asserted-by":"crossref","first-page":"1792","DOI":"10.1093\/nar\/gkh340","article-title":"Muscle: multiple sequence alignment with high accuracy and high throughput","volume":"32","author":"Edgar","year":"2004","journal-title":"Nucleic Acids Res"},{"key":"2026090506320631300_btag561-B13","doi-asserted-by":"crossref","first-page":"139","DOI":"10.1146\/annurev-genom-120219-080406","article-title":"Pangenome graphs","volume":"21","author":"Eizenga","year":"2020","journal-title":"Annu Rev Genomics Hum Genet"},{"key":"2026090506320631300_btag561-B14","doi-asserted-by":"crossref","first-page":"2209","DOI":"10.1093\/bioinformatics\/btaa963","article-title":"Abpoa: an simd-based c library for fast partial order alignment using adaptive band","volume":"37","author":"Gao","year":"2021","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B15","doi-asserted-by":"crossref","first-page":"875","DOI":"10.1038\/nbt.4227","article-title":"Variation graph toolkit improves read mapping by representing genetic variation in the reference","volume":"36","author":"Garrison","year":"2018","journal-title":"Nat Biotechnol"},{"key":"2026090506320631300_btag561-B16","doi-asserted-by":"crossref","first-page":"333","DOI":"10.1038\/nrg.2016.49","article-title":"Coming of age: ten years of next-generation sequencing technologies","volume":"17","author":"Goodwin","year":"2016","journal-title":"Nat Rev Genet"},{"key":"2026090506320631300_btag561-B17","doi-asserted-by":"crossref","first-page":"705","DOI":"10.1016\/0022-2836(82)90398-9","article-title":"An improved algorithm for matching biological sequences","volume":"162","author":"Gotoh","year":"1982","journal-title":"J Mol Biol"},{"key":"2026090506320631300_btag561-B18","doi-asserted-by":"crossref","first-page":"159","DOI":"10.1016\/S0065-227X(99)80007-0","article-title":"Multiple sequence alignment: algorithms and applications","volume":"36","author":"Gotoh","year":"1999","journal-title":"Adv Biophys"},{"key":"2026090506320631300_btag561-B19","doi-asserted-by":"crossref","first-page":"39","DOI":"10.1016\/j.future.2023.07.008","article-title":"WFA-FPGA: an efficient accelerator of the wavefront algorithm for short and long read genomics alignment","volume":"149","author":"Haghi","year":"2023","journal-title":"Future Generation Computer Systems"},{"key":"2026090506320631300_btag561-B20","doi-asserted-by":"crossref","first-page":"100","DOI":"10.1109\/TSSC.1968.300136","article-title":"A formal basis for the heuristic determination of minimum cost paths","volume":"4","author":"Hart","year":"1968","journal-title":"IEEE Trans Syst Sci Cyber"},{"key":"2026090506320631300_btag561-B21","first-page":"104","author":"Ivanov","year":"2020"},{"key":"2026090506320631300_btag561-B22","doi-asserted-by":"crossref","first-page":"640","DOI":"10.1089\/cmb.2019.0066","article-title":"On the complexity of sequence-to-graph alignment","volume":"27","author":"Jain","year":"2020","journal-title":"J Comput Biol"},{"key":"2026090506320631300_btag561-B23","doi-asserted-by":"crossref","first-page":"53","DOI":"10.1089\/cmb.2017.0264","article-title":"Sequence alignment on directed graphs","volume":"26","author":"Kavya","year":"2019","journal-title":"J Comput Biol"},{"key":"2026090506320631300_btag561-B24","doi-asserted-by":"crossref","first-page":"452","DOI":"10.1093\/bioinformatics\/18.3.452","article-title":"Multiple sequence alignment using partial order graphs","volume":"18","author":"Lee","year":"2002","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B25","doi-asserted-by":"crossref","first-page":"265","DOI":"10.1186\/s13059-020-02168-z","article-title":"The design and construction of reference pangenome graphs with minigraph","volume":"21","author":"Li","year":"2020","journal-title":"Genome Biol"},{"key":"2026090506320631300_btag561-B26","doi-asserted-by":"crossref","first-page":"312","DOI":"10.1038\/s41586-023-05896-x","article-title":"A draft human pangenome reference","volume":"617","author":"Liao","year":"2023","journal-title":"Nature"},{"key":"2026090506320631300_btag561-B27","first-page":"1","author":"L\u00f3pez-Villellas","year":"2023"},{"key":"2026090506320631300_btag561-B28","doi-asserted-by":"crossref","first-page":"313","DOI":"10.1016\/j.future.2024.03.050","article-title":"Genarchbench: a genomics benchmark suite for arm hpc processors","volume":"157","author":"L\u00f3pez-Villellas","year":"2024","journal-title":"Future Generation Computer Systems"},{"key":"2026090506320631300_btag561-B29","doi-asserted-by":"publisher","DOI":"10.1093\/bioinformatics\/btag183","volume-title":"Bioinformatics","author":"L\u00f3pez-Villellas","year":"2026"},{"key":"2026090506320631300_btag561-B30","doi-asserted-by":"crossref","first-page":"11","DOI":"10.1002\/0471250953.bi1113s50","article-title":"Efficient alignment of illumina-like high-throughput sequencing reads with the genomic multi-tool (GEM) mapper","volume":"50","author":"Marco-Sola","year":"2015","journal-title":"Curr Protoc Bioinformatics"},{"key":"2026090506320631300_btag561-B31","doi-asserted-by":"crossref","first-page":"1185","DOI":"10.1038\/nmeth.2221","article-title":"The gem mapper: fast, accurate and versatile alignment by filtration","volume":"9","author":"Marco-Sola","year":"2012","journal-title":"Nat Methods"},{"key":"2026090506320631300_btag561-B32","doi-asserted-by":"crossref","first-page":"456","DOI":"10.1093\/bioinformatics\/btaa777","article-title":"Fast gap-affine pairwise alignment using the wavefront algorithm","volume":"37","author":"Marco-Sola","year":"2021","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B33","doi-asserted-by":"crossref","first-page":"btad074","DOI":"10.1093\/bioinformatics\/btad074","article-title":"Optimal gap-affine alignment in o (s) space","volume":"39","author":"Marco-Sola","year":"2023","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B34","doi-asserted-by":"crossref","first-page":"81","DOI":"10.1146\/annurev-genom-120120-081921","article-title":"The need for a human pangenome reference sequence","volume":"22","author":"Miga","year":"2021","journal-title":"Annu Rev Genomics Hum Genet"},{"key":"2026090506320631300_btag561-B35","doi-asserted-by":"crossref","first-page":"315","DOI":"10.1016\/j.ygeno.2010.03.001","article-title":"Assembly algorithms for next-generation sequencing data","volume":"95","author":"Miller","year":"2010","journal-title":"Genomics"},{"key":"2026090506320631300_btag561-B36","doi-asserted-by":"crossref","first-page":"395","DOI":"10.1145\/316542.316550","article-title":"A fast bit-vector algorithm for approximate string matching based on dynamic programming","volume":"46","author":"Myers","year":"1999","journal-title":"J ACM"},{"key":"2026090506320631300_btag561-B37","doi-asserted-by":"crossref","first-page":"455","DOI":"10.1016\/S0304-3975(99)00333-3","article-title":"Improved approximate pattern matching on hypertext","volume":"237","author":"Navarro","year":"2000","journal-title":"Theor Comput Sci"},{"key":"2026090506320631300_btag561-B38","doi-asserted-by":"crossref","first-page":"443","DOI":"10.1016\/0022-2836(70)90057-4","article-title":"A general method applicable to the search for similarities in the amino acid sequence of two proteins","volume":"48","author":"Needleman","year":"1970","journal-title":"J Mol Biol"},{"key":"2026090506320631300_btag561-B39","doi-asserted-by":"crossref","first-page":"253","DOI":"10.1186\/s13059-020-02157-2","article-title":"Graphaligner: rapid and versatile sequence-to-graph alignment","volume":"21","author":"Rautiainen","year":"2020","journal-title":"Genome Biol"},{"key":"2026090506320631300_btag561-B40","doi-asserted-by":"crossref","first-page":"3599","DOI":"10.1093\/bioinformatics\/btz162","article-title":"Bit-parallel sequence-to-graph alignment","volume":"35","author":"Rautiainen","year":"2019","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B41","doi-asserted-by":"crossref","first-page":"472","DOI":"10.1016\/j.mib.2008.09.006","article-title":"Comparative genomics: the bacterial pan-genome","volume":"11","author":"Tettelin","year":"2008","journal-title":"Curr Opin Microbiol"},{"key":"2026090506320631300_btag561-B42","doi-asserted-by":"crossref","DOI":"10.1101\/2024.05.23.595521","article-title":"Fast and exact gap-affine partial order alignment with POASTA","author":"Van Dijk","year":"2024","journal-title":"Bioinformatics"},{"key":"2026090506320631300_btag561-B43","doi-asserted-by":"crossref","first-page":"737","DOI":"10.1101\/gr.214270.116","article-title":"Fast and accurate de novo genome assembly from long uncorrected reads","volume":"27","author":"Vaser","year":"2017","journal-title":"Genome Res"},{"key":"2026090506320631300_btag561-B44","doi-asserted-by":"crossref","first-page":"215","DOI":"10.1038\/s42003-019-0474-7","article-title":"The poplar pangenome provides insights into the evolutionary history of the genus","volume":"2","author":"Zhang","year":"2019","journal-title":"Commun Biol"},{"key":"2026090506320631300_btag561-B45","doi-asserted-by":"crossref","first-page":"160025","DOI":"10.1038\/sdata.2016.25","article-title":"Extensive sequencing of seven human genomes to characterize benchmark reference materials","volume":"3","author":"Zook","year":"2016","journal-title":"Sci Data"}],"container-title":["Bioinformatics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/academic.oup.com\/bioinformatics\/advance-article-pdf\/doi\/10.1093\/bioinformatics\/btag561\/70162651\/btag561.pdf","content-type":"application\/pdf","content-version":"am","intended-application":"syndication"},{"URL":"https:\/\/academic.oup.com\/bioinformatics\/article-pdf\/42\/9\/btag561\/70162651\/btag561.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/academic.oup.com\/bioinformatics\/article-pdf\/42\/9\/btag561\/70162651\/btag561.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,5]],"date-time":"2026-09-05T10:32:16Z","timestamp":1788604336000},"score":1,"resource":{"primary":{"URL":"https:\/\/academic.oup.com\/bioinformatics\/article\/doi\/10.1093\/bioinformatics\/btag561\/8742314"}},"subtitle":[],"editor":[{"given":"Jianlin","family":"Cheng","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"editor"}]}],"short-title":[],"issued":{"date-parts":[[2026,7,27]]},"references-count":45,"journal-issue":{"issue":"9","published-print":{"date-parts":[[2026,8,31]]}},"URL":"https:\/\/doi.org\/10.1093\/bioinformatics\/btag561","relation":{},"ISSN":["1367-4803","1367-4811"],"issn-type":[{"value":"1367-4803","type":"print"},{"value":"1367-4811","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2026,9]]},"published":{"date-parts":[[2026,7,27]]},"article-number":"btag561"}}