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

通过位置Burrows-Wheeler变换教授Burrows-Wheeler变换

Teaching the Burrows-Wheeler Transform via the Positional Burrows-Wheeler Transform

Travis Gagie, Giovanni Manzini, Marinella Sciortino

摘要:

Burrows-Wheeler变换(BWT)经常在算法生物信息学的本科课程中教授,因为它是FM索引的基础,因此也是Bowtie和BWA等重要工具的基础。它的崇拜者认为BWT是一件美丽的事情,但是,尽管近三十年来有数千页关于它的文章,对于第一次看到它的本科生来说,它仍然经常像魔法一样。一些坚持下来的人后来被展示了位置BWT(PBWT),它在BWT之后20年出版。在本文中,我们认为,PBWT应该教{ \em之前}的BWT。我们首先使用PBWT与从右到左的基数排序的密切关系来解释如何将其用作一组字符串上的{ \em位置搜索}的快速且空间有效的索引(即,给定一个模式和一个位置,快速列出包含该模式的字符串)。然后我们观察到{ \em prefix search}(列出所有以该模式开头的字符串)是位置搜索的一个简单特例,对单个字符串的后缀进行前缀搜索等价于对该字符串进行{ \em substring search}(列出该模式在字符串中出现的所有起始位置)。简单地存储字符串后缀的PBWT是空间-{ \em低效}的,但是,即使在相当小的示例中,其大多数列几乎相同。不难证明,如果我们存储字符串循环移位的PBWT,而不是它的后缀,那么所有列都完全相同-并且等于字符串的BWT。因此,我们可以通过PBWT来教导BWT和FM索引。

英文摘要:

The Burrows-Wheeler Transform (BWT) is often taught in undergraduate courses on algorithmic bioinformatics, because it underlies the FM-index and thus important tools such as Bowtie and BWA. Its admirers consider the BWT a thing of beauty but, despite thousands of pages being written about it over nearly thirty years, to undergraduates seeing it for the first time it still often seems like magic. Some who persevere are later shown the Positional BWT (PBWT), which was published twenty years after the BWT. In this paper we argue that the PBWT should be taught {\em before} the BWT. We first use the PBWT's close relation to a right-to-left radix sort to explain how to use it as a fast and space-efficient index for {\em positional search} on a set of strings (that is, given a pattern and a position, quickly list the strings containing that pattern starting in that position). We then observe that {\em prefix search} (listing all the strings that start with the pattern) is an easy special case of positional search, and that prefix search on the suffixes of a single string is equivalent to {\em substring search} in that string (listing all the starting positions of occurrences of the pattern in the string). Storing naïvely a PBWT of the suffixes of a string is space-{\em inefficient} but, in even reasonably small examples, most of its columns are nearly the same. It is not difficult to show that if we store a PBWT of the cyclic shifts of the string, instead of its suffixes, then all the columns are exactly the same -- and equal to the BWT of the string. Thus we can teach the BWT and the FM-index via the PBWT.

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

↑