MosaicLev: modified Levenshtein distance for mobile element-aware genome comparison.

IF 2.6 Q2 MATHEMATICAL & COMPUTATIONAL BIOLOGY
Bioinformatics advances Pub Date : 2026-09-07 eCollection Date: 2026-01-01 DOI:10.1093/bioadv/vbag261
Harry Stoltz, Thomas E Kuhlman
{"title":"MosaicLev: modified Levenshtein distance for mobile element-aware genome comparison.","authors":"Harry Stoltz, Thomas E Kuhlman","doi":"10.1093/bioadv/vbag261","DOIUrl":null,"url":null,"abstract":"<p><strong>Motivation: </strong>Genomes diverge, in part due to the activity of mobile elements, including elements that excise and reinsert (cut-paste) or propagate via an RNA intermediate (copy-paste). Standard sequence comparison methods are not motif-aware, penalizing mobile element insertions based on length rather than recognizing them as single biological events, while alignment-free methods still fail to adequately describe a known mobile-element sequence as a unified change.</p><p><strong>Results: </strong>We introduce a modified Levenshtein distance ( <math><mrow><mi>mlev</mi></mrow> </math> ) that discounts specified block insertions via a tunable parameter ( <math><mrow><mi>m</mi> <mo> </mo> <mo>∈</mo> <mo> </mo> <mo>[</mo> <mn>0</mn> <mo>,</mo> <mn>1</mn> <mo>]</mo></mrow> </math> ): at <math><mrow><mi>m</mi> <mo>=</mo> <mn>0</mn></mrow> </math> it recovers ordinary Levenshtein distance and at <math><mrow><mi>m</mi> <mo>=</mo> <mn>1</mn></mrow> </math> a whole chunk acts like a single edit. On 67 Cluster G1 mycobacteriophage genomes (a viral group with MPME1 and MPME2), MPME1 targeting yielded <math><mrow><mo>∼</mo> <mn>53</mn> <mi>%</mi></mrow> </math> discount for the 31-genome MPME1-score group and <math><mrow><mo>∼</mo> <mn>9</mn> <mi>%</mi></mrow> </math> for the 11-genome MPME2-score group. MPME2 targeting reversed this pattern, with 18 phages low on both scores. For PV92, a 346-bp Yb8-containing insertion received 99.71% forward reduction at <math><mrow><mi>m</mi> <mo>=</mo> <mn>1</mn></mrow> </math> and none in reverse. Together, these results demonstrate that MosaicLev can quantify the contribution of known mobile elements to sequence differences across distinct genomic settings.</p><p><strong>Availability and implementation: </strong>Python implementation with Numba JIT compilation freely available at https://doi.org/10.5281/zenodo.18452982.</p>","PeriodicalId":72368,"journal":{"name":"Bioinformatics advances","volume":"6 1","pages":"vbag261"},"PeriodicalIF":2.6000,"publicationDate":"2026-09-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13604845/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Bioinformatics advances","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1093/bioadv/vbag261","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/1/1 0:00:00","PubModel":"eCollection","JCR":"Q2","JCRName":"MATHEMATICAL & COMPUTATIONAL BIOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

Motivation: Genomes diverge, in part due to the activity of mobile elements, including elements that excise and reinsert (cut-paste) or propagate via an RNA intermediate (copy-paste). Standard sequence comparison methods are not motif-aware, penalizing mobile element insertions based on length rather than recognizing them as single biological events, while alignment-free methods still fail to adequately describe a known mobile-element sequence as a unified change.

Results: We introduce a modified Levenshtein distance ( mlev ) that discounts specified block insertions via a tunable parameter ( m   ∈   [ 0 , 1 ] ): at m = 0 it recovers ordinary Levenshtein distance and at m = 1 a whole chunk acts like a single edit. On 67 Cluster G1 mycobacteriophage genomes (a viral group with MPME1 and MPME2), MPME1 targeting yielded ∼ 53 % discount for the 31-genome MPME1-score group and ∼ 9 % for the 11-genome MPME2-score group. MPME2 targeting reversed this pattern, with 18 phages low on both scores. For PV92, a 346-bp Yb8-containing insertion received 99.71% forward reduction at m = 1 and none in reverse. Together, these results demonstrate that MosaicLev can quantify the contribution of known mobile elements to sequence differences across distinct genomic settings.

Availability and implementation: Python implementation with Numba JIT compilation freely available at https://doi.org/10.5281/zenodo.18452982.

MosaicLev:用于移动元件感知基因组比较的改进Levenshtein距离。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
1.60
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书