Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

CUSHAW3: Sensitive and Accurate Base-Space and Color-Space Short-Read Alignment with Hybrid Seeding

Abstract

The majority of next-generation sequencing short-reads can be properly aligned by leading aligners at high speed. However, the alignment quality can still be further improved, since usually not all reads can be correctly aligned to large genomes, such as the human genome, even for simulated data. Moreover, even slight improvements in this area are important but challenging, and usually require significantly more computational endeavor. In this paper, we present CUSHAW3, an open-source parallelized, sensitive and accurate short-read aligner for both base-space and color-space sequences. In this aligner, we have investigated a hybrid seeding approach to improve alignment quality, which incorporates three different seed types, i.e. maximal exact match seeds, exact-match k-mer seeds and variable-length seeds, into the alignment pipeline. Furthermore, three techniques: weighted seed-pairing heuristic, paired-end alignment pair ranking and read mate rescuing have been conceived to facilitate accurate paired-end alignment. For base-space alignment, we have compared CUSHAW3 to Novoalign, CUSHAW2, BWA-MEM, Bowtie2 and GEM, by aligning both simulated and real reads to the human genome. The results show that CUSHAW3 consistently outperforms CUSHAW2, BWA-MEM, Bowtie2 and GEM in terms of single-end and paired-end alignment. Furthermore, our aligner has demonstrated better paired-end alignment performance than Novoalign for short-reads with high error rates. For color-space alignment, CUSHAW3 is consistently one of the best aligners compared to SHRiMP2 and BFAST. The source code of CUSHAW3 and all simulated data are available at http://cushaw3.sourceforge.net.

Introduction

The emergence and rapid progress of next-generation sequencing (NGS) technologies has driven a substantial amount of research efforts into the development of short-read alignment algorithms. To date, a variety of short-read aligners have been developed, which can be further classified into two generations in terms of functionality. The first-generation aligners are usually designed and optimized for very short reads (typically ≤100 bps). These aligners usually postulate that the short-reads have very small deviations from the genome, and thus typically only allow mismatches. Even though some aligners provide support for gaps, the maximum allowable number of gaps is also quite limited (typically one gap) for the sake of speed. Example first-generation aligners include RMAP [1], MAQ [2], BFAST [3], Bowtie [4], BWA [5], CUSHAW [6] and SOAP3 [7].

With the progress of NGS, the maximum or average read lengths are steadily increasing beyond 100 for Illumina sequencing, which is most widely used. However, these longer short-reads usually come at the expense of higher sequencing error rates. On the other hand, these reads are prone to have more true insertions or deletions (indels) to the genome. These new features make the first-generation aligners become inefficient to align such longer reads in terms of alignment quality, speed or even both, and thus motivate the development of second-generation aligners that allow for fully gapped alignments with more mismatches and indels supported.

Several second-generation aligners have been developed recently, including BWA-SW [8], GASSST [9], Bowtie2 [10], CUSHAW2 [11], GEM [12], SeqAlto [13], SOAP3-dp [14] and BWA-MEM [15]. All these aligners are designed based on the seed-and-extend paradigm. In this paradigm, a read is aligned by first identifying seeds, i.e. short ungapped/gapped alignments, on the genome and then extending the alignment to the rest of the read using dynamic programming. Constraints and filtrations are often exerted on alignment extensions to further reduce search space. Different seeding polices may be employed by different aligners. BWA-SW employs variable-length gapped seeds, and Bowtie2 extracts fixed-length ungapped seeds (inexact matches). Both GASSST and SeqAlto employ fixed-length exact-match k-mer (a k-mer is a substring of k bases) seeds, while CUSHAW2 and BWA-MEM respectively identifies variable-length maximal exact match (MEM) seeds and super MEM seeds. SOAP3-dp is an aligner based on graphics processing unit (GPU) computing and adopts a similar seeding approach to Bowtie2, while GEM adopts a filtration-based approximate string matching approach to extract relevant candidate matches by suitable pigeonhole-like rules. In addition, Novoalign (http://www.novocraft.com) is a proprietary short-read aligner for fully gapped alignments. However, its method has not been published. Although these aligners can efficiently align the majority of short-reads at high speed, they still have difficulties in correctly aligning all reads, even for simulated ones, to large genomes such as the human genome [11] [16]. Hence, it is of great significance to design new short-read aligners to further improve alignment quality.

In this article, we present CUSHAW3, an open-source sensitive and accurate short-read aligner for both base-space and color-space sequences. In our aligner, we have investigated a hybrid seeding approach to improve alignment quality, which incorporates three different seed types: MEM seeds, exact-match k-mer seeds and variable-length seeds derived from local alignments, into the alignment pipeline. Furthermore, three techniques: weighted seed pairing heuristic, paired-end (PE) alignment pair ranking and read mate rescuing, have been proposed to facilitate accurate PE alignment. It needs to be stressed that the concept of hybrid seeding has already been implied in some other implementations for short-read alignment. One example is Stampy [17], an aligner for Illumina sequencing, which first aligns reads with BWA (based on inexact-match seeds) and then processes unmapped reads with another seed-and-extend-based approach using exact-match k-mers. Another example is TMAP (https://github.com/iontorrent/TMAP), an aligner for Ion Torrent sequencing, which incorporates the alignment approaches from SSAHA (fixed-length k-mer seeds) [18], BWA, BWA-SW and BWA-MEM.

The performance of CUSHAW3 has been assessed by aligning both simulated and real short-reads to the human genome in terms of single-end (SE) and PE alignment. For base-space alignment, our aligner is further compared to Novoalign, CUSHAW2, BWA-MEM, Bowtie2 and GEM. The experimental results reveal that CUSHAW3 is consistently superior to CUSHAW2, BWA-MEM, Bowtie2 and GEM for both SE and PE alignments. Furthermore, our aligner achieves better PE alignment quality than Novoalign for short-reads with higher error rates. As for the speed, CUSHAW3 is inferior to CUSHAW2, BWA-MEM, Bowtie2 and BWA-MEM, but nearly always faster than Novoalign. As for color-space alignment, our aligner is consistently one of the best aligners in terms of alignment quality at superior speed, compared to SHRiMP2 [19] and BFAST.

Results

Evaluation on Base-space Reads

We have evaluated the performance of CUSHAW3 (v3.0.2) by aligning both simulated and real short-reads to the human genome (hg19). This performance is further compared to that of CUSHAW2 (v2.1.10), Novoalign (v3.00.04), BWA-MEM (v0.7.3a), Bowtie2 (v2.1.0) and GEM (v 1.376). All tests are conducted in a workstation with a dual hex-core Intel Xeon X5650 2.67 GHz CPUs and 96 GB RAM, running Linux (Ubuntu 12.04 LTS).

To measure alignment quality, we have used the sensitivity metric, which is calculated by dividing the number of aligned reads by the total number of reads, for both simulated and real reads. For simulated reads, as the true mapping positions are known beforehand, we have further used the recall metric, which is defined as dividing the number of correctly aligned reads by the total number of reads. For simulated reads, an alignment is deemed to be correct if the mapping position has a distance of ≤10 to the true position on the genome. Considering that GEM reports all detected alignments and BWA-MEM might produce multiple primary alignments for a read, we define that a read is deemed to be correctly aligned if any of its reported alignments is correct. To provide fair comparisons, we have configured CUSHAW3, CUSHAW2 and Bowtie2 to report a maximum of 10 alignments for each read and Novoalign to report all repetitive alignments. Detailed alignment parameters of all evaluated aligners can be obtained from Tables S1, S2, S3, S4 and S5 in File S1. In addition, all best values in the following tables have been highlighted in bold.

On simulated data.

We have simulated three Illumina-like PE datasets from the human genome (hg19) using the wgsim simulator in SAMtools v0.1.18 [20]. All datasets have the same read lengths of 100, but with different mean base error rates: 2%, 4% and 6%. Each dataset comprises one million read pairs with insert-sizes drawn from a normal distribution N(500, 50).

Firstly, we have compared the alignment quality of all evaluated aligners by considering all reported alignments (see Table 1), by setting the minimum mapping quality score (MAPQ) to 0. For the SE alignment, Novoalign yields the best sensitivity and recall for each dataset. CUSHAW3 holds equally best sensitivity for the dataset with 2% error rate, and is consistently the second best for all other datasets. With the increase of error rates, each aligner has experienced some performance drops in terms of both measures. Novoalign has the smallest sensitivity (recall) decrease by 0.02% (2.95%), whereas Bowtie2 shows the most significant sensitivity (recall) decrease by 18.10% (21.66%). CUSHAW3 gives the second smallest performance drop with a sensitivity (recall) decrease by 0.74% (3.76%). With PE information, each aligner gets the alignment quality improved over the SE alignment in terms of both measures. In terms of sensitivity, CUSHAW3, Novoalign and BWA-MEM are consistently the top three aligners for all datasets, and Bowtie2 is the worst. In terms of recall, CUSHAW3 is superior to other aligners for the dataset with 6% error rate, while Novoalign performs best for all remaining datasets. CUSHAW3 outperforms CUSHAW2, BWA-MEM, Bowtie2 and GEM for each dataset. Similar to the SE alignment, the error rates also have significant impact on the sensitivity and recall for each aligner. As the error rate grows, Novoalign gives the least significant performance drop and CUSHAW3 the second least in terms of sensitivity. However, in terms of recall, CUSHAW3 has the smallest performance decrease.

Secondly, we have further assessed all evaluated aligners by only considering the first alignment occurrence per read in the SAM file, with the minimum MAPQ set to 0. This alignment sampling does not affect the sensitivity of each aligner, but might change the recall. Hence, all aligners are only compared in terms of recall in this evaluation (see Table 1). In terms of SE alignment, Novoalign achieves the best recall for each dataset and CUSHAW3 performs second best. In terms of PE alignment, CUSHAW3 is superior to all other aligners for the dataset with 6% error rate, while BWA-MEM performs best for the remaining datasets. Bowtie2 is the worst for each case. Some readers may argue that for a read with multiple alignments, we can choose the alignment with the largest MAPQ instead of the first alignment. Actually, we can explain that for each evaluated aligner, our evaluation by choosing the first alignment occurrence per read is consistent with that by selecting the alignment with the largest MAPQ from amongst the multiple alignments. Firstly, GEM does not compute MAPQs, but stratifies all identified alignments of a read in ascending order of string distance (Hamming distance or edit distance) [12]. This suggests that GEM implicitly considers the first alignment occurrence as the best candidate in terms of the specified distance metric. Secondly, when enabling multiple alignments per read (by option “-k”), Bowtie2 assigns a pseudo MAPQ to the identified alignments of a read and then reports them in descending order of alignment score (see Bowtie2 manual and command-line help). Thirdly, CUSHAW3, CUSHAW2 and BWA-MEM rank the alignments and build a sorted list with the alignments ordered from best to worst. Both CUSHAW3 and CUSHAW2 produce the same MAPQ for the alignments (possibly with slight differences depending on the degree of soft clipping). BWA-MEM computes one MAPQ for one alignment, but ensures that the MAPQ of each alignment must not exceed that of the best alignment, i.e. the first alignment in the sorted list (refer to the source code). Finally, for a read with multiple alignments, Novoalign first ranks the multiple alignments and then determines the significance of the alignments based on the alignment score difference between the best alignment and the rest of the alignments (see the Novoalign manual). Since the source code of Novoalign is closed, we are not able to reveal more details about the mapping quality score computation and alignment reporting. However, after having examined the alignments on the simulated data, we found that the first alignment occurrences hold the largest MAPQs for each dataset.

Thirdly, we have generated the receiver operating characteristic (ROC) curves by plotting the true positive rate (TPR) against the false positive rate (FPR) in terms of MAPQ, where for each dataset all alignments are sorted in descending order of MAPQ. For any MAPQ q, we compute TPR by dividing the number of correctly aligned reads, whose MAPQs are not less than q, by the total number of reads, and FPR by dividing the number of incorrectly aligned reads, whose MAPQs are not less than q, by the number of aligned reads whose MAPQs are also not less than q. In this evaluation, we have merely taken into account the alignments whose MAPQs are greater than 0. As GEM does not compute MAPQs, it has been excluded. For Bowtie2, we have disabled the option “-k” to enable meaningful MAPQ and have used the default setting to report at most one alignment per read. CUSHAW2 and CUSHAW3 have both been configured to report at most one alignment per read for the SE and PE alignments. For Novoalign, we have used the “-r Random” option to report at most one alignment for a single read. Figure 1 shows the ROC curves for all evaluated aligners on the simulated data. We can see that Novoalign produces the most significant MAPQs for each case.

thumbnail
Figure 1. ROC curves of all evaluated aligners on the simulated data with the minimum MAQP>0.

https://doi.org/10.1371/journal.pone.0086869.g001

On real data.

Finally, we have assessed all aligners using three real PE datasets produced from the Illumina sequencing. All datasets are publicly available and named after their accession numbers in the NCBI sequence read archive (see Table 2). The performance of each aligner is evaluated from two aspects: one is to calculate the sensitivity from all reported alignments; and the other is to calculate the sensitivity after removing the alignments with low aligned base proportion per read. This is because we have observed that some alignments, produced by Novoalign, BWA-MEM, Bowtie2 and GEM, have low aligned base proportion per read (typically <50%) due to soft clipping. Intuitively, such short alignments to the genome are supposed to have higher probabilities to be false positives compared to those aligned to the reference in full lengths (or with high aligned base proportion per read). However, this is not surly the case, especially when there are large indels at the end of the read. In such cases, the correct alignments of the read may be shortened with soft-clipping. However, it is still of great significance to re-evaluate the sensitivity of each aligner by removing the alignments with <50% aligned base proportion per read, which may more truly reflect the alignment quality of an aligner on real data.

Table 3 shows the alignment quality of all evaluated aligners with or without alignment removal, where the minimum MAPQ threshold is set to 0. For each value x/y in the table, x is the sensitivity calculated from all reported alignments and y is the sensitivity after removing the alignments with <50% aligned base proportion per read. Without alignment removal, in terms of SE alignment, CUSHAW3 aligned the most reads for each dataset and GEM is the worst. In terms of PE alignment, BWA-MEM gives the best sensitivity and CUSHAW3 is the second best for all datasets. However, after alignment removal, the sensitivities of both BWA-MEM and Novoalign significantly drop for all datasets in terms of both SE and PE alignment. Bowtie2 keeps its SE sensitivity, but has a slight decrease in PE sensitivity. GEM has also experienced significant PE sensitivity drops for all datasets. Both CUSHAW2 and CUSHAW3 keep their sensitivities unchanged for each case. With alignment removal, CUSHAW3 is consistently superior to all other aligners for each dataset in terms of both SE and PE alignment. In addition, we have shown how the sensitivity (without alignment removal) varies as MAPQ changes (see Figure S1 in File S1). In this evaluation, all alignments are first sorted in descending order of MAPQs and then the sensitivity corresponding to any MAPQ q (0≤q≤255) is computed by taking into account all alignments whose MAPQs are not less than q.

Speed and memory comparison.

Besides alignment quality, the speed of each aligner has been evaluated using the aforementioned simulated and real data. We have run each aligner with 12 threads on the aforementioned workstation. For fair comparisons, GEM has counted in the SAM format conversion time (sometimes takes >50% of the overall runtime), as every other aligner reports alignments in SAM format. In addition, all runtimes are measured in wall clock time.

Table 4 shows the runtime (in minutes) of all evaluated aligners on both simulated and real data. For the simulated data, Novoalign is the slowest for nearly all cases, with an exception that CUSHAW3 performs worst in terms of PE alignment for the dataset with 4% error rate. For the SE alignment, BWA-MEM runs fastest on the datasets with 2% and 4% error rates, while Bowtie2 performs best for the dataset with 6% error rate. For the PE alignment, BWA-MEM is superior to all other aligners for each dataset, with an exception that GEM has a tie with BWA-MEM for the dataset with 4% error rate. In addition, the runtimes of both Novoalign and CUSHAW3 are more sensitive to the error rates compared to other aligners. For the real data, BWA-MEM is consistently the fastest for each case and Novoalign is the worst.

thumbnail
Table 4. Runtimes (in minutes) on simulated and real base-space reads.

https://doi.org/10.1371/journal.pone.0086869.t004

As for memory consumption, the peak resident memory of each aligner has been calculated by performing PE alignment on the dataset with 2% error rate using a single CPU thread (see Figure 2). Bowtie2 takes the least memory of 3.2 GB and Novoalign consumes the most memory of 7.9 GB. CUSHAW3 and CUSHAW2 have a memory footprint of 3.3 GB and 3.5 GB, respectively. For BWA-MEM and GEM, the peak resident memory is 5.2 GB and 4.1 GB, respectively.

thumbnail
Figure 2. Peak resident memory of all evaluated aligners.

https://doi.org/10.1371/journal.pone.0086869.g002

Evaluation on Color-space Reads

In addition to base-space alignment, we have evaluated the performance of CUSHAW3 for color-space alignment, and have further compared our aligner to SHRiMP2 (v2.2.3) and BFAST (v0.7.0a). In this evaluation, we have simulated two mate-paired datasets (read lengths are 50 and 75) from the human genome using the ART (v1.0.1) simulator [21]. Each dataset has 10% coverage of the human genome (resulting in 6,274,322 reads in the 50-bp dataset and 4,182,886 reads in the 75-bp dataset) and has an insert-size 200±20.

Both CUSHAW3 and SHRiMP2 are configured to report up to 10 alignments per read and BFAST to report all alignments with the best score for each read. Each aligner conducts mate-paired alignments and runs with 12 threads on the aforementioned workstation. Table 5 shows the alignment quality and the runtimes of the three aligners. In terms of sensitivity, CUSHAW3 outperforms both SHRiMP2 and BFAST for the 50-bp dataset, while BFAST is the best for the 75-bp dataset. When considering all reported alignments, SHRiMP2 produces the best recall and CUSHAW3 performs second best for every dataset. When only considering the first alignment occurrence per read, CUSHAW3 is superior to both SHRiMP2 and BFAST for each dataset. In terms of speed, CUSHAW3 is the fastest for each case. On average, CUSHAW3 achieves a speedup of 9.5 (and 11.9) over SHRiMP2 (and BFAST). In particular, for the 75-bp dataset, our aligner runs 13.5× and 19.9× faster than SHRiMP2 and BFAST, respectively. In addition, for each aligner, the recall gets improved as the read length increases.

thumbnail
Table 5. Alignment quality and runtimes on color-space reads.

https://doi.org/10.1371/journal.pone.0086869.t005

Evaluation on GCAT Benchmarks

Finally, we have evaluated the performance of our aligner using the public benchmarks at GCAT (http://www.bioplanet.com/gcat), which is a free collaborative platform for comparing multiple genome analysis tools across a standard set of metrics. In this evaluation, we have compared CUSHAW3 to CUSHAW2, BWA-MEM and Novoalign in terms of alignment quality and variant calling. The evaluation results for each aligner can also be obtained from our CUSHAW3 homepage (http://cushaw3.sourceforge.net).

In terms of alignment quality, two Illumina-like SE datasets as well as two Illumina-like PE datasets have been used. For the two datasets of each alignment type, one has small indels in reads (the small-indel dataset) and the other contains large indels (the large-indel dataset). All of the four datasets are simulated from the human genome and have read length 100, where there are 11,945,249 reads in each SE dataset and 11,945,250 reads in each PE dataset. To be consistent with the GCAT standard evaluations, both CUSHAW2 and CUSHAW3 are configured to report at most one alignment per read for both the SE and PE alignments. Table 6 shows the alignment results of all evaluated aligners. In terms of SE alignment, CUSHAW3 yields the best sensitivity for both datasets. The best recall is achieved by CUSHAW3, CUSHAW2 and BWA-MEM on the small-indel dataset and by BWA-MEM on the large-indel dataset. CUSHAW3 performs better than Novoalign for each case. CUSHAW2 outperforms Novoalign on the small-indel dataset in terms of both sensitivity and recall, while yielding smaller recall on the large-indel dataset. In terms of PE alignment, BWA-MEM performs best for each case and CUSHAW3 is the second best. On the small-indel dataset, CUSHAW2 outperforms Novoalign in terms of both sensitivity and recall. On the large-indel dataset, CUSHAW2 yields better sensitivity than Novoalign, while Novoalign gives better recall. In addition, the alignment accuracy of different aligners has been further compared by plotting the percentage of incorrectly aligned reads against the percentage of correctly aligned reads with respect to MAPQs. In this plotting, all alignments of each aligner are first sorted in descending order of MAPQ and then the correct and incorrect percentages are calculated. Figures S2, S3, S4 and S5 in File S1 show the alignment accuracy comparison for both SE and PE alignments. In terms of SE and PE alignment, Novoalign is superior to all other aligners and BWA-MEM is the second best with respect to the plotting. CUSHAW2 and CUSHAW3 have demonstrated nearly identical curves, and still need further improvement on the calculation of MAPQs compared to Novoalign and BWA-MEM.

In terms of variant calling, a real exome sequencing dataset has been used in this test. This dataset is comprised of Illumina 100-bp PE reads and has 30× coverage of the human exome. In this test, we have used SAMtools as the variant caller. Table 7 shows the variant calling results, where the novel single nucleotide polymorphisms (SNPs) in the dbSNP database are not taken into account. BWA-MEM yields the maximum sensitivity and Novoalign performs second best. In terms of specificity, Novoalign achieves the best performance, while CUSHAW2 and CUSHAW3 tie for the second place. As for Ti/Tv ratio, CUSHAW2 produces the maximum value of 2.323 and Novoalign gives the second best value of 2.289. CUSHAW3 and BWA-MEM are joint third. BWA-MEM identifies the most correct SNPs, while Novoalign yields the most correct indels. Compared to CUSHAW2, CUSHAW3 holds a smaller Ti/Tv ratio, but has an improved sensitivity as well as identifies more correct SNPs and indels. In addition, we have given a Venn diagram (see Figure S6 in File S1) to show the variant concordance between the evaluated aligners.

Discussion

In this article, we have presented CUSHAW3, an open-source tool for sensitive and accurate short-read alignment to large genomes, such as the human genome. This aligner is designed based on the well-known seed-and-extend heuristic and has introduced a hybrid seeding approach to improve alignment quality for both SE and PE alignments. This hybrid seeding approach works by incorporating three different seed types, namely MEM seeds, exact-match k-mer seeds and variable-length seeds derived from local alignments, into our alignment pipelines. Furthermore, we have proposed three critical bioinformatics techniques: weighted seed-paring heuristic, PE alignment pair ranking and read mate rescuing, to facilitate accurate PE alignments. CUSHAW3 accepts short-reads represented in FASTA, FASTQ, SAM/BAM [20] format, which can be uncompressed or zlib-compressed, and provides an easy-to-use and well-structured interface as well as a more detailed documentation about the installation and usage. In addition, our aligner produces PHRED [22] compliant MAPQs for all alignments and reports them in SAM format. This enables seamless integration of our aligner with established downstream analysis tools like SAMtools [20] and GATK [23].

CUSHAW3 provides support for both base-space and color-space alignments. For base-space alignment, we have assessed the performance of CUSHAW3 and other top-performing short-read aligners: Novoalign, CUSHAW2, BWA-MEM, Bowtie2 and GEM using simulated as well as real reads from the human genome. For both simulated and real data, we have employed the sensitivity measure. Additionally, the recall measure has been further used on simulated data, as the ground truth of alignments is known beforehand. On simulated data, CUSHAW3 achieves consistently better alignment quality (by considering all reported alignments) than CUSHAW2, BWA-MEM, Bowtie2 and GEM in terms of both SE and PE alignment. Compared to Novoalign, CUSHAW3 has comparable PE alignment performance for short-reads with low error rates, but performs better for short-reads with high error rates. On real data, CUSHAW3 achieves the highest SE and PE sensitivities for each dataset. As for speed, CUSHAW3 does not have any advantage over CUSHAW2, BWA-MEM, Bowtie2 and GEM, but shows to be nearly always faster than Novoalign. In terms of color-space alignment, we have evaluated and compared the performance of CUSHAW3, SHRiMP2 and BFAST using simulated mate-paired color-space reads. The results show that CUSHAW3 is consistently one of the best color-space aligners in terms of alignment quality. Moreover, on average CUSHAW3 is one order-of-magnitude faster than both SHRiMP2 and BFAST on the same hardware configurations. From our evaluations, we have observed that a considerable number of alignments, reported by Novoalign, BWA-MEM, Bowtie2 and GEM, have low aligned base proportion per read (<50%), especially for the PE alignments. Furthermore, even though both CUSHAW3 and Novoalign are shown to have higher alignment accuracy, some simulated reads still missed their correct alignments. Moreover, this situation becomes even worse as the error rate grows larger. Hence, more research efforts are still required in order to better align short-reads with high error rates. Finally, as shown in our evaluations, the hybrid seeding approach does improve accuracy, but at the expense of speed. To significantly reduce the runtime, one promising solution is the use of GPU computing, as some pioneer work (e.g. [6] [7] [14]) has shown that short-read alignment can significantly benefit from the GPU computing with respect to speed. This acceleration based on special hardware can be considered as part of our future work.

Methods

Hybrid Seeding

Our hybrid seeding approach incorporates MEM seeds, exact-match k-mer seeds, and variable-length seeds at different phases of the alignment pipeline. For a single read, the alignment pipeline generally works as follows (see Figure 3).

thumbnail
Figure 3. Program workflow of the single-end alignment using hybrid seeding.

https://doi.org/10.1371/journal.pone.0086869.g003

First, we produce the MEM seeds for both strands of the read based on Burrows-wheeler transform [24] and FM-index [25]. Secondly, from each seed we determine on the genome a potential mapping region for the read, and then perform the Smith-Waterman algorithm [26] to gain the optimal local alignment score between the read and the mapping region. All seeds are subsequently ranked in terms of optimal local alignment score, where greater scores mean higher ranks.

Thirdly, dynamic programing is employed to identify the optimal local alignment of the read to the genome from the highest-ranked seeds. If satisfying the local-alignment constraints, including minimal percentage identity (default = 90%) and aligned base proportion per read (default = 80%), the optimal local alignment will be considered as qualified. Otherwise, we will attempt to rescue the read using a semi-global alignment approach. As an optimal local alignment usually indicates the most similar region on the genome, our semi-global alignment approach takes the optimal local alignment as a variable-length seed, re-computes a new mapping region on the genome and then performs semi-global alignment between the read and the new mapping region to obtain an optimal semi-global alignment. If the optimal semi-global alignment satisfies the global-alignment constraints, including minimal percentage identity (default = 65%) and aligned base proportion per read (default = 80%), this alignment will be deemed to be qualified. This double-alignment approach enables us to capture the alignments with more continuous mismatches and longer gaps. This is because we might fail to get good enough optimal local alignments in such cases, as the positive score for a match is usually smaller than the penalty charged for mismatches and indels.

Finally, when we still fail to get any qualified alignment, this likely means that the true alignment is implied by none of the evaluated MEM seeds. In this case, we attempt to rescue the alignment by re-seeding the read using exact-match k-mer seeds. To improve speed, we search all non-overlapping k-mers of the read against the genome to identify seed matches. Subsequently, we employ the k-mer seeds to repeat the aforementioned alignment process to rescue the read. If we still fail to gain a qualified alignment, we will stop the alignment process and then report this read as unaligned.

Paired-end Mapping

In comparison with SE alignment, the long-range positional information contained in PE reads usually allow for more accurate short-read alignment, by either disambiguating alignments when one of the two ends aligns to repetitive regions or rescuing one end from its aligned mate. In addition, for aligners based on the seed-and-extend heuristic, the PE information, such as alignment orientations and insert-size of both ends, can aid to significantly reduce the number of noisy seeds prior to the time-consuming alignment extensions. This filtration can be realized through a seed-paring heuristic [11], as a seed determines the alignment orientation of a read and the mapping distance constraint on seed pairs can be inferred from the insert-size of read pairs.

For a read pair S1 and S2, our PE alignment pipeline generally works as follows (see Figure 4). First, we generate and rank the MEM seeds, following the same procedure as in SE alignment. Secondly, a weighted seed-paring heuristic is introduced to pair seeds, where only high-quality seeds, whose scores are not less than a minimal score threshold (default = 30), will be taken into account. This heuristic enumerates each high-quality seed pair of S1 and S2 to identify all qualified seed pairs that meet the alignment orientation and insert-size requirements. To distinguish all qualified seed pairs in terms of quality, we have calculated a weight for each qualified seed pair and further ranked all of them by a max-heap data structure. This quality-aware feature allows for us to visit all qualified seed pairs in the descending order of quality. Thirdly, if failed to find any qualified seed pair, we will resort to the re-seeding based on exact-match k-mers by sequentially checking both ends to see if either of them has not yet been re-seeded. If so, the k-mer seeds will be produced for that end and all new seeds will be ranked in the same way as for MEM seeds. Subsequently, we merge all high-quality k-mer seeds with the high-quality MEM seeds, and then re-rank all seeds. The seed merge is used because some significant alignments, which are not covered by MEM seeds, may be reflected by k-mer seeds, and vice versa. After getting the new list of seeds, we repeat the weighted seed-paring heuristic to gain qualified seed pairs. The seed-paring and re-seeding process will be repetitively continued until either both ends have been re-seeded or any qualified seed pair has been identified. Fourthly, we compute the real alignments of both ends from the qualified seed pairs. An alignment pair will be considered as qualified if their mapping position distance satisfies the insert-size constraint. Similar to the weighted seed-pairing approach, we have also ranked all qualified alignment pairs by means of a max-heap data structure. In this manner, we would expect better alignment pairs to come out earlier in the output. Finally, we attempt to rescue read mates from the best alignments of each end, when failed to pair reads in previous steps.

thumbnail
Figure 4. Program workflow of the paired-end alignment with hybrid seeding.

https://doi.org/10.1371/journal.pone.0086869.g004

Weighted Seed-pairing Heuristic and Alignment Pair Ranking

To guide the production of real PE alignments in a quality-aware manner, we introduce a weighted seed-paring heuristic computing a weight w for each qualified seed pair as follows.(1)where qi is the optimal local alignment score between read Si (1≤i≤2) and the mapping region derived from the seed, and m is the positive score for an alignment match. To rank all qualified seed pairs, we employ w as the key of each entry in the max-heap.

In addition to seed pairs, all qualified alignment pairs have been further ranked in terms of weight and edit distance. For an alignment pair, we calculate its weight following Equation (1) with the difference that qi is not definitely the optimal local alignment score, but might be the optimal semi-global alignment score. This is because an alignment is possibly produced from a semi-global alignment as mentioned above. Furthermore, when two qualified alignment pairs hold the same weights, we further rank them by comparing the sums of the edit distances of each alignment pair. In this case, smaller edit distance sums mean higher ranks.

Read Mate Rescuing

For unpaired reads, we have employed a read mate rescuing procedure, which attempts to rescue one read from the top hits of its aligned mate by using the paired-end long-range distance information. In general, our rescuing procedure works as follows.

First, the best alignments of the two reads are computed (if available). The read, whose best alignment has a MAPQ exceeding a minimum threshold (default = 20), will be used to rescue its mate. If an optimal alignment satisfying the aforementioned constraints has been gained for the mate, the two reads are considered as paired. Otherwise, we will continue the rescuing process using the alignments with smaller MAPQs. Secondly, if the two reads have not yet been properly paired, we will attempt to pair them from more top hits of both reads. The rescuing process will not stop until the two reads have been properly paired or having reached the maximum number (default = 100) of top seeds for each read. Finally, for unpaired reads, we will report their best alignments (if available) in a SE alignment mode.

This read mate rescuing is usually time-consuming mainly due to two factors. One is the dynamic-programing-based alignment with quadratic time complexity. The other is the maximal insert-size of a read pair, which basically determines the mapping region size of the mate on the genome. In sum, the more reads are paired by seed-pairing heuristic; the less time is taken by the read mate rescuing procedure.

Color-space Alignment

Most existing color-space aligners encode a nucleotide-based genome as a color sequence and then identify potential short-read alignment hits in color space. However, different approaches may be used to produce the final base-space alignments. For a color-space read, one approach is to identify a final color-space alignment and then convert the color sequence to nucleotides under the guidance of the alignment using dynamic programming [5]. An alternative is to directly perform color-aware dynamic-programming-based alignment by simultaneously aligning all four possible translations [3] [19].

In our aligner, we also convert a nucleotide-based genome to a color sequence and perform short-read alignment in color-space basically following the same workflow as the base-space alignment (mentioned above). For a color-space read, after obtaining a qualified color-space alignment, we must convert the color sequence into a nucleotide sequence. This conversion is accomplished by adopting the dynamic programming approach proposed by Li and Durbin [5]. Subsequently, the translated nucleotide sequence will be re-aligned to the nucleotide-based genome using either local or semi-global alignment depending on how its parent alignment has been produced.

Supporting Information

File S1.

Supplementary Tables and Figures.

https://doi.org/10.1371/journal.pone.0086869.s001

(PDF)

Acknowledgments

We thank the editor and the three reviewers for their helpful and constructive comments which helped to improve the manuscript.

Author Contributions

Conceived and designed the experiments: YL BS BP. Performed the experiments: YL BP. Analyzed the data: YL BS BP. Contributed reagents/materials/analysis tools: YL BP. Wrote the paper: YL.

References

  1. 1. Smith AD, Xuan Z, Zhang MQ (2008) Using quality scores and longer reads improves accuracy of Solexa read mapping. BMC Bioinformatics 9: 128.
  2. 2. Li H, Ruan J, Durbin R (2008) Mapping short DNA sequencing reads and calling variants using mapping quality scores. Genome Res. 18: 1851–1858.
  3. 3. Homer N, Merriman B, Nelson SF (2009) BFAST: an alignment tool for large scale genome resequencing. Plos One 4: e7767.
  4. 4. Langmead B, Trapnell C, Pop M, Salzberg SL (2009) Ultrafast and memory-efficient alignment of short DNA sequences to the human genome. Genome Biol. 10: R25.
  5. 5. Li H, Durbin R (2009) Fast and accurate short read alignment with Burrows–Wheeler transform. Bioinformatics 25: 1755–1760.
  6. 6. Liu Y, Schmidt B, Maskell DL (2012) CUSHAW: a CUDA compatible short read aligner to large genomes based on the Burrows-Wheeler transform. Bioinformatics 28: 1830–1837.
  7. 7. Liu CM, Wong T, Wu E, Luo R, Yiu SM, et al. (2012) SOAP3: ultra-fast GPU-based parallel alignment tool for short reads. Bioinformatics 28: 878–879.
  8. 8. Li H, Durbin R (2010) Fast and accurate long-read alignment with Burrows–Wheeler transform. Bioinformatics 26: 589–595.
  9. 9. Rizk G, Lavenier D (2010) GASSST: global alignment short sequence search tool. Bioinformatics 26: 2534–2540.
  10. 10. Langmead B, Salzberg S (2012) Fast gapped-read alignment with Bowtie 2. Nature Methods 9: 357–359.
  11. 11. Liu Y, Schmidt B (2012) Long read alignment based on maximal exact match seeds. Bioinformatics, 28, i318–i324.
  12. 12. Marco-Sola S, Sammeth M, Guigó R, Ribeca P (2012) The GEM mapper: fast, accurate and versatile alignment by filtration. Nature Methods 9: 1885–1888.
  13. 13. Mu JC, Jiang H, Kiani A, Mohiyuddin M, Bani Asadi N, et al. (2012) Fast and accurate read alignment for resequencing. Bioinformatics 28: 2366–2373.
  14. 14. Luo R, Wong T, Zhu J, Liu CM, Zhu X, et al. (2013) SOAP3-dp: fast, accurate and sensitive GPU-based short-read aligner. PLOS One 8: e65632.
  15. 15. Li H (2013) Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. arXiv: 1303.3997 [q-bio.GN].
  16. 16. Li H, Homer N (2010) A survey of sequence alignment algorithms for next-generation sequencing. Brief Bioinform. 11: 473–483.
  17. 17. Lunter G, Goodson M (2011) Stampy: a statistical algorithm for sensitive and fast mapping of Illumina sequence reads. Genome Res. 21: 936–939.
  18. 18. Ning Z, Cox AJ, Mullikin JC (2001) SSAHA: a fast search method for large DNA databases. Genome Res. 11: 1725–1729.
  19. 19. David M, Dzamba M, Lister D, Ilie L, Brudno M (2011) SHRiMP2: sensitive yet practical short read mapping. Bioinformatics 27: 1011–1012.
  20. 20. Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, et al. (2009) The sequence alignment/map format and SAMtools. Bioinformatics 25: 2078–2079.
  21. 21. Huang W, Li L, Myers JR, Marth GT (2012) ART: a next-generation sequencing read simulator. Bioinformatics 28: 593–594.
  22. 22. Ewing B, Green P (1998) Base-calling of automated sequencer traces using phred. II. Error probabilities. Genome Res 8: 186–194.
  23. 23. McKenna A, Hanna M, Banks E, Sivachenko A, Cibulskis K, et al. (2010) The Genome Analysis Toolkit: a MapReduce framework for analyzing next generation DNA sequencing data. Genome Res 20: 1297–1303.
  24. 24. Burrows M, Wheeler DJ (1994) A block sorting lossless data compression algorithm. Technical Report 124, Digital Equipment Corporation, Palo Alto, CA.
  25. 25. Ferragina P, Manzini G (2005) Indexing compressed text. Journal of the ACM 52: 4.
  26. 26. Smith TF, Waterman MS (1981) Identification of common molecular subsequences. J. Mol. Biol. 147: 195–197.