Skip to main content

RandAL: a randomized approach to aligning DNA sequences to reference genomes



The alignment of short reads generated by next-generation sequencers to genomes is an important problem in many biomedical and bioinformatics applications. Although many proposed methods work very well on narrow ranges of read lengths, they tend to suffer in performance and alignment quality for reads outside of these ranges.


We introduce RandAL, a novel method that aligns DNA sequences to reference genomes. Our approach utilizes two FM indices to facilitate efficient bidirectional searching, a pruning heuristic to speed up the computing of edit distances, and most importantly, a randomized strategy that enables effective estimation of key parameters. Extensive comparisons showed that RandAL outperformed popular aligners in most instances and was unique in its consistent and accurate performance over a wide range of read lengths and error rates. The software package is publicly available at


RandAL promises to align effectively and accurately short reads that come from a variety of technologies with different read lengths and rates of sequencing error.


The alignment of reads to genomes is an important problem in many biomedical applications that relied on next-generation sequencing technologies. This problem is motivated by the fact that genomes for many species have been sequenced. And since one expects genomes within the same species differ little, such "referenced" genomes can facilitate the assembly of new genomes of other individuals within the same species from short reads. To address this problem, researchers have proposed many approaches together with software packages. Nevertheless, sequencing technologies have advanced rapidly, rendering many of these approaches ineffective or inefficient or both. One aspect that continually changes is the read length. Advanced technologies generally produce longer reads (with better accuracy). On the other hand, technologies that produce shorter reads can be less expensive and are therefore attractive in terms of cost. Thus, it is desirable to have algorithms and tools that perform well across different read lengths ranging from 35 to several hundreds basepairs.

Nevertheless, many existing algorithms struggle to perform consistently across a wide range of read lengths. Methods such as Bowtie [1] and Burrows-Wheeler Alignment (BWA) [2] tend to perform better with shorter reads. Bowtie uses the Burrows-Wheeler Transform (BWT) and FM index to build a permanent index of the reference genome. It then applies backtracking algorithm to find alignments. BWA also utilizes the BWT, but unlike Bowtie, can handle gaps and mismatches in the reads. More advanced versions of these methods include Bowtie2 [3] and BWASW [4] which are designed to work with longer reads. Bowtie2 can align reads with gaps and works better than Bowtie at longer reads. BWA-SW exploits the BWT and several heuristics to speed up the local alignment of reads.

Many techniques utilize data structures and techniques such as the BWT, FM index, suffix arrays, suffix trees/tries, hash tables or q-grams [511], aiming to speed up substring querrying. Additional heuristics are also used to enhance efficiency. Bowtie2 [3] and CUSHAW2 [12], for example, use seeds to quickly identify true candidates for alignment. GASSST [9] uses a filtering technique to reduce noisy seeds. Implementations of some of these approaches, e.g. Bowtie2, CUSHAW2, take advantages of parallelism or special-purpose architectures. The use of heuristics can improve performance several folds, but might lead to over-tuning parameters to a particular set of inputs, e.g. read lengths, species, or base error rates.

We introduce RandAL, an aligner based on a novel algorithm that performs consistently well over a wide range of read lengths, from 35 to several hundreds base pairs. We employ two FM indices for efficient bidirectional (exact) substring matching. To deal with inexact matching (i.e. allowing gaps), first, we find common substrings between reads and the reference genome. Then, these common substrings are extended to complete alignments based on a bounded threshold on the edit distance. We use a special pruning mechanism to shorten vastly the running time of computing edit distances in a vast majority of cases. The use of randomization in aligning reads to genomes increases the probability of finding seeds quickly and enables us determine methodologically important parameters to speed up the entire alignment process. Preliminary results show that our algorithm performed consistently well on a wide range of read lengths across several bacterial and eukaryotic genomes. The alignment quality of our method was better or generally as good as that of all compared methods.


Given a reference genome S and a set of reads R = {r1, …, r n }, the main problem is to align each r i to S. The reference genome S and the reads are DNA sequences, or strings over the alphabet of 4 characters, Σ = {A, G, C, T}. The alignment of a read r to S is essentially finding a substring of S that matches r the most. At the moment, we assume that these reads are not paired-end reads. The set of reads R are substrings of another genome R that is different from, but belongs to the same species as S. By aligning reads in R to S, we implicitly reconstruct the genome R.

Our strategy for read alignment is based on these ideas:

1 Detection of identical substring matches between r and S is based on common substrings of r and S. As we know r and S differ only slightly, we expect long common substrings exist.

2 A special data structure called the FM index is used to facilitate memory-efficient, time-optimal exact string matching. This data structure facilitates efficient detection of long common substrings between r and S.

3 Randomization is employed to find common substrings between r and S efficiently and methodologically. Randomization empowers us to methodologically determine important parameters that are used in critical steps of the algorithm. This translates into consistent performance in terms of time and accuracy across different species.

4 To account for insertion/deletion polymorphisms, we utilize the edit distance to provide an accurate measure for read alignment. Additionally, we employ a pruning heuristic to shorten the computation of edit distance, without com promising quality of alignment.

These ideas will be discussed in greater detail in the following sections.

Indexing the reference genome

Naive string matching takes quadratic time and therefore is too costly. Researchers have used data structures such as suffix tree, suffix array, and FM index to speed up string matching significantly. The FM index [13] in particular is desirable because it allows exact string matching to be done optimally in O(m) time, where m is the length of the query (i.e. the read), and is very space efficient. The FM index of the genome is a substring index that takes advantage of properties of the Burrows-Wheeler transform to search incrementally all suffices of a read in the reference genome. This allows linear time (in read length) searching for exact substring matches. By design, the search direction is in reverse (backward) order with respect to the sequence.

To facilitate bidirectional string matching (to be discussed next), we employ two FM indices. A conventional FM index that traces substring matches backward is denoted as Ɓ. To facilitate searching in the forward dimension, we created an FM index for the reverse of the reference genome, S. Searching using this index, denoted as Ƒ, is equivalent to search in the forward direction in S. The pair of indices ( Ƒ , Ɓ ) helps us identify long identical stretches of DNA in the reference genome S and each read r i .

Finding common substrings between reads and genomes

Given a read r and a specific position p in r, Algorithm 1 outlines the steps in finding longest common substrings of r and the reference genome S, with respect to p; Figure 1 illustrates the conceptual goal of this algorithm. Longest common substrings (with respect to p) are constructed by concatenating maximal matches between substrings of S and those of r, which begin and end at p. Searching for matches between substrings of S and substrings of r is facilitated by the backward and forward FM indices Ɓ and Ƒ. To save time and reduce false positives, we only consider common substrings with lengths at least W.

Figure 1
figure 1

Illustration of Algorithm 1: finding common substring. ri…p−1 and r p…j may match several substrings of the genome S, but fews of these (e.g. b2 and f2) form contiguous substrings.

The choice of W is important. If W is too small, M is large, and we will consider many common substrings between the read and the genome to construct alignments between the read and the genome. The more common substrings we consider, the more likely we can find the correct position of the read in the genome to align; but we also more likely make mistakes of aligning the read to an incorrect position. In other words, with smaller W, we might get more true positives (correct alignments) and more false positives (incorrect alignments) at the same time. On the other hand, if W is too large, we might not be able to find any common substrings and consequently unable to align the read to the genome. Therefore, inappropriate choices of W results in bad performance.

Algorithm 1 CommonSubstrings(read r, position p)

1: Let B be substrings of reference genome S, which match exactly & maximally to ri...p-1.

2: Let F be substrings of reference genome S, which match exactly & maximally to r p...j .

3: M :=

4: for each b B do

5:    for each f F do

6:        Let s := b f be a concatenation of b and f.

7:        if s is a contiguous block in S and |s| ≥ W then

8:            M := M s

9: return M

Our strategy for determining good values of W is based on randomization. As we shall see soon, the value p given to Algorithm 1 would be a random index of the read. To calculate W, first suppose that the correct substring of the reference genome S to align to the read r is r'. Let d be the edit distance between r and r'. These d mismatches divide r into d + 1 blocks. Each block (except the last one) includes the closest mismatch to it. Let the sizes of the blocks be m1, m2, … … …, md+1. We have |r|=m= i = 1 d + 1 m i .

The random choice of p implies that the common substring found by Algorithm 1 would be a random block, which is selected with probability p i = m i m . This implies that the expected size of block i is E [ S i ] = m i p i = m i 2 m . Thus, the expected size of a random block, i.e. the expected length of the common substring, is E [ X ] = i = 1 d + 1 E [ X i ] = i = 1 d + 1 m i 2 m .

The Cauche-Schwarz inequality tells us that

i = 1 d + 1 1 d + 1 m i m 2 i = 1 d + 1 ( 1 d + 1 ) 2 i = 1 d + 1 ( m i m ) 2

After simplifying, these imply that E [ S ] m d + 1 . In other words, we have established that:

Lemma: The expected length of the common substring between a read and the reference genome found by Algorithm 1 is at least m d + 1 .

Although we do not know what d, the distance between r and its aligned substring r', is, it can be estimated by the rates of single nucleotide polymorphism (SNP) of the given genome and given rate of sequencing error. Let b be the rate of each nucleotide being mutated or sequenced erroneously, which we may assume to be distributed by a binomial distribution with mean µ = mb and variance σ2 = mb(1 - b), where m is the read length.

Although we do not know exactly what d is, its upper bound t might be estimated by µ + , for some constant c. With 100,000 reads, we found that c = 4 produces good performance with high true positives and low false positives.

In summary, the two critical parameters of our method t and W are methodologically derived as follows:

  • The upper bound of the distance between a read and its aligned string, t= m b + 4 m b ( 1 - b ) .

  • The lower bound of the expected length of common substrings, W~ m t m d + 1 E [ S ] .

W appears in Algorithm 1, and t appears in Algorithm 2, which is the next step after finding common substrings between reads and the reference genome.

Algorithm 2 AlignRead(read r)

1: p := 1

2: m := |r|

3: for i from 1 to A do

4:    C :=

5:    M := CommonSubstrings(r, p)

6:    for each s M , which is a substring of Sdo

7:        Let r i…j be the substring of r that matches s exactly.

8:        Let s L be the (i − 1)-substring of S, preceding s

9:        Let sR be the (m − j)-substring of S, following s

10:        d := edit-dist(r1…i−1, s L ) + edit-dist(rj+1…m, s R )

11:        if d ≤ t then

12:            C := C (s L s s R )

13:    if C has at least one sequences then

14:        Return "fail to align", if C has more than 2 sequences.

15:        Otherwise, align read r to each sequence of C. STOP.

16:    p := random(1,|r|)

17: return "fail to align"

Extending common substrings to align reads to referenced genomes

Using long exact common substrings as seeds to align reads to genomes is similar to [3, 12]. Our approach promises to be efficient because instead of exhaustively traversing indices of a read to find optimal common substrings, we find common substrings with respect to random index p of the read.

In Algorithm 2, we iterate at most A times to find long common substrings between S and each read r. In each iteration, given a random position p, we invoke Algorithm 1 to find the longest common substrings (M) of S that match to a substring of r with respect to p. As illustrated in Figure 2, each string s M corresponds exactly to a substring r i…j of r. This exact match between r i…j and s, naturally, pairs up r1…i−1 (a prefix of r) to s L , the corresponding substring of S preceding s, and rj+1…m(a suffix of r) to s R , the corresponding substring of S following s. If the total edit distances of these two pairs are less than the previously calculated upper-bound t, we align r to the corresponding substring of S.

Figure 2
figure 2

Illustration of Algorithm 2: extending common substring to alignment. Alignment of a read r to the reference genome S by extending a common substring of r and S (found in Algorithm 1). There are generally many substrings of S that match identically to the substring r i…j of r.

Note that in the first iteration, the position p is 1 and not a random index of r. The reason for this is that we would like the method of finding long common substrings (Algorithm 1) to be symmetrical in the sense that b and f could "wrap around" r. In other words, when p = 1, b is a suffix of r and f is a prefix of r. In this case, the concatenation of b f is not a contiguous substring, but rather two contiguous strings separated by a big gap. This conceptualization of "wrapping around" the read, or thinking of it as a circular instead of linear string, turns out to be quite effective in practice. In many cases, p = 1 leads to very long common substrings that lead to correct alignments of reads.

If we cannot align r to any substring of S after A attempts, then r is unaligned to S, the reference genome. So, it is important to choose A appropriately. If A is too small, there will be many unaligned reads. If A is too large, the algorithm is slow. To select an appropriate value of A, let us again assume that the read and its correct alignment to the genome differ in d places (again d ≤ t), consequently diving the reads into d + 1 blocks. We want to select a value for A so that the longest block (longest common substring) can be sampled with high certainty. The probability that the longest block is selected (i.e. if a random index p lands inside it) is m * m , where m is the length of the longest block. On the other hand, the Pigeonhole Principle dictates that m * m d + 1 (Otherwise, the total lengths of d + 1 blocks would be less than m.) This means, d+1 m m * , which is the expected number of iterations to sample p to select the longest block.

Thus, setting A = t + 1 ≥ d + 1, the longest common substring between a read and the genome is sampled expectedly after A iterations. Further, if A = c … (t + 1), then the probability of landing in the longest block is exponentially increased as a function of c. Trading for speed, c = 1 seems to work fine in practice, because even if Algorithm 1 does not return the longest common substring, it is often possible to extend it to find the correct alignment for the read. But longest common substrings minimizes the chance of running into repeats in the genome; i.e. common substrings upon which extensions will lead to incorrect alignments.

Fast heuristic for computing edit distances

Computing edit distances consumes much time of the alignment algorithm (Algorithm 2). In steps 10-11 of Algorithm 2, we compute the edit distance between a read and a substring of the genome and discard it if the distance is greater than t. As each read often match with few substrings of the genome, we expect that such edit distances often exceed t. Examining lines 10-11 of Algorithm 2, we see that actually we do not need to compute the exact value of d(x, y), the edit distance of x and y, as long as we can answer correctly the query d(x, y) ≤ t.

We claim that the edit distance of x and y, d(x, y) ≤ t if and only if Bound(x, y, t) ≤ t, where Bound is defined in Algorithm 3. To see this, observe that

  • If d(x, y) ≤ t, then Bound(x, y, t) returns d(x, y).

  • If d(x, y) > t, then Bound(x, y, t) returns either d(x, y) or t + 1. The only difference between Bound and the conventional edit distance lies in line 6 of Algorithm 3. Analyzing line 5, we see that once d i,j > t for 1 ≤ j ≤ m (line 6), then d m,m > t.

If d(x, y) > t, Bound(x, y, t) might not compute the edit distance correctly. Nevertheless, d(x, y) ≤ t if and only if Bound(x, y, t) ≤ t. For aligning reads to bacterial genomes, Bound is much faster than the worst-case complexity Θ(m2).

Algorithm 3 Bound(x, y, t)

1: d i,0 := 0 for 0 ≤ i ≤ |x|

2: d0,j:= 0 for 0 ≤ j ≤ |y|

3: for i := 0 to |x| do

4:    for j := 1 to |y| do

5:        d i,j := min(di−1,j−1+(xi == y j ), di−1,j+ 1, di,j−1+1)

6:    return t + 1 if d i,j > t for 1 ≤ j ≤ max{|x|, |y|}

7: return d |x|,|y|


RandAL is implemented in C++; FM-index codes are adapted from an external library ( We compared our method against several aligners including Bowtie [1], BWA [2], Bowtie2 [3], BWA-SW [4], and CUSHAW2 [12]. We chose these methods based on the fact that they are recently published, very popular and their software are available. Comparison tests were conducted on a workstation with two Intel Xeon E5-2680 2.70GHz CPU and 64 GB RAM.

Each aligner is tested with 100,000 simulated reads generated for each of 6 bacterial genomes and 6 chromosomes of eukaryotic genomes. Sizes of these genomes range from 1.3 and 28 millions bases; see Table 1. Genomes were obtained from EMBL-EBI ( Since recent sequencing technologies produce read lengths ranging from 35 to 400bp at greater speed and lower cost than previous technologies (e.g. Sanger sequencing) [14], we choose this range of read lengths to evaluate the methods. More specifically, the reads were generated at lengths 35, 51, 76, 100, 200, and 400 as these lengths have been mentioned in the literatures. The wgsim C program, part of the SAMtool package [15], was used to generate reads.

Table 1 Reference genomes, obtained from EMBL-EBI (

Extensive comparisons were performed using SAMtool's default settings, with base error rate at 2%; 15% of polymorphisms are indels with lengths drawn from a geometric distribution with density 0.7 0.3l−1. Additionally, we present summary results for 1% and 4% base error rates with similar trends and conclusions.

Aligned reads from aligners are evaluated using the wgsim_eval Perl script, a part of the SAMtool package, using the default setting in which a read is mapped correctly if its mapping position is within a distance of 20 from the correct position. To compare alignment quality, we defined:

P r e c i s i o n = #  correctly aligned reads #  aligned reads R e c a l l = #  correctly aligned reads #  reads

Alignment quality of 6 aligners

At the outset, we found that Bowtie and BWA were decent performers when read lengths were short, i.e. between 31-56 bases. When read length increased, however, these two aligners were not competitive. Figure 3 shows the average performance (precision in the y-axis versus recall in the x-axis) of 6 aligners on 6 bacterial genomes and 6 eukaryotic genomes, respectively. Both BWA and Bowtie suffered from a decrease of precision as read length increases. For BWA, recall peaked at around 94% even at longer reads. Bowtie did better at recall for longer reads than BWA, but it was still not competitive to the other 4 aligners, including RandAL. Its bad performance at longer reads is unacceptable because technological trends tend to produce longer reads. For this reason, we will drop them out of head-to-head comparisons at this point, and will only compare the 4 best aligners: Bowtie2, BWA-SW, CUSHAW2 and RandAL.

Figure 3
figure 3

Alignment performance across 6 different read lengths. Recall (x-axis) versus Precision (y-axis) averaged across bacterial genomes and eukaryotic genomes, respectively, at read lengths of 35 bp, 51 bp, 76 bp, 100 bp, 200 bp and 400 bp.

A closer look at Figure 3 reveals that BWA-SW was relatively competitive but come roughly in the last place. There is no consistent winner (in terms of both precision and recall) among the top 3 performers, Bowtie2, CUSHAW2, and RandAL. Nevertheless, we can see that RandAL did noticeably better in terms of precision and was still competitive in terms of recall. Importantly, we see that across the wide range of read lengths from 35 to 400 for both bacterial and eukaryotic genomes, the performance of RandAL was consistently high in terms of both precision and recall; average precision was never below 0.98 and average recall was never below 0.95. This consistency distinguishes RandAL from the other top aligners.

An even closer look at individual bacterial and eukaryotic genomes (Figure 4) further reinforces the consistency in performance of RandAL. The lowest precision RandAL got in all 12 genomes was about 0.96, and the lowest recall was about 0.90. In comparison, for the other top performers, the lowest precision was about 0.93 and lowest recall was about 0.80.

Figure 4
figure 4

Recall versus precision of top 4 aligners. Performance of top aligners on bacterial genomes (top 6 figures) and eukaryotic genomes (bottom 6 figures). X-axis is recall; Y-axis is precision.

All top 4 aligners perform really well in both precision and recall as read length increases. Their performance was quite similar at 400 read length. At shorter read lengths, however, RandAL outperformed the rest, often in both precision and recall.

Rates of misalignment of top 4 aligners

Misalignment means aligning a read at an incorrect position. Misalignment increases the likelihood of running into problems later when we are interested in assembling reads into a complete genome and to identify where the constructed genome different from the reference genome (SNP calling).

The misalignment rate is calculated by dividing the number of incorrect aligned reads by the total number of reads. Figure 5 shows that averaging across all bacterial and eukaryotic genomes, RandAL got noticeably lower misalignments than the other aligners at all different read lengths. This result suggests that RandAL will likely work well with other tools and methods that require alignment of reads to reference genomes.

Figure 5
figure 5

Rate of misalignment. Rate of misalignment averaged across bacterial and eukaryotic genomes.

Alignment quality at different base error rates

We have compared performance of 4 different methods using a base error rate of 2%; each nucleotide is mutated with the probability of 2%. Due to the lack of space, we cannot present a comprehensive comparison at different base error rates, as we have at 2%. Nevertheless, analyses at different base error rates show similar behaviors as we have observed at 2% error rates. We present a summary analysis at two other base error rates of 1% and 4% at read lengths of 35 bp, 100 bp, and 400 bp. Table 2 summarizes the average precision and recall of the top 4 aligners. These numbers suggest the followings:

Table 2 Average precision and recall at 1% and 4% base error rates.

1 All methods performed well at 1% base error rate.

2 With 4% base error rates, the other methods suffered, particularly with shorter reads. The best of them (Bowtie2) got 63% recall at 35 bp. Low recall rate means few reads (out of the total number) were aligned correctly.

3 Our method consistently achieved the highest performance (or among the highest performance) across different read lengths and base error rates. In precision, our method always got the highest, consistently above 97.8%. In recall, even at worst case of 4% base error rate and 35 bp read length, we got 94%.

Raw running times of top 4 aligners

Theoretically, asymptotic complexity of our method in aligning a read of length m is proportional to m + m2. The worst case complexity of m2 is due to edit distance computation. The heuristic for computing edit distance, however, reduces this worst-case complexity significantly in practice. Our testing showed that the running times of other methods, like ours, did not depend much on genome sizes.

Table 3 shows the averaged running times (in seconds) of the 4 aligners in aligning 100,000 reads. Our method suffered with shorter reads, but were the second fastest with longer reads ( 100 bp). It seems that the benefit of randomization becomes more evident with longer reads.

Table 3 Average running times of top 4 aligners at different read lengths.

Bowtie2 was the fastest across the board, but as shown in the previous section, its alignment quality is not as good as our method or CUSHAW2. Compared to ours, CUSHAW2 was significantly slower. Observing running times at different read lengths, we speculate that CUSHAW2 might be much be slower than ours with longer reads.

Difficulty of alignment in the presence of repeats

Although eukaryotic genomes are expected to be harder to align than bacterial genomes, an examination of performance of the top 4 aligners in Figure 4 reveals that these aligners did not always perform better on bacterial genomes; eukaryotic genomes were not always harder to align. To quantify the degree of difficulty in aligning reads to genomes, we define repeat density as a measure of how many repeats a genome has. Since repeats directly affect alignment quality, the notion of repeat density is meant as a quantifiable approximation of genome complexity. More precisely, given a genome S and one of its length-k substrings, l, let f (l) be the number of times l occurs in S. We define the k-mer density of S given k to be

D ( S | k ) = l S , f ( l ) 2 f ( l ) | S | - k + 1

D ( S | k ) can be interpreted as the probability that a random read of length k is a repeat. The larger D ( S | k ) is, the more repeats S has and the harder it is expected for aligners to align k-mer reads to S. To investigate how much repeat density correlates with the difficulty of aligning short reads to genomes, first, we computed D ( S | k ) for k at each read length 35, 51, 76, 100, 200, and 400. To get a glimpse of its distribution, we show the values of D ( S | k ) of the bacterial and eukaryotic genomes, for k's equal to these read lengths, in Table 4. Second, for each k, we computed the Pearson correlation between D ( S | k ) of all bacterial and eukaryotic genomes and the performance (precision and recall) of each aligner on aligning reads of length k to the genomes.

Table 4 Repeat density of genomes, D(S| k), at various length k.

Table 5 shows that repeat density is correlated highly negatively to performance (precision and recall) of all aligners. This means the larger D ( S | k ) is, the worse any aligner will perform. In other words, D ( S | k ) is good indicator of alignment difficulty. That said, we also observe that for BWA-SW at small lengths (k = 35, 51), the negative correlation was weakest. This is probably due to BWA-SW trimming short reads.

Table 5 Pearson correlation coefficients of repeat density and performance


We introduced RandAL, a novel randomized approach to aligning reads to reference genomes. We showed that it performed among some of the top aligners that currently exist. Unlike the other aligners, however, RandAL distinctly performs consistently well across a wide range of parameters (read lengths and error rates) across all tested bacterial and eukaryotic genomes. As current sequencing technologies can produce reads in the tested range at low cost [14], our approach promises to work well with these technologies.

Using repeat density as a measure of genome complexity, we showed that this measure correlated highly negatively with alignment quality (precision and recall). This implies that for larger and more complex genomes with many more repeats, these aligners will similarly suffer, as expected.


  1. Langmead B, Trapnell C, Pop M, Salzberg SL, et al: Ultrafast and memory-efficient alignment of short dna sequences to the human genome. Genome Biol. 2009, 10 (3): 25-10.1186/gb-2009-10-3-r25.

    Article  Google Scholar 

  2. Li H, Durbin R: Fast and accurate short read alignment with burrows-wheeler transform. Bioinformatics. 2009, 25 (14): 1754-1760. 10.1093/bioinformatics/btp324.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  3. Langmead B, Salzberg SL: Fast gapped-read alignment with bowtie 2. Nature Methods. 2012, 9 (4): 357-359. 10.1038/nmeth.1923.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  4. Li H, Durbin R: Fast and accurate long-read alignment with burrows-wheeler transform. Bioinformatics. 2010, 26 (5): 589-595. 10.1093/bioinformatics/btp698.

    Article  PubMed  PubMed Central  Google Scholar 

  5. Li H, Ruan J, Durbin R: Mapping short dna sequencing reads and calling variants using mapping quality scores. Genome research. 2008, 18 (11): 1851-1858. 10.1101/gr.078212.108.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  6. Li R, Li Y, Kristiansen K, Wang J: Soap: short oligonucleotide alignment program. Bioinformatics. 2008, 24 (5): 713-714. 10.1093/bioinformatics/btn025.

    Article  PubMed  CAS  Google Scholar 

  7. Rumble SM, Lacroute P, Dalca AV, Fiume M, Sidow A, Brudno M: Shrimp: accurate mapping of short color-space reads. PLoS computational biology. 2009, 5 (5): 1000386-10.1371/journal.pcbi.1000386.

    Article  Google Scholar 

  8. Homer N, Merriman B, Nelson SF: Bfast: an alignment tool for large scale genome resequencing. PLoS One. 2009, 4 (11): 7767-10.1371/journal.pone.0007767.

    Article  Google Scholar 

  9. Rizk G, Lavenier D: Gassst: global alignment short sequence search tool. Bioinformatics. 2010, 26 (20): 2534-2540. 10.1093/bioinformatics/btq485.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  10. Ahmadi A, Behm A, Honnalli N, Li C, Weng L, Xie X: Hobbes: optimized gram-based methods for efficient read alignment. Nucleic Acids Research. 2012, 40 (6): 41-41. 10.1093/nar/gkr1246.

    Article  Google Scholar 

  11. Weese D, Emde AK, Rausch T, Doring A, Reinert K: Razers--fast read mapping with sensitivity control. Genome Research. 2009, 19 (9): 1646-1654. 10.1101/gr.088823.108.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  12. Liu Y, Schmidt B: Long read alignment based on maximal exact match seeds. Bioinformatics. 2012, 28 (18): 318-324. 10.1093/bioinformatics/bts414.

    Article  Google Scholar 

  13. Ferragina P, Manzini G: Indexing compressed text. J ACM. 2005, 52 (4): 552-581. 10.1145/1082036.1082039.

    Article  Google Scholar 

  14. Schatz M, Delcher A, Salzberg S: Assembly of large genomes using second-generation sequencing. Genome Research. 2010, 20 (9): 1165-1173. 10.1101/gr.101360.109.

    Article  PubMed  CAS  PubMed Central  Google Scholar 

  15. Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R, Subgroup GPDP: The sequence alignment/map format and samtools. Bioinformatics. 2009, 25 (16): 2078-2079. 10.1093/bioinformatics/btp352.

    Article  PubMed  PubMed Central  Google Scholar 

Download references


This research was partially supported by NSF grant CCF-1320297 to VP.


Publication charges for this work were funded by NSF grant CCF-1320297 to VP.

This article has been published as part of BMC Genomics Volume 15 Supplement 5, 2014: Selected articles from the Third IEEE International Conference on Computational Advances in Bio and Medical Sciences (ICCABS 2013): Genomics. The full contents of the supplement are available online at

Author information

Authors and Affiliations


Corresponding author

Correspondence to Vinhthuy Phan.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

VP conceived and designed the algorithm and experiments. NSV, QT, and NN implemented the algorithm. NSV and QT collected data, implemented experiments, carried out evaluation and data analysis. All authors read and approved the manuscript.

Rights and permissions

Open Access  This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.

The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.

To view a copy of this licence, visit

The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Vo, N.S., Tran, Q., Niraula, N. et al. RandAL: a randomized approach to aligning DNA sequences to reference genomes. BMC Genomics 15 (Suppl 5), S2 (2014).

Download citation

  • Published:

  • DOI: