Literature DB >> 26678826

How genome complexity can explain the difficulty of aligning reads to genomes.

Vinhthuy Phan, Shanshan Gao, Quang Tran, Nam S Vo.   

Abstract

BACKGROUND: Although it is frequently observed that aligning short reads to genomes becomes harder if they contain complex repeat patterns, there has not been much effort to quantify the relationship between complexity of genomes and difficulty of short-read alignment. Existing measures of sequence complexity seem unsuitable for the understanding and quantification of this relationship.
RESULTS: We investigated several measures of complexity and found that length-sensitive measures of complexity had the highest correlation to accuracy of alignment. In particular, the rate of distinct substrings of length k, where k is similar to the read length, correlated very highly to alignment performance in terms of precision and recall. We showed how to compute this measure efficiently in linear time, making it useful in practice to estimate quickly the difficulty of alignment for new genomes without having to align reads to them first. We showed how the length-sensitive measures could provide additional information for choosing aligners that would align consistently accurately on new genomes.
CONCLUSIONS: We formally established a connection between genome complexity and the accuracy of short-read aligners. The relationship between genome complexity and alignment accuracy provides additional useful information for selecting suitable aligners for new genomes. Further, this work suggests that the complexity of genomes sometimes should be thought of in terms of specific computational problems, such as the alignment of short reads to genomes.

Entities:  

Mesh:

Year:  2015        PMID: 26678826      PMCID: PMC4674900          DOI: 10.1186/1471-2105-16-S17-S3

Source DB:  PubMed          Journal:  BMC Bioinformatics        ISSN: 1471-2105            Impact factor:   3.169


Background

Advances in next-generation sequencing technologies have driven the development of computational approaches to address the problem of aligning short reads to reference genomes [1-10]. Even so, the alignment problem remains challenging due to the presence of genomic repeats that are much longer than reads. Yu et al. [11] evaluated alignment performance of several aligners on repetitive regions selected from CpG islands and concluded that long repeats seriously degraded alignment performance. Researchers generally believe that the difficulty of aligning short reads is very much related to the complexity of genomes; it is easier to misalign short reads when the genomes of interest have long and complicated repeat patterns. While there has been an interest in measuring complexity of strings, recent attention has been focused on complexity of DNA sequences [12-15]. Whiteford et al. [15] utilized k-mer frequencies as a way to visualize and understand the complexity of genomes. Kurtz et al. [14], similarly, annotated plant genomes with k-mer frequencies so that repeat structures and characteristics can be easily visualized. With the same approach to understanding genome complexity, Chor et al. [13] analyzed k-mer spectra of over 100 species and observed multimodal spectra for regions with specific CG content characteristics. Unfortunately, these measures cannot be easily quantified and immediately adopted to study how complexity affects the difficulty of short-read alignment. In a recent study, Becher et al. [12] introduced a measure known as the I-complexity, which seems most promising as a tool to correlate sequence complexity to difficulty of short-read alignment. The authors showed several interesting properties of this measure, including its closeness to the Lempel-Ziv complexity and its efficient computation in linear time. The I-complexity can be easily adopted for our purpose and will be used among others to understand how genome complexity affects the difficulty of short-read alignment. In this paper, we propose measures of complexity that are best suited for the analysis and understanding of the difficulty of short-read alignment and how such measures might be helpful in selecting appropriate aligners for new genomes. The inspiration for this work lies in the observation that complex repeat structures in DNA that affect the performance of computational tasks are length specific. For instance, in finding regulatory motifs in DNA sequences, repeated structures of interest are around 8-25 characters long. On the other hand, in aligning reads to genomes, such repeats probably have little effect on the performance of aligners. This means that measures such as the I-complexity that are general and not length-specific might not be best.

Methods

I-complexity and D-complexity

Becher et al. [12] introduced the I-complexity as a measure of complexity of strings. It is proportional to the number of distinct substrings of the input string. Specifically, the I-complexity of a DNA sequence g is defined to be: where LCP [i] is the length of the longest common prefix of the suffixes of g starting at positions S[i] and at S[i - 1], and S is the suffix array of g. The suffix array S of g stores implicitly lexicographically sorted suffixes of g; i.e. for i < j, g (the suffix starting at index S[i]) is lexicographically smaller than g (the suffix starting at index S[j]). The somewhat non-intuitive definition of the I-complexity has some advantages. The authors established upper and lower bounds for I(g), and showed that it was close to the Lempel-Ziv complexity of g. Further, it can be computed in linear time because the suffix and LCP arrays can be constructed in linear time [16,17]. Although the I-complexity will be used in our attempt to explore the relationship between complexity and difficulty of alignment, we introduce a similar measure, D(g), counts directly the rate of distinct substrings: where f(x) denotes the number of occurrences of x in g. To be precise, D(g) is equal to the total number of distinct substrings divided by the total number of substrings of g. D(g) can be computed in linear time, due to the following lemma. Lemma 1 Proof Suppose that a substring s of g occurs exactly k times. Then, there will be a block of size k in the suffix array that corresponds to k suffixes that have s as the common prefix. More specifically, assume that s is the common prefix of the suffixes of g starting at positions . We will call the occurrence of s at position S[i] its representative occurrence, and its occurrences at its repeat occurrences. Each repeat occurrence of s is a prefix of the longest common prefix of the suffixes starting at . This means, each repeat occurrence of s is accounted for uniquely by the values of . If we focus on a position, for example i + 1, we can see that the longest common prefix between S[i + 1] and S[i] (let's call it ) accounts uniquely for j repeat occurrences, namely . One of these is s; the rest are repeat occurrences of other substrings. Thus, each repeat occurrence is accounted for uniquely in some entry of LCP and each entry of LCP accounts uniquely for some repeat occurrences. That implies that accounts for the total repeat occurrences of all substrings of g. Further, is the total number of substrings of g, since there are exactly i substrings starting at position i. Thus, if we remove all repeat occurrences from the total number of substrings, we will get precisely the total number of representative occurrences. This means .

Length-sensitive measures of complexity

In addition to the I and D, we introduce two notions of length-sensitive measures of genome complexity. The motivation is that, depending on which computational tasks that are affected by the complexity of genomes, only a narrow range of repeat lengths play an important role; for instance, one would expect repeats that affect the finding of regulatory motifs to be much shorter than those that affect the alignment reads to genomes. Given a number k, we define Dand Ras follows: where f (x) is the number of occurrences of x in g. Dand Rmeasure the rates of distinct substrings and repeats, respectively, of length k. Rand Dare not exact "opposites" because Rdoes not account for non-repeats, whereas Ddoes. Ris related to the function C(k, r) proposed by Whiteford et al. [15]. C(k, r) is the count of k-mers repeating exactly r times. Therefore, . Dand Rcan be computed in linear time and space using suffix and LCP arrays. Lemma 2 Proof A k-substring of g must start at an index between 1 and |g|-k +1. Further, if LCP [j] LCP [j] On the other hand, if S[j] > |g|-k+1 or LCP [j] ≥ k, then the k-substring starting at S[j] does not exist or is not distinct. Since LCP runs through all positions of g, all distinct k-substrings are uniquely accounted for. Lemma 3 , where I[i, j]'s, where i ≤ j, such that 1 LCP [u] ≥ k for i ≤ u ≤ j 2 LCP [i - 1] 3 LCP [j + 1] Proof A k-repeat is a substring x of length k, with f (x) >1. Since the suffix array S is sorted lexicographically, S forms consecutive runs of k-repeats, which are k-prefixes of the suffixes stored implicitly by S. More specifically, each interval [i, j] ∈ Icorresponds to all occurrences of exactly one k-repeat. The number of occurrences for each k-repeat is exactly j - i + 2. Ican be computed in linear time by scanning the LCP array once. Note that the index of LCP runs from 1 to |g|, and LCP [1] = 0.

Relating genome complexity to difficulty of aligning short reads to genomes

I, D, D, and Rprovide quantitative measures of complexity for each genome. Intuitively, the more distinct substrings a reference genome has (i.e. high values of I, D, and D), the easier to align reads to the reference genome. Conversely, the more long repeats the genome has, the more difficult to align reads to it correctly (since the probability of mismatching of a read with a wrong substring is higher.) We measure the performance of an alignment algorithm using precision and recall, where precision is defined as the fraction of aligned reads that are correct (i.e. number of correctly aligned reads divided by the total number of aligned reads); and recall is defined as the fraction of reads that are correctly aligned (i.e. number of correctly aligned reads divided by the total number of reads). These definitions were also used by Liu et al. [8]. To correlate complexity values to difficulty of alignment, for each measure of complexity, we computed the linear correlation between the complexity values of sequences in a diverse data set including 100 genomic sequences, and the actual performance for each of 10 popular aligners. A good measure of complexity will correlate highly with alignment performance.

Results

Aligners and genomic data

We selected from NCBI and EMBL-EBI databases a total of 100 genomic sequences from bacteria, plants, and eukaryotes (including human chromosomes) with diverse complexity. Detail information of these sequences is described in Tables 1, 2, and 3. "N" bases were removed from these genomic sequences because they were not real contents and constituted false long repeats that inappropriately affected the true complexity of the genomes.
Table 1

Information on the selected 100 genomic sequences [Part 1].

IDGenome sizeDescriptionLineageSource
AE0171981992676Lactobacillus johnsonii NCC 533,Bacteria, FirmicutesEBI
AJ27006014497843Arabidopsis thaliana DNA chr. 4, long armEukaryota, ViridiplantaeEBI
AM0559432013089Toxoplasma gondii RH, genomic DNA chr. IbEukaryota, AlveolataEBI
AM2631982814130Listeria welshimeri serovar 6b str. SLCC5334Bacteria, FirmicutesEBI
AM2698941347714Eimeria tenella chr. 1, ordered contigsEukaryota, AlveolataEBI
BA0000044202352Bacillus halodurans C-125 DNA,Bacteria, FirmicutesEBI
BN0013024011161TPA: Aspergillus nidulans FGSC A4 chr. IIEukaryota, FungiEBI
BX28460115072434Caenorhabditis elegans Bristol N2 genomic chr., IEukaryota, MetazoaEBI
CAID01000012521582Ostreococcus tauri WGS project CAID00000000 data, contig chr. 12Eukaryota, ViridiplantaeEBI
CM000001122678785Canis lupus familiaris chr. 1Eukaryota, MetazoaEBI
CM00003823914537Canis lupus familiaris chr. 38Eukaryota, MetazoaEBI
CM0000431786351Cryptococcus neoformans var. neoformans B-3501A chr. 4Eukaryota, FungiEBI
CM00007119787792Drosophila pseudoobscura pseudoobscura strain MV2-25 chr. 3Eukaryota, MetazoaEBI
CM00009157791882Rattus norvegicus strain BN/SsNHsdMCW chr. 20Eukaryota, MetazoaEBI
CM00011011219875Gallus gallus chr. 18Eukaryota, MetazoaEBI
CM00013421712932Oryza sativa (indica cultivar-group) chr. 9Eukaryota, ViridiplantaeEBI
CM0001526357299Dictyostelium discoideum AX4 chr. 3Eukaryota, AmoebozoaEBI
CM00015722324452Drosophila yakuba strain Tai18E2 chr. 2LEukaryota, MetazoaEBI
CM00015821139217Drosophila yakuba strain Tai18E2 chr. 2REukaryota, MetazoaEBI
CM0001694918979Aspergillus fumigatus Af293 chr. 1Eukaryota, FungiEBI
CM000177161428367Bos taurus chr. 1Eukaryota, MetazoaEBI
CM00020144081797Bos taurus chr. 25Eukaryota, MetazoaEBI
CM0002084054025Trypanosoma brucei brucei strain 927/4 GUTat10.1 chr. 10Eukaryota, EuglenozoaEBI
CM000209199526509Mus musculus chr. 1Eukaryota, MetazoaEBI
CM00030278773432Macaca mulatta chr. 16Eukaryota, MetazoaEBI
CM000377185838109Equus caballus chr. 1Eukaryota, MetazoaEBI
CM0004522067354Plasmodium vivax chr. 11Eukaryota, AlveolataEBI
CM000515118548696Taeniopygia guttata chr. 1Eukaryota, MetazoaEBI
CM00053016962381Taeniopygia guttata chr. 13Eukaryota, MetazoaEBI
CM00057246535552Pongo abelii chr. 22Eukaryota, MetazoaEBI
CM0005758914601Fusarium graminearum PH-1 chr. 2Eukaryota, FungiEBI
CM0005804643527Gibberella moniliformis 7600 chr. 3Eukaryota, FungiEBI
CM0005925212762Fusarium oxysporum f. sp. Lycopersici4287 chr. 4Eukaryota, FungiEBI
Table 2

Information on the selected 100 genomic sequences [Part 2].

IDGenome sizeDescriptionLineageSource
CM0006121002813Phaeodactylum tricornutum CCAP1055/1 chr. 9Eukaryota, StramenopilesEBI
CM0006383042585Thalassiosira pseudonana CCMP1335chr. 1Eukaryota, StramenopilesEBI
CM0006921385275Saccharomyces kluyveri NRRL Y-12651chr. FEukaryota, FungiEBI
CM00076755460251Sorghum bicolor chr. 8Eukaryota, ViridiplantaeEBI
CM00076960981646Sorghum bicolor chr. 10Eukaryota, ViridiplantaeEBI
CM000777301354135Zea mays chr. 1.Eukaryota, ViridiplantaeEBI
CM00079947997241Oryctolagus cuniculus chr. 10Eukaryota, MetazoaEBI
CM00082961220071Sus scrofa chr. 18.Eukaryota, MetazoaEBI
CM0008311255352Drosophila virilis strain 15010-1051.88chr. 6.Eukaryota, MetazoaEBI
CM00085041906774Glycine max chr. 17Eukaryota, ViridiplantaeEBI
CM00087544557958Callithrix jacchus chr. 20Eukaryota, MetazoaEBI
CM00090655886266Ovis aries chr. 22Eukaryota, MetazoaEBI
CM00090766770968Ovis aries chr. 23Eukaryota, MetazoaEBI
CM00091727037145Nasonia vitripennis chr. 3Eukaryota, MetazoaEBI
CM00122142630297Medicago truncatula chr. 5.Eukaryota, ViridiplantaeEBI
CM00122223282162Medicago truncatula chr. 6.Eukaryota, ViridiplantaeEBI
CM001276232296185Macaca fascicularis chr. 1Eukaryota, MetazoaEBI
CM00129465364038Macaca fascicularis chr. 19Eukaryota, MetazoaEBI
CP000048922307Borrelia hermsii DAH,Bacteria, SpirochaetesEBI
CP0004962740984Scheffersomyces stipitis CBS 6054 chr. 2, complete sequence.Eukaryota, FungiEBI
CP0008286503724Acaryochloris marina MBIC11017,Bacteria, CyanobacteriaEBI
CP0010378234322Nostoc punctiforme PCC 73102,Bacteria, CyanobacteriaEBI
CP001141945026Phaeodactylum tricornutum CCAP1055/1 chr. 11, complete sequence.Eukaryota, StramenopilesEBI
CP0016815167383Pedobacter heparinus DSM 2366,Bacteria, BacteroidetesEBI
CP0016999127347Chitinophaga pinensis DSM 2588,Bacteria, BacteroidetesEBI
CP0019825097447Bacillus megaterium DSM319,Bacteria, FirmicutesEBI
CP0022877013095Achromobacter xylosoxidans A8,Bacteria, ProteobacteriaEBI
CP0029874044777Acetobacterium woodii DSM 1030,Bacteria, FirmicutesEBI
CP0031709239851Actinoplanes sp. SE50/110,Bacteria, ActinobacteriaEBI
CP0033484321753Desulfitobacterium dehalogenans ATCC 51507,Bacteria, FirmicutesEBI
CP0038725196935Acidovorax sp. KKS102,Bacteria, ProteobacteriaEBI
CR3809541050361Candida glabrata strain CBS138 chr. H complete sequence.Eukaryota, FungiEBI
CU2341187456587Bradyrhizobium sp. ORS278,complete sequence.Bacteria, ProteobacteriaEBI
CU3296722452883Schizosaccharomyces pombe chr. III, complete sequenceEukaryota, FungiEBI
Table 3

Information on the selected 100 genomic sequences [Part 3].

IDGenome sizeDescriptionLineageSource
CU9281731114666Zygosaccharomyces rouxii strain CBS732 chr. A complete sequence.Eukaryota, FungiEBI
DG00001027390870Oryzias latipes DNA, chr.10, strain: HdrR.Eukaryota, MetazoaEBI
FA00000110049037Drosophila melanogaster unordered unlocalized genomic scaffolds (chrUn)Eukaryota, MetazoaEBI
FM1783793325165Aliivibrio salmonicida LFI1238 chr. 1Bacteria, ProteobacteriaEBI
FN5435025346659Citrobacter rodentium ICC168,Bacteria, ProteobacteriaEBI
FN5549744531609Trypanosoma brucei gambiense DAL972 chr. 11, complete sequenceEukaryota, EuglenozoaEBI
FO0828743568623Babesia microti strain RI chr. III, complete sequence.Eukaryota, AlveolataEBI
FP9290603108859Clostridiales sp. SM4/1 draft genome.Bacteria, FirmicutesEBI
FR798980512965Leishmania braziliensis MHOM/BR/75/M2904, chr. 6Eukaryota, EuglenozoaEBI
GCA 000002035.260348388Danio rerio genome assembly, chr1Eukaryota, MetazoaEBI
GCA 000151905.1229507203Gorilla gorGor3.1 chr. 1EukaryotaEnsembl
HE6016309743550Schistosoma mansoni strain Puerto Rico chr. 7,Eukaryota, MetazoaEBI
HE6167441292049Torulaspora delbrueckii CBS 1146 chr. 3,Eukaryota, FungiEBI
HE616749833973Torulaspora delbrueckii CBS 1146 chr. 8,Eukaryota, FungiEBI
HE8063191449145Tetrapisispora blattae CBS 6284 chr. 4,Eukaryota, FungiEBI
HE9783141290777Kazachstania naganishii CBS 8797 chr. 1,Eukaryota, FungiEBI
NC 003070.930427671Arabidopsis thaliana chr. 1, complete sequence.Eukaryota, ViridiplantaeNCBI
NC 007605171823Human herpesvirus 4 complete wild type genome.Viruses, dsDNA virusesNCBI
NC 008394.445064769Oryza sativa Japonica Group DNA, chr. 1, complete sequence, cultivar: NipponbareEukaryota, ViridiplantaeNCBI
NC 008397.230039014Oryza sativa Japonica Group DNA, chr. 4, complete sequence, cultivar: NipponbareEukaryota, ViridiplantaeNCBI
NC 008398.232124789Oryza sativa Japonica Group DNA, chr. 5, complete sequence, cultivar: NipponbareEukaryota, ViridiplantaeNCBI
NC 008399.230357780Oryza sativa Japonica Group DNA, chr. 6, complete sequence, cultivar: Nippon bareEukaryota, ViridiplantaeNCBI
NC 008400.228530027Oryza sativa Japonica Group DNA, chr. 7, complete sequence, cultivar: NipponbareEukaryota, ViridiplantaeNCBI
NC 008401.223661561Oryza sativa Japonica Group DNA, chr. 8, complete sequence, cultivar: NipponbareEukaryota, ViridiplantaeNCBI
NC 008403.235571569Oryza sativa Japonica Group DNA, chr. 10, complete sequence, cultivar: NipponbareEukaryota, ViridiplantaeNCBI
NC 008467.135863200Populus trichocarpa linkage group I, whole genome shotgun sequenceEukaryota, ViridiplantaeNCBI
NT 024477.141034903Homo sapiens chr. 12 genomic contig, GRCh37.p13 Primary AssemblyEukaryota, MetazoaNCBI
NT 024498.12369930Homo sapiens chr. 13 genomic contig,Eukaryota, MetazoaNCBI
GRCh37.p13 Primary Assembly
NT 029928.133915179Homo sapiens chr. 3 genomic contig, GRCh37.p13 Primary AssemblyEukaryota, MetazoaNCBI
NT 077528.2556644Homo sapiens chr. 7 genomic contig, GRCh37.p13 Primary AssemblyEukaryota, MetazoaNCBI
NT 078094.2868660Homo sapiens chr. 15 genomic contig, GRCh37.p13 Primary AssemblyEukaryota, MetazoaNCBI
NT 167185.13353625Homo sapiens chr. 1 genomic contig, GRCh37.p13 Primary AssemblyEukaryota, MetazoaNCBI
NT 167196.1754004Homo sapiens chr. × genomic contig, GRCh37.p13 Primary AssemblyEukaryota, MetazoaNCBI
Information on the selected 100 genomic sequences [Part 1]. Information on the selected 100 genomic sequences [Part 2]. Information on the selected 100 genomic sequences [Part 3]. We selected 10 popular short-read aligners that employ different algorithmic techniques and indexing structures: SHRiMP2 [1], mrFAST [2], SeqAlto [3], GASSST [4], Bowtie2 [5], BWA-SW [6], SOAP2 [7], CUSHAW2 [8], Masai [9], and Smalt [10]. We used default parameters to run these programs because these aligners appeared to perform well and consistent over the 100 genomes at such settings. It is not possible to compute the number of correctly aligned reads for real reads because positions of real reads in reference genomes are not known. Consequently, precision and recall cannot be computed using real reads. For this reason, we simulated reads for each genome, 2x coverage of reads at lengths 50, 75, and 100 using the wgsim program [18]. Reads were generated with default parameters; sequencing error rates equal to 0.5%, 1%, 2%, and mutation rates between 0.1% and 1%, of which 15% are indels. These parameters should be sufficiently realistic for the current sequencing technologies and a large range of organisms.

Overview performance of aligners

Figure 1 compares the running times of the aligners as a function of genome size (with 2x coverage). To take advantage of multiple CPU cores, one could manually partition reads into separate sets and run multiple instances across the number of cores. But since some of the aligners were not designed for multiple cores, it made more sense to compare them in single-threaded mode. We found that SHRiMP2 was roughly a magnitude slower than the fastest aligners for larger genomes. Therefore, it was therefore excluded from the figure. Based on running time, Masai, SOAP2 and SeqAlto were among the fastest.
Figure 1

Running time (in seconds) of aligners as function of genome size with 2x coverage, read length equal to 100, sequencing error at 2%, mutation rate at 0.1%.

Running time (in seconds) of aligners as function of genome size with 2x coverage, read length equal to 100, sequencing error at 2%, mutation rate at 0.1%. In terms of precision and recall, the average performance over 100 genomic sequences for read lengths 50, 75 and 100 is summarized in Table 4. All aligners were generally very accurate and increasingly so at longer read lengths. On average, CUSHAW2, Masai, and Smalt performed consistently well across read lengths 50-100, whereas Bowtie2, BWA-SW and SeqAlto performed equally well at read lengths 75-100, but were slightly inferior at read length 50. Strictly based on numbers, SHRiMP2 had very good accuracy (in terms of precision and recall), but for larger genomes, it ran very slow. Performance of GASSST seemed peculiar with some recall values larger than 1. This is possible if a read is aligned to multiple locations by the aligner and counted as correct more than once by the SAMtool evaluation package, which allows a gap (default value of 20) between predicted and actual read positions.
Table 4

Precision and recall averaged across 100 genomes at read lengths 50, 75, 100.

Prec-50Rec-50Prec-75Rec-75Prec-100Rec-100
Bowtie20.98710.90620.99430.97210.99650.9891
BWA-SW0.98860.89830.99520.98310.99720.9951
CUSHAW20.98820.98680.99560.99560.99750.9975
GASSST0.98361.11090.98971.03390.99140.9757
Masai0.98890.98610.99580.99030.99760.9790
mrFAST0.94080.57000.98620.91660.98330.9268
SeqAlto0.98750.88510.99560.97480.99760.9925
SHRiMP20.98920.97980.99580.99050.99750.9974
Smalt0.98580.97140.99540.99440.99740.9974
SOAP20.98930.90250.99590.79040.99760.6526
Precision and recall averaged across 100 genomes at read lengths 50, 75, 100. In brief, many of these aligners (e.g. Bowtie2, CUSHAW2, SeqAlto) performed similarly accurately on the tested 100 genomes. Without additional information, it can be difficult to decide between these high-performing aligners. It would be useful if we could predict how accurately they perform on new genomes. To explore the aligners' performance on new genomes, we will examine the correlation between various measures of genome complexity and alignment accuracy.

Correlation between genome complexity and alignment performance

Our experiments showed that an appropriate choice of length-sensitive measure of complexity correlated highly with short-read performance of most aligners across read lengths, rates of mutation and sequencing error. Figures 2, 3, and 4 show the correlation between complexity measures Dand alignment performance (precision and recall) at read lengths 50, 75, and 100, respectively, for the 100 genomes. We see that the D-complexity surprisingly had no correlation to performance across all aligners. The I-complexity (Becher et al. [12]) had better but still very low correlation, with correlation coefficients between 0 and -0.3.
Figure 2

Correlation coefficients between different measures of complexity and aligners' performance (precision and recall) at read length 100.

Figure 3

Correlation coefficients between different measures of complexity and aligners' performance (precision and recall) at read length 75.

Figure 4

Correlation coefficients between different measures of complexity and aligners' performance (precision and recall) at read length 50.

Correlation coefficients between different measures of complexity and aligners' performance (precision and recall) at read length 100. Correlation coefficients between different measures of complexity and aligners' performance (precision and recall) at read length 75. Correlation coefficients between different measures of complexity and aligners' performance (precision and recall) at read length 50. We can see that there is a value of k for which Dthat correlated highly with performance for both precision and recall, across all read lengths of 50, 75, and 100. For most aligners, the correlation coefficients were approximately 0.95. The only noticeable exception is for GASSST whose correlation coefficients were comparatively lower than those of the others. We think the explanation for this is in GASSST's peculiar performance as we reported earlier, whereby its recalls were above 1 for many of the 100 genomes. Additionally, we could see that when recalls were comparative lower for mrFAST and BWA-SW at read length 50, their correlations were also comparative lower than the other aligners'. It is important to note that some aligners were designed to work optimally with longer reads and consequently do not work very well with shorter reads. One can conclude that if aligners perform predictably in their comfort zones, D(or R), is a good complexity measure that correlates highly to the accuracy of aligning reads to genomes. A close examination of the results shows that the value of k for which Dcorrelated highest with performance was very close to the read length. For example, at read length 100, D100 had the highest correlations across aligners; at both read lengths 50 and 75, D50 had the highest correlations, although D25 also had very high correlations at read length 50. Thus, the most accurate measure of complexity to understand the difficulty of short-read alignment is length sensitive. Intuitively, this is because repeats of length close to 75, for example, influence the accuracy of the alignment of reads of length 75. The fact that the best value of k is less than or equal to read length, and not larger than it implies that Daccounts for approximate repeats. To see this, observe that a 75-mer repeat might not be part of a 100-mer, but surely contains several 50-mer repeats (26 of them, to be precise). This means that D100 neglects to account for several 50-mers, whereas D50 accounts for all of these, and these 50-mer repeats directly have an influence of the accuracy of aligning reads of length 75. This is probably why D50 had a better correlation profile to complexity than D100 did. The fact that Daccounts for approximate repeats longer than k can be explained formally by the so-called q-gram lemma, which states that two sequences of length k with edit distance e share at least n - q + 1 - qe q-grams. An estimate of complexity involving counting approximate repeats might give better correlation. However, the computing of approximate repeats is computational expensive compared to linear time computation of D. The best computation of approximate repeats we know of using a lossless filter [19] has an average running time of O(n2). For long genomes, this running time is not desirable. Since Dand Ralready correlated quite highly (approximately 0.95) for many aligners, a more efficient running time (linear instead of quadratic) seemed to be a better trade-off than a potentially better correlation. At different rates of sequencing error and mutation, respectively, we observed similarly high correlation between performance of the aligners and length-sensitive measures of complexity. To study the correlation at different rates of sequencing error and mutation rates, respectively, we chose to correlate D100 and alignment performance on reads of length 100. This case is representative for the correlation between the most appropriate length-sensitive measure and aligners' performance at a given read length. Figure 5 and 6 show the correlation between D100 and aligners' performance of aligning reads of length 100 at different sequencing error rates and different mutation rates, respectively. Across all rates of sequencing error and mutation, the correlation between precision of all aligners and D100 ranged from high to very high. The lowest correlation was obtained for GASSST at about 0.75. Correlations for the other aligners were around 0.95. Similarly, the correlation between recall and D100 was also high for almost all aligners. Overall, compared to precision, recall was, however, not as highly correlated. This might be explained by some aligners' conservative strategies, which aim to make few false positive alignments at the expense of making more false negatives. Further, as expected, at higher rates of sequencing error and mutation, respectively, correlation between performance and complexity decreased. Although, this decrease in correlation is affected more by increasing sequencing errors and by increasing mutations.
Figure 5

Correlation coefficients between D100 and aligners' performance (precision and recall) of aligning reads of length 100 at sequencing error rates of 0.5%, 1%, and 2%.

Figure 6

Correlation coefficients between D100 and aligners' performance (precision and recall) of aligning reads of length 100 at mutation rates between 0.1% and 1%.

Correlation coefficients between D100 and aligners' performance (precision and recall) of aligning reads of length 100 at sequencing error rates of 0.5%, 1%, and 2%. Correlation coefficients between D100 and aligners' performance (precision and recall) of aligning reads of length 100 at mutation rates between 0.1% and 1%.

Predicting aligner performance for unknown genomes

The existence of many short-read aligners makes it challenging for researchers to pick the best one for their genomes of interest. Surveys such as [20] compared popular software packages on a few known genomes and served as a good starting point. But when it comes to adopt a particular software package, the decision seems to be a mixture of many factors including the authors' reputation, past familiarity with the software, its alignment accuracy, its quality and ease of use, its resource usage (running time and RAM), and recommendations of fellow researchers. Our focus is on accuracy, defined in terms of precision and recall. To predict accuracy of a particular aligner on unknown genomes, researchers currently rely on its accuracy on known genomes. Such prediction can be based on summary statistics such as the top figure in Figure 7. This figure shows precisions and recalls of the aligners across 100 genomes in a boxplot figure, which shows medians, interquartile ranges among other statistics. Considering both statistics on precision and recall, we can see that with the exception of MrFast and SOAP2 (and maybe GASSST), the rest of the aligners had similar precisions and recalls across the 100 genomes. While the aligners' performance appeared similar on known genomes, what remains uncertain is, however, how well they perform on new genomes.
Figure 7

Top Figure: box plots of accuracy (precision and recall) of aligners across 100 genomes; read length equal to 100. Bottom Figure: correlation between performance and D100.

Top Figure: box plots of accuracy (precision and recall) of aligners across 100 genomes; read length equal to 100. Bottom Figure: correlation between performance and D100. To remove this uncertainty and make more informed decisions, we might additionally incorporate correlation between genome complexity and accuracy. To illustrate this strategy, consider the bottom figure in Figure 7 shows the correlation between D100 (since it is the best at read length 100) of the aligners' precision and recall across the 100 genomes. Comparing the performance of the high-performing aligners identified in the previous step (those other than MrFast and SOAP2), we can see that they have different levels of correlations. For instance, Bowtie2 had noticeably lower correlations (0.89 for precision and 0.90 for recall) than CUSHAW2 for both precision and recall). Thus, although Bowtie2 and CUSHAW2 had similar accuracies for the 100 genomes, we expect that CUSHAW2 will more likely have similar accuracies for unknown genomes.

The effect of k on Dand R

Measures Dand Rare length specific and may have different characteristics for different values of k. Figure 8 shows the cumulative distributions of Dand Rwith k = 12, 25, 50, 100. We can see that the distributions of Dand Rare similar, but in an opposite fashion. For D12 or R12, the distribution of complexity of the 100 genomes is quite uniform across the range from 0 to 1. With k > 12, however, the distribution is quite non-uniform. As k becomes larger, the distribution of D(or R) becomes much more concentrated toward 1 (or 0).
Figure 8

Cumulative distributions of .

Cumulative distributions of . The transition from near-uniform distributions of D12 (and R12) to very skewed distributions of D(and R), for k ≥ 50, might explain for the low correlation of D12 (and R12) to alignment accuracy. Thus, we can stipulate that right choice of k is essential for correlating complexity and alignment accuracy. The right choice of k appears to be similar to read length as we have observed.

Conclusions

We demonstrated that length sensitive measures were suitable for studying how genome complexity affected the of short-read alignment. This work has implications for theoretical studies of genome complexity, as well as for comparing alignment methods, and designing cost-effective experiments to assemble genomes. Beyond short-read alignment, these measures should be useful for problems such as short-read assembly, which are affected by genomic repeats. This method depends on the simulation of reads with known alignment locations, from which we can compute the number of correctly aligned reads for the calculation of precision and recall. With real reads, we cannot know this information. Better simulation of reads will improve the predictive power of this method.

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

VP designed methods, experiments, evaluations. SG, NSV, QT selected data, aligners and performed experiments.
  15 in total

Review 1.  A survey of sequence alignment algorithms for next-generation sequencing.

Authors:  Heng Li; Nils Homer
Journal:  Brief Bioinform       Date:  2010-05-11       Impact factor: 11.622

2.  SHRiMP2: sensitive yet practical SHort Read Mapping.

Authors:  Matei David; Misko Dzamba; Dan Lister; Lucian Ilie; Michael Brudno
Journal:  Bioinformatics       Date:  2011-01-28       Impact factor: 6.937

3.  Fast and accurate read alignment for resequencing.

Authors:  John C Mu; Hui Jiang; Amirhossein Kiani; Marghoob Mohiyuddin; Narges Bani Asadi; Wing H Wong
Journal:  Bioinformatics       Date:  2012-07-18       Impact factor: 6.937

4.  The Sequence Alignment/Map format and SAMtools.

Authors:  Heng Li; Bob Handsaker; Alec Wysoker; Tim Fennell; Jue Ruan; Nils Homer; Gabor Marth; Goncalo Abecasis; Richard Durbin
Journal:  Bioinformatics       Date:  2009-06-08       Impact factor: 6.937

5.  GASSST: global alignment short sequence search tool.

Authors:  Guillaume Rizk; Dominique Lavenier
Journal:  Bioinformatics       Date:  2010-08-24       Impact factor: 6.937

6.  Lossless filter for multiple repeats with bounded edit distance.

Authors:  Pierre Peterlongo; Gustavo Akio Tominaga Sacomoto; Alair Pereira do Lago; Nadia Pisanti; Marie-France Sagot
Journal:  Algorithms Mol Biol       Date:  2009-01-30       Impact factor: 1.405

7.  Fast and accurate long-read alignment with Burrows-Wheeler transform.

Authors:  Heng Li; Richard Durbin
Journal:  Bioinformatics       Date:  2010-01-15       Impact factor: 6.937

8.  Personalized copy number and segmental duplication maps using next-generation sequencing.

Authors:  Can Alkan; Jeffrey M Kidd; Tomas Marques-Bonet; Gozde Aksay; Francesca Antonacci; Fereydoun Hormozdiari; Jacob O Kitzman; Carl Baker; Maika Malig; Onur Mutlu; S Cenk Sahinalp; Richard A Gibbs; Evan E Eichler
Journal:  Nat Genet       Date:  2009-08-30       Impact factor: 38.330

9.  Fast and accurate read mapping with approximate seeds and multiple backtracking.

Authors:  Enrico Siragusa; David Weese; Knut Reinert
Journal:  Nucleic Acids Res       Date:  2013-01-28       Impact factor: 16.971

10.  A new method to compute K-mer frequencies and its application to annotate large repetitive plant genomes.

Authors:  Stefan Kurtz; Apurva Narechania; Joshua C Stein; Doreen Ware
Journal:  BMC Genomics       Date:  2008-10-31       Impact factor: 3.969

View more
  3 in total

Review 1.  Probably Correct: Rescuing Repeats with Short and Long Reads.

Authors:  Monika Cechova
Journal:  Genes (Basel)       Date:  2020-12-31       Impact factor: 4.096

2.  Pattern matching for high precision detection of LINE-1s in human genomes.

Authors:  Juan O Lopez; Jaime Seguel; Andres Chamorro; Kenneth S Ramos
Journal:  BMC Bioinformatics       Date:  2022-09-13       Impact factor: 3.307

3.  Next-generation forward genetic screens: using simulated data to improve the design of mapping-by-sequencing experiments in Arabidopsis.

Authors:  David Wilson-Sánchez; Samuel Daniel Lup; Raquel Sarmiento-Mañús; María Rosa Ponce; José Luis Micol
Journal:  Nucleic Acids Res       Date:  2019-12-02       Impact factor: 16.971

  3 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.