No retraction, correction or concern found when last checked on Oct 15, 2026.
PANDAseq: paired-end assembler for illumina sequences
Andre P Masella, Andrea K Bartram, Jakub M Truszkowski and 2 more
BMC Bioinformatics · 2012
Abstract
Background. Illumina paired-end reads are used to analyse microbial communities by targeting amplicons of the 16S rRNA gene. Publicly available tools are needed to assemble overlapping paired-end reads while correcting mismatches and uncalled bases; many errors could be corrected to obtain higher sequence yields using quality information.
Results. PANDAseq assembles paired-end reads rapidly and with the correction of most errors. Uncertain error corrections come from reads with many low-quality bases identified by upstream processing. Benchmarks were done using real error masks on simulated data, a pure source template, and a pooled template of genomic DNA from known organisms. PANDAseq assembled reads more rapidly and with reduced error incorporation compared to alternative methods.
Conclusions. PANDAseq rapidly assembles sequences and scales to billions of paired-end reads. Assembly of control libraries showed a 4-50% increase in the number of assembled sequences over naïve assembly with negligible loss of "good" sequence.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 17, 2026. Paragraph numbers are ours, so an answer can point at one.
Background
Single-gene sequencing has become the benchmark for studying microbial taxonomic composition of environmental samples, by amplification of hypervariable regions of the 16S rRNA gene. Next-generation sequencing platforms, such as Illumina, are now adapted for the generation of multi-million-member sequence libraries for sample comparisons. The PCR amplicons used for sequencing typically encompass one or more 16S rRNA gene hypervariable regions and amplicon lengths typically extend beyond the sequencing limit of the Illumina single-read method, which is typically less than 150 bases. Because the Illumina platform can generate amplicon sequences in a paired-end format, based on each template's position on the flow cell, paired reads can be directly matched and assembled. The prefiltering step of the genome assembly software PHRAP can be used to assemble reads. Although the Needleman-Wunsch algorithm embedded in Merger (http://emboss.sourceforge.net/apps/release/6.2/emboss/apps/merger.html) has been used to assemble Illumina paired-end reads, PANDAseq makes use of Illumina-specific properties, including the low probability of gap-inclusion.
Assembly of the Illumina paired-end sequences can be done naïvely requiring perfect match in the region of overlap, to produce large numbers of correct sequences, as in the first iteration of our assembly software. However, approximately 40% of the sequences were discarded due to uncalled or miscalled bases. The proportion of discarded paired-end reads, due to bases uncalled or miscalled, will increase as read lengths increase, decreasing naïve assembly effectiveness. We suggest a more sophisticated method that corrects errors probabilistically with the overlap data from the paired-end reads. When the overlap between the forward and reverse reads is substantial, many uncalled or miscalled bases can be corrected using the complementary sequence. Our software, PANDAseq, uses paired-end Illumina reads, determines the proper amount of overlap and reconstructs the entire sequence by correcting errors in the overlapping region (Figure 1). Assembly is extremely fast and millions of paired-end reads can be rapidly assembled on a desktop computer.
Implementation
PANDAseq aligns each set of paired-end sequence reads in a three-step process. First, it determines the locations of the amplification primers, if they are specified and were sequenced. Then, it identifies the optimal overlap. Finally, it reconstructs the complete sequence, correcting any errors, and checks for various constraints, such as length and quality.
To score alignments, we calculate the probability that the true nucleotides, and, are the same, given the observed nucleotides, X and Y. We estimate this with the included quality information found in the Illumina reads. For each base, CASAVA provides an encoded quality score, which is the probability of the base being miscalled. This probability (ϵ) is approximated by where A0 is the ASCII quality value in the Illumina analysis pipeline versions before CASAVA 1.8 and A1 is the ASCII value used in CASAVA 1.8.
Assuming all nucleotides are equally likely (i.e., the prior probability that the true bases match is ), and that sequencing errors are independent and result in equiprobable choices over the other three nucleotides, the probability that the true bases match, given that the sequenced bases match, is:
and the probability that the true bases match, given the sequenced bases mismatch, is:
If one of the bases is an uncalled base, N, then the probability that the bases match is:
Using these probabilities, PANDAseq begins the assembly process by determining the positions of forward and reverse primers, if supplied. To accomplish this, the program finds the first offset, x, where the primer aligns. For a primer P and a sequence S, the program calculates
while assuming that, which is the highest value score assigned by Illumina and, intuitively, assuming that is P.
The program then finds the best overlap greater than a specified threshold for the forward and reverse sequences, F and R, respectively. If no suitable overlap is found, then the read pair is discarded. This is done for the entire read, even if there are primers to be removed, as it is possible for the overlap to be sufficiently long to be in the primer region. A schematic is shown in Figure 1.
The value of c ∈ [1, min(|F|, |R|)) is chosen which maximises this formula:
where and and the remainder is as above with e fixed at a value determined empirically to be the average error rate. This value of ϵ was calculated by counting the mismatch rate in known index tags in a defined community data set (described below). This parameter need not be retuned as it is only an estimate of the error. Because the index read is short and sequenced earlier in the process, it likely has fewer errors and, therefore, its error rate should underestimate the true error rate. Regardless, the error rate specified for this step should not negatively affect the ability of PANDAseq to identify the best overlap for the forward and reverse reads.
Once the overlap is selected, the output sequence is constructed and an overall quality score is calculated. During this process, the primer regions are disregarded if primers were specified. The unpaired regions are copied from the available strands and the quality score for these regions is the product of the probability of those bases being correct. For the overlapping region, the decision-making process is more complex. If the bases agree, the base is included and the quality of this base is assumed to be. If the bases disagree, the base with the higher quality score is chosen and the quality of this base is assumed to be. If either or both bases are uncalled, they are considered to always match, noting that unassigned bases are always associated with the lowest quality score by CASAVA.
In certain cases, the CASAVA pipeline masks the quality score at the end of the read, replacing all quality scores with the lowest quality score. In this case, special quality scoring is used by PANDAseq. If one base is masked, the probability of the other base is used if the bases match or uniformly random,, is used if they do not match. If both are in the masked region, the quality is assumed to be uniformly random,.
The constructed sequence can then be validated against user-specified criteria. The quality score assigned to the assembled sequence is the geometric mean of the quality scores calculated above, which compensates for the variable lengths of the final sequences. PANDAseq enables users to reject sequences based on low quality score, lengths that are too short or too long, or the presence of uncalled bases. A module system is also available within PANDAseq to allow more sophisticated validation of user sequences, such as verification of known secondary structure or conserved regions. Note that there is a detailed manual included with the software that describes example usage scenarios.
Results and discussion
To validate PANDAseq, we used three experimental tests: (1) a test using simulated data to verify algorithmic correctness, (2) a test using sequence data from a single-template PCR amplicon to verify the quality of assembled reads, and (3) a test with experimental data obtained from a defined mixture of genomic DNA fragments to compare PANDAseq assembly yields with naïve assembly.
Simulated data was useful in determining how real quality scores affect sequence assembly. We used a previously published Illumina sequencing run of V3 hypervariable regions from a defined library (described below) and replaced the sequence with the corresponding region from Sinorhizobium meliloti (135 bases, region amplified by 341f and 518r excluding primers), up to the length of the original reads. Although this V3 sequence was taken from the published genome, it corresponds to the region being sequenced in the experimental data such that any sequencing quality problems due to secondary structure are preserved. This provides simulated error-free reads with experimental quality scores. Though the assembly was then performed without a quality filter, all 1 350 602 synthesized paired-end sequences assembled with quality scores greater than 0.9 (Figure 2). This value establishes an upper limit on the quality score independent of sequencing errors; that is, setting the quality threshold higher than 0.9 would demand that reads have fewer errors than data known to be perfectly correct and is, in effect, demanding the underlying read quality be better than is necessary to reconstruct the sequence.
Further analysis was performed on a library constructed from a Methylococcus capsulatus (ATCC 33009) full length 16S rRNA gene amplification products cloned into the TOPO vector using the TOPO TA cloning kit (Invitrogen). The resulting construct was used as template for 16S rRNA gene amplification and sequencing on an Illumina GAIIx as previously described, with the exception of the PCR product gel excision and purification step, which used the Wizard SV Gel and PCR Clean-Up System (Promega). Sequencing produced 673 845 paired-end 108-base reads, available at http://neufeldserver.uwaterloo.ca/~apmasell/pandaseq_sampledata.tar. Of these, 598 775 sequences were assembled with an assembly quality score greater than or equal to 0.9. We assembled the same single-template data with a quality threshold of 0.6 and this increased the number of sequences assembled by 9%, yielding 652 249 sequences. The errors in the original, individual reads and the reconstructed sequences were counted and error information is shown in Table 1. Only two reads contained uncalled bases and were excluded. PANDAseq improved the correctness of the reconstructed sequence relative to the original reads or preserved the correctness of good reads. Depending on the quality threshold, only about 0.02-0.08% of output read contained errors introduced by the PANDAseq assembly process, as calculated from the results in Table 1; these introduced errors were substantially less than the 5-8% of sequences with errors corrected by PANDAseq. Given an assembly threshold of 0.9 as an upper limit, we then attempted to determine the lower limit for the quality threshold by looking at a comparable quality score of the unassembled reads. We determined the geometric mean of the read qualities of the sequences which assembled to be no lower than 0.7. Only 0.04% of reads had a quality score between 0.6 and 0.7. Therefore, if a sequence assembles, it is probably correct, given the quality of the underlying read, regardless of quality score.
We compared the quality of PANDAseq assembly against the existing assemblers: SHERA, iTags (using PHRAP), and BIPES (using Merger). For this M. capsulatus library assembly, reads used still contained primers; primer removal was not a preprocessing step. If assembling sequences where the overlap region is large, it is possible that the end of one read would overlap the primer region of the other (see the highlyoverlapping scenario shown in Figure 1). PANDAseq assembled all sequences within 2 minutes 25 seconds, which is much faster than the second fastest method tested, SHERA, at 73 minutes. The other two programs were at least 100 times slower than PANDAseq. We were unable to use Merger on our test environment, a Macintosh Pro with 2 quad-core Intel Xeon 2.93 GHz processors, and so the BIPES assembler was run on a Linux machine with a quad-core Intel i5 3.2 GHz processor. Shown in Figure 3 is a scatter plot of accuracy versus coverage for the four different methods we considered. PANDAseq assembles the fewest reads in the dataset, but was, by far, the most accurate. iTags/PHRAP was inferior in coverage and accuracy to BIPES/Merger and to SHERA (Figure 3). Comparing average errors in the output sequence, PANDAseq performed the best with 0.38 nucleotide errors per sequence as compared to a minimum of 1.08 errors per sequence for SHERA and BIPES. However, as mentioned previously, PANDAseq assembled the fewest sequences at 95.5% of the dataset. SHERA assembled all sequences in the dataset, but it is worth noting that, upon inspection, many of the products assembled exclusively by SHERA were incorrect as an erroneous overlap region had been selected (data not shown). The number of error-free sequences in the overlap region is shown in Table 2. While SHERA has a larger number of sequences with correct overlaps, these represent a smaller fraction of the output compared to PANDAseq. Many of these sequences produced by SHERA with correct overlaps were rejected by PANDAseq due to low quality scores.
Finally, we used a composite of previously published duplicate control library, made from mixed pure bacterial cultures (NCBI SRA accession SRA024100), to compare naïve assembly and PANDAseq. In this composite library, the most abundant sequences are from the added pure cultures, but there are other contaminant sequences, likely from the growth media used. We performed the naïve assembly with the software used previously and the PANDAseq assembler, discarding any sequences with uncalled bases. The assembled sequences were clustered at 97% identity using CD-HIT and abundance curves were generated from the resulting clustered operational taxonomic units (OTUs; Figure 4). At a threshold of 0.9, the number of sequences increased 3.9% in total over naıve assembly, yielding an average increase of 2.1% in the most abundant clusters. There were 83 OTUs in which PANDAseq had fewer sequences than naïve assembly: 71 of them were OTUs for which the naïve assembly found a single sequence, while the PANDAseq assembly found zero. Relaxing the quality threshold increased sequence recoveries substantially. When the quality threshold was reduced to 0.6, the total number of sequences increased by 50% and the number of sequences in the most abundant clusters increased by 85%. Even if the quality threshold was lowered below 0.6, no new OTU sequences were assembled by PANDAseq. New, low-abundance OTUs were formed from some of the additional sequences, which, although they do not match the pure-culture organisms, classify taxonomically using the RDP classifier (data not shown).
Assembling 1350 602 reads took just 364 seconds on a Macintosh Pro with 2 quad-core Intel Xeon 2.93 GHz processors. Profiling indicated that cache faults are the limiting factor in performance (data not shown), and the current design minimises cache faults during analysis of each sequence pair.
There is a concern that, when making a choice between two disagreeing bases, the reconstructed sequence does not reflect the true sequence. For the control library, the disagreeing bases were dominated by mismatches in the quality-masked region of the reads, where both bases were of low quality and the decision would be arbitrary because there is no reasonable way to discern which base is better. In those cases, the entire reads are of low quality and likely to be discarded due to the quality threshold. However, mismatches generally occur between a base with a high quality score and a base with a low quality score, simplifying the choice of which base is correct. In control library data, only 20% of mismatched bases both had quality scores masked by CASAVA. Since the quality masked region must be quite long for this to occur, only few sequences suffer strongly from these mismatched quality-masked bases. This is due to the overlap region typically being longer than the quality-masked regions.
Conclusions
PANDAseq produces additional high-quality assemblies from Illumina paired-end reads than naïve assembly for minimal computational cost and provided more rapid and higher quality results compared to existing assemblers. Error correction, particularly of uncalled bases, increases the number of assembled sequences. Although it is possible for PANDAseq to produce incorrect assemblies, most assemblies are correct because incorrect assemblies have low quality scores, as these mismatches occur in quality-masked regions of both reads, and are discarded. This software provides a versatile and powerful way to assemble paired-end Illumina reads without otherwise discarding high-quality sequence data.
Availability and Requirements
Project name: PANDAseq
Project home page: https://github.com/neufeld/pandaseq
Operating system(s): POSIX-compliant (Windows, Linux, and MacOS)
Programming language: C
Other requirements: None
License: GNU GPL
Any restrictions to use by non-academics:
None
Authors' contributions
The program requirements and experimental framework were developed by JDN and APM. The PANDAseq software was written by APM. The libraries used were constructed by AKB. Analysis and development of the error models was shared by JMT and DGB. All authors have read and approved the final version of the manuscript.
References 13
- 1.
Bartram AK Lynch MDJ Stearns JC Moreno-Hagelsieb G Neufeld JD Generation of multimillion-sequence 16S rRNA gene libraries from complex microbial communities by assembling paired-end Illumina readsAppl Environ Microbiol2011 7738463852http://aem.asm.org/cgi/content/abstract/77/11/3846
Not in our library10.1128/aem.02772-10
- 2.
- 3.
Degnan PH Ochman H Illumina-based analysis of microbial community diversityISME J2011 http://www.nature.com/ismej/journal/v6/n1/full/ismej201174a.html
Not in our library10.1038/ismej.2011.74
- 4.
Caporaso JG Lauber CL Walters WA Berg-Lyons D Lozupone CA Turnbaugh PJ Fierer N Knight R Global patterns of 16S rRNA diversity at a depth of millions of sequences per sampleProc Natl Acad Sci USA2011 108Suppl 145164522http://genomebiology.com/2011/12/5/R50
Not in our library10.1073/pnas.1000080107
- 5.
Needleman SB Wunsch CD A general method applicable to the search for similarities in the amino acid sequence of two proteinsJ Mol Biol1970 48443453
Not in our library10.1016/0022-2836(70)90057-4
- 6.
Zhou HW Li DF Tam NF Jiang XT Zhang H Sheng HF Qin J Liu X Zou F BIPES, a cost-effective high-throughput method for assessing microbial diversityISME J2011 5741749http://www.nature.com/ismej/journal/v5/n4/abs/ismej2010160a.html
Not in our library10.1038/ismej.2010.160
- 7.
Cock PJA Fields CJ Goto N Heuer ML Rice PM The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variantsNucleic Acids Res2010 38617671771http://nar.oxfordjournals.org/content/38/6/1767.abstract
Not in our library10.1093/nar/gkp1137
- 8.
Illumina, IncCASAVA Software Version 1.7 User Guide2010 Illumina, Inc
Not in our library
- 9.
Muyzer G de Waal EC Uitterlinden AG Profiling of complex microbial populations by denaturing gradient gel electrophoresis analysis of polymerase chain reaction-amplified genes coding for 16S rRNAAppl Environ Microbiol1993 59695700http://www.ncbi.nlm.nih.gov/pmc/articles/PMC202176/
Not in our library10.1128/aem.59.3.695-700.1993
- 10.
- 11.
Li W Godzik A Cd-hit: a fast program for clustering and comparing large sets of protein or nucleotide sequencesBioinformatics2006 2216581659http://bioinformatics.oxfordjournals.org/content/22/13/1658.long
Not in our library10.1093/bioinformatics/btl158
- 12.
Cole JR Wang Q Cardenas E Fish J Chai B Farris RJ Kulam-Syed-Mohideen AS McGarrell DM Marsh T Garrity GM Tiedje JM The Ribosomal Database Project: improved alignments and new tools for rRNA analysisNucleic Acids Res2009 37Database issueD141145
Not in our library10.1093/nar/gkn879
- 13.
Cole JR Chai B Farris RJ Wang Q Kulam-Syed-Mohideen AS McGarrell DM Bandela AM Cardenas E Garrity GM Tiedje JM The ribosomal database project (RDP-II): introducing myRDP space and quality controlled public dataNucleic Acids Res2007 35Database issueD169172
Not in our library10.1093/nar/gkl889
Cited by papers we hold 83
- Disentangling the genetic basis of rhizosphere microbiome assembly in tomato · 2022No notice
- Randomized controlled trial for time-restricted eating in healthy volunteers without obesity · 2022No notice
- Effects of early-life antibiotics on the developing infant gut microbiome and resistome: a randomized trial · 2022No notice
- Altered Fecal Microbiota Correlated With Systemic Inflammation in Male Subjects With Methamphetamine Use Disorder · 2021Not checked
- Ciliates (Alveolata, Ciliophora) as bioindicators of environmental pressure: A karstic river case · 2021Not checked
- PacBio sequencing output increased through uniform and directional fivefold concatenation · 2021Not checked
- Targeting the Active Rhizosphere Microbiome of Trifolium pratense in Grassland Evidences a Stronger-Than-Expected Belowground Biodiversity-Ecosystem Functioning Link · 2021Not checked
- Impact of Hospital Wastewater on the Occurrence and Diversity of Beta-Lactamase Genes During Wastewater Treatment with an Emphasis on Carbapenemase Genes: A Metagenomic Approach · 2021Not checked
- Fecal microbiota transplantation protects rotenone-induced Parkinson’s disease mice via suppressing inflammation mediated by the lipopolysaccharide-TLR4 signaling pathway through the microbiota-gut-brain axis · 2021No notice
- Modulation of gut microbiota through nutritional interventions in Behçet’s syndrome patients (the MAMBA study): study protocol for a randomized controlled trial · 2020Not checked
- Restricted Clonality and Limited Germinal Center Reentry Characterize Memory B Cell Reactivation by Boosting · 2020No notice
- Reintroducing mothur: 10 Years Later · 2020No notice
- Alterations in Circulating Fatty Acid Are Associated With Gut Microbiota Dysbiosis and Inflammation in Multiple Sclerosis · 2020No notice
- Cervicovaginal microbiome and natural history of HPV in a longitudinal study · 2020No notice
- A genetic selection reveals functional metastable structures embedded in a toxin-encoding mRNA · 2019Not checked
- Shared and unique features of bacterial communities in native forest and vineyard phyllosphere · 2019Not checked
- Reprogramming the antigen specificity of B cells using genome-editing technologies · 2019Not checked
- Diel Oscillation of Microbial Gene Transcripts Declines With Depth in Oligotrophic Ocean Waters · 2019Not checked
- Duodenal bacterial proteolytic activity determines sensitivity to dietary antigen through protease-activated receptor-2 · 2019No notice
- Deciphering rhizosphere microbiome assembly of wild and modern common bean (Phaseolus vulgaris) in native and agricultural soils from Colombia · 2019No notice
and 63 more
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.