arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.01156cs.DS
收藏

计算极大字符串集合的最优BWT

Computing the optimal BWT of very large string collections

Davide Cenzato, Veronica Guerrini, Zsuzsanna Lipták, Giovanna Rosone

摘要:

众所周知,在大多数实现中,字符串集合的Burrows-Wheeler-Transform(BWT)的确切形式取决于集合中字符串的输入顺序。对输入集合的字符串重新排序会影响等字母串$r$的数量,这可能是基于BWT的数据结构(如FM索引或$r$索引)的最重要参数。Bentley、Gibney和Mrsachan [ESA 2020]介绍了一种线性时间算法,用于计算输入集合的排列,该排列产生所得到的BWT的最小运行次数。在本文中,我们提出了第一个保证Burrows-Wheeler变换具有最小运行次数(optBWT)的工具,通过组合i)从字符串集合构建BWT的算法(基于SAIS的[Cenzato等人,SPIRE 2021]或BCR [Bauer等人,CPM 2011]); ii)在[Cox等人,Bioinformatics,2012];以及iii)Bentley等人的算法。我们在真实数据和模拟数据上都给出了结果,表明$r$在输入顺序方面取得的改进是显著的,并且通过计算最佳BWT产生的开销可以忽略不计,使得我们的工具在运行时间和空间使用方面与其他BWT计算工具竞争。特别是,在实际数据上,optBWT仅在$1.39\times$减速的情况下获得高达31倍的运行次数。源代码可在https://github.com/davidecenzato/optimalBWT.git上获得。

英文摘要:

It is known that the exact form of the Burrows-Wheeler-Transform (BWT) of a string collection depends, in most implementations, on the input order of the strings in the collection. Reordering strings of an input collection affects the number of equal-letter runs $r$, arguably the most important parameter of BWT-based data structures, such as the FM-index or the $r$-index. Bentley, Gibney, and Thankachan [ESA 2020] introduced a linear-time algorithm for computing the permutation of the input collection which yields the minimum number of runs of the resulting BWT. In this paper, we present the first tool that guarantees a Burrows-Wheeler-Transform with minimum number of runs (optBWT), by combining i) an algorithm that builds the BWT from a string collection (either SAIS-based [Cenzato et al., SPIRE 2021] or BCR [Bauer et al., CPM 2011]); ii) the SAP array data structure introduced in [Cox et al., Bioinformatics, 2012]; and iii) the algorithm by Bentley et al. We present results both on real-life and simulated data, showing that the improvement achieved in terms of $r$ with respect to the input order is significant and the overhead created by the computation of the optimal BWT negligible, making our tool competitive with other tools for BWT-computation in terms of running time and space usage. In particular, on real data the optBWT obtains up to 31 times fewer runs with only a $1.39\times$ slowdown. Source code is available at https://github.com/davidecenzato/optimalBWT.git.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑