Sequence Alignment Through the Looking Glass

Sequence Alignment Through the Looking Glass

bioRxiv preprint doi: https://doi.org/10.1101/256859; this version posted January 30, 2018. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY 4.0 International license. Sequence Alignment Through the Looking Glass Raja Appuswamy Jacques Fellay Nimisha Chaturvedi Data Science Department School of Life Sciences School of Life Sciences EURECOM EPFL EPFL France Switzerland Switzerland [email protected] jacques.fellay@epfl.ch nimisha.chaturvedi@epfl.ch Index Terms—sequence alignment, computational genomics, First, it answers the following question–Do state-of-the-art microarchitecture aligners use modern processors efficiently? Microarchitectural Abstract—Rapid advances in sequencing technologies are pro- analysis in other applications areas, like relational databases ducing genomic data on an unprecedented scale. The first, and and data analytics platforms, showed that these applications often one of the most time consuming, step of genomic data do not utilize modern processors efficiently [1], [6]. Such analysis is sequence alignment, where sequenced reads must be aligned to a reference genome. Several years of research on analyses spurred research efforts to improve performance by alignment algorithms has led to the development of several state- improving processor utilization by redesigning data structures, of-the-art sequence aligners that can map tens of thousands of or energy efficiency by using low-power processors that can reads per second. match application requirements. In this work, we perform a In this work, we answer the question “How do sequence similar analysis for sequence alignment. aligners utilize modern processors?” We examine four state-of- the-art aligners running on an Intel processor and identify that Second, modern processors are complex pieces of hardware all aligners leave the processor substantially underutilized. We that use a variety of techniques to execute instructions faster. perform an in-depth microarchitectural analysis to explore the However, in order for such improvements to translate into interaction between aligner software and processor hardware. tangible performance benefit, software must be optimized to We identify bottlenecks that lead to processor underutilization avoid bottlenecks. Microarchitectural analysis reveals these and discuss the implications of our analysis on next-generation sequence aligner design. bottlenecks by exposing harmful interaction between applica- tion software and processor hardware and helps in answering I. INTRODUCTION the following question–Will current software automatically benefit from microarchitectural improvements in the next- The past few years have witnessed dramatic improvement generation of hardware? in both cost and throughput of DNA sequencing technologies. Third, the past few years have witnessed an rise in adoption Today, it is possible to sequence a single human genome of heterogeneous computing, as accelerators like General- at 30-fold coverage for as little as $1,000. With sequencing Purpose Graphics Processing Units (GPGPU) and Intel Xeon becoming more affordable, the amount of genomic data gen- Phi are being increasingly adopted in several data-intensive erated has been increasing at an alarming rate far outpacing application domains. Given that sequence alignment is a Moore’s law [18]. This data deluge has the potential to pave complex, multi-stage process, several researchers have built way for the emerging field of personalized medicine and assist aligners that execute some, or all stages of sequence alignment, in detecting when genomic mutations predispose humans to on these accelerators [11], [16], [17], [19]. However, there has certain diseases like cancer, autism, and aging. been no systematic analysis that explores the interaction be- However, to unlock the potential of genomic data, one tween alignment stages and CPU microarchitecture to clearly needs scalable, efficient data analytics platforms and tools. The identify which stages are more suited to the GPGPU than the first and one of the most time-consuming steps in analyzing CPU. such data is sequence alignment–the task of determining the In this work, we present, to our knowledge, the first location in the reference genome that corresponds to each microarchitectural analysis of four state-of-the-art sequence sequenced read. In the last decade, researchers have designed aligners. We show that despite a decade of research and over 70 read mapping tools [8], each differing from another optimized implementations, modern aligners substantially un- with respect to accuracy, sensitivity, specificity, and speed. derutilize processor resources as the processor is stalled in Today, state-of-the-art read aligners can map tens of thousands more than 50% of execution cycles without doing useful of reads per second to the reference genome. work. We provide an in-depth breakdown of stall cycles to While all prior research focuses on improving performance, identify hardware components in the processor pipeline and by reducing mapping time of individual reads, or scalability, by algorithmic components in sequence alignment software that mapping more reads per second, there is no study that analyzes contribute to these stalls. We discuss the implications of our sequence aligners at the microarchitectural level. Such an analysis on the design of next-generation of sequence aligners analysis is important for several reasons. and suggest directions for further research. bioRxiv preprint doi: https://doi.org/10.1101/256859; this version posted January 30, 2018. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY 4.0 International license. The rest of this paper is organized as follows. In Section II, we provide a brief overview of alignment techniques and BRANCH PREDICTOR INSTRUCTION processor microarchitecture. In Section III, we describe the CACHE hardware and software setup we use for this analysis. We INSTRUCTION DECODER present a global microarchitectural analysis of aligners in FRONT END (FE) Section IV and a stage-by-stage analysis of one the aligners in DRAM L3 CACHE SCHEDULER Section V. Finally, we present the implications of our analysis Port 0 Port 1 Port 2 Port 3 Port 4 Port 5 in Section VI and conclude in Section VII. ALU ALU ALU Load Load Store Divide Mul JMP II. BACKGROUND L1 DATA CACHE L2 DATA CACHE In this section, we will provide a brief overview of sequence BACK END (BE) alignment techniques and modern processor microarchitecture PROCESSOR CORE to set the context for this work. We refer the reader to prior Fig. 1: Simplified microarchitectural depiction of modern work for an in-depth algorithmic survey of sequence alignment processors. algorithms and experimental analysis of aligners [5], [8]–[10]. A. Sequence alignment representation called Burrows-Wheeler Transform [4] to index Modern Next-Generation Sequencing (NGS) technologies the reference genome and enable fast exact string matching. As produce millions of short string sequences, referred to as reads, the FM-Index itself does not allow approximate string match- with each sequence corresponding a portion of the DNA. The ing, BWT-based aligners use an algorithmic technique called first step in the analysis of this NGS data, referred to as backtracking that tries to insert errors at various positions in sequence alignment, is to determine the location in the genome the read as it is matched while traversing the FM-Index. As that corresponds to each of these short reads. Thus, sequence the cost of backtracking increases exponentially, BWT-based alignment is essentially a string matching problem where given aligners also use heuristics to prune the search space. a string G (reference genome), and a set of substrings R BWT-based alignment, introduced by Bowtie [12] and (reads), the origin of each read r R must be identified in BWA [14], has been the most popular technique for aligning G. However, due to sequencing errors or due to differences short reads. The low error rate of NGS technologies and a between the reference genome and the sequenced organism, low divergence between reference and sequenced organisms a read might not exactly match its corresponding location allowed aligners like trie-based Bowtie and BWA to traverse in the reference genome. Thus, an aligner has to perform the search space for very short reads 10 to 100 times faster than approximate string matching that is tolerant to mismatches, hash-based aligners. However, with read lengths increasing to insertions, and deletions. 100-150 base pairs, backtracking emerged as the bottleneck Since a read could potentially align at each one of the 3 especially if one needs to tolerate a larger number of errors. billion locations in the reference, brute force search of each Thus, newer variants of these aligners, like Bowtie2 [2] and possible alignment is infeasible even for a single read. Thus, BWA-MEM [13] have also reverted back to using the seed- all modern aligners build an index over the reference and and-extend technique. use the index to quickly narrow down the search space of potential locations. Aligners can be broadly classified into two B. Modern processor microarchitecture types based on the indexing technique used, namely, seed-and- In order to understand

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us