No retraction, correction or concern found when last checked on Oct 19, 2026.
Artificial and natural duplicates in pyrosequencing reads of metagenomic data
Beifang Niu, Limin Fu, Shulei Sun and 1 more
BMC Bioinformatics · 2010
Abstract
Background. Artificial duplicates from pyrosequencing reads may lead to incorrect interpretation of the abundance of species and genes in metagenomic studies. Duplicated reads were filtered out in many metagenomic projects. However, since the duplicated reads observed in a pyrosequencing run also include natural (non-artificial) duplicates, simply removing all duplicates may also cause underestimation of abundance associated with natural duplicates.
Results. We implemented a method for identification of exact and nearly identical duplicates from pyrosequencing reads. This method performs an all-against-all sequence comparison and clusters the duplicates into groups using an algorithm modified from our previous sequence clustering method cd-hit. This method can process a typical dataset in ~10 minutes; it also provides a consensus sequence for each group of duplicates. We applied this method to the underlying raw reads of 39 genomic projects and 10 metagenomic projects that utilized pyrosequencing technique. We compared the occurrences of the duplicates identified by our method and the natural duplicates made by independent simulations. We observed that the duplicates, including both artificial and natural duplicates, make up 4-44% of reads. The number of natural duplicates highly correlates with the samples' read density (number of reads divided by genome size). For high-complexity metagenomic samples lacking dominant species, natural duplicates only make up <1% of all duplicates. But for some other samples like transcriptomic samples, majority of the observed duplicates might be natural duplicates.
Conclusions. Our method is available from http://cd-hit.org as a downloadable program and a web server. It is important not only to identify the duplicates from metagenomic datasets but also to distinguish whether they are artificial or natural duplicates. We provide a tool to estimate the number of natural duplicates according to user-defined sample types, so users can decide whether to retain or remove duplicates in their projects.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 19, 2026. Paragraph numbers are ours, so an answer can point at one.
Background
Metagenomics is a new field that studies the microbes under different environmental conditions such as ocean, soil, human distal gut, and many others. Using culture-independent genomic sequencing technologies, metagenomics provides a more global and less biased view of an entire microbial community than the traditional isolated genomics. The earlier metagenomic studies were largely carried out with Sanger sequencing, but recently, more studies were performed with the new breaking through next-generation sequencing technologies. Today, the pyrosequencing by Roche's 454 life science serves as a dominant sequencing platform in metagenomics.
However, it is known that the 454 sequencers produce artificially duplicated reads, which might lead to misleading conclusions. Exact duplicates sometimes were removed before data analyses. Recently, in the study by Gomez-Alvarez et al, nearly identical duplicates, the reads that begin at the same position but may vary in length or bear mismatches, were also classified as artifacts. Exact and nearly identical duplicates may make up 11~35% of the raw reads.
In metagenomics, the amount of reads is used as an abundance measure, so artificial duplicates will introduce overestimation of abundance of taxon, gene, and function. Duplicated reads observed in a pyrosequencing run include not only artificial duplicates but also natural duplicates - reads from the same origin that start at the same genomic position by chance. Therefore, simply removing all duplicates might also cause underestimation of abundance associated with naturally duplicated reads. The occurrence of natural duplicates can be very low for metagenomic samples lacking dominant species, or can be very high for other samples like transcriptomic samples (results in this study). So it is important not only to identify the duplicates, but also to distinguish whether they are artificial or natural duplicates.
Exactly identical sequences can be easily found, but identification of non-exact duplicates requires sophisticated algorithms to process the massive sequence comparisons between reads. In Gomez-Alvarez et al's study, the duplicates were identified by first clustering the reads at 90% sequence identity using cd-hit program and then parsing the clustering results.
In this study, we first implemented a method for identification of exact and nearly identical duplicates from pyrosequencing reads. As the original developers of cd-hit, we reengineered cd-hit into a new program that can process the duplicates more effectively than the original program. This method can process a typical 454 dataset in ~10 minutes; it also provides a consensus sequence for each group of duplicates. Secondly, we validated this method using the underlying raw reads from a list of genome projects utilizing pyrosequencing technology. We compared the occurrences of the duplicates identified by our method and the natural duplicates made by independent simulations. Lastly, we studied duplicates for several metagenomic samples and estimated their natural duplicates under different situations.
Program for identification of duplicates
We implemented a computer program called cdhit-454 to identify duplicated reads by reengineering our ultra-fast sequence clustering algorithm cd-hit. The algorithm and other details of cdhit-454 are introduced in the Methods section. Briefly, we constrained cdhit-454 to find exact duplicates and nearly identical duplicates that start at the same position and are within the user-defined level of mismatches (insertions, deletions, and substitutions). We allow mismatches in order to tolerate sequencing errors. The default parameters of mismatches are based on the pyrosequencing error model derived in this study. We provide a tool in cdhit-454 to build a consensus sequence for each group of duplicates. The model used for consensus generation is also described in the Methods section. Cdhit-454 software and web server are available at http://cd-hit.org/.
Duplicated reads of genomic datasets
We tested and validated cdhit-454 with data from pyrosequencing-based genome projects where both the complete genomes and the underlying raw reads are available from NCBI at RefSeq and Short Read Archive (SRA). For a project with multiple sequencing runs, only the run with the most reads was selected. We identified 39 such genome projects on September 2009, with 15 from GS-20 and 24 from GS-FLX platform (including 1 GS-FLX Titanium). The details of the 39 projects, including their project identifiers, SRA accession numbers, genome sizes, GC contents, and other calculated results, are summarized in Table 1.
For each genome project, we applied cdhit-454 on the raw reads to identify the duplicates, which include both artificial and natural duplicates. The number of natural duplicates was empirically estimated by applying cdhit-454 on simulated reads, which are fragments randomly cut from the complete genomes.
A simulated reads set and the experimental raw reads set in each genome project have the exactly the same number of sequences of exactly the same lengths. We generated 1000 sets of simulated reads for each genome project and selected 100 sets that are most similar to its corresponding raw reads in GC content. We further introduced sequencing errors (insertions, deletions, and substitutions) to the simulated reads according to the error model derived in this study (Table 2, 3). These processes made the simulated read sets as similar as possible to the real reads set, except that the former only contains natural duplicates. Using cdhit-454, we identified the duplicates for the 100 sets of simulated reads of each project and calculated the average duplicate ratio and the standard deviations. Figure 1 shows the ratio of all duplicates and the average natural duplicates for these 39 projects. The results and the standard deviations are also available in Table 1.
As illustrated in Figure 1, the duplicates make up to 4-44% of reads. We observed that the ratio of natural duplicates, which ranges from 1-11%, highly correlates with the read density (number of reads divided by genome size) with a Pearson correlation factor of 0.99. The ratio of artificial duplicates (subtract natural duplicates from all duplicates) varies from 3-42%. On average, artificial duplicates make up 74% of all duplicates, and this percentage varies from 28% to 98% (first left and second right projects in Figure 1). Artificial duplicates happen randomly without observed correlation with the sample's GC content, genome size, or platform (GS-20 or GS-FLX).
Here, we define the sensitivity and specificity for the evaluation of duplicate identification. Within the simulated datasets, the reads that start at the same position are considered as true duplicates. The sensitivity of a method is the ratio of predicted true duplicates by this method to all true duplicates. The specificity is the ratio of predicted true duplicates to all predictions by this method. The averaged sensitivity and specificity for the 39 datasets are both ~98.0% using the default parameters of cdhit-454.
Pyrosequencing errors
The original 454 publication reported an error rate at ~4%. But later studies yielded much higher accuracy. For example, Huse et al. concluded an error rate at ~0.5% for GS20 system. Quinlan et al. provided a similar error rate at about ~0.4%.
Accurate estimation of the pyrosequencing error rate is very important for this study, because we use the error rate to optimize the parameters for cdhit-454 program to identify the duplicated reads with sequencing errors. The error model is also used to guide the generation of sequencing errors in the simulated datasets in above analysis. Therefore, we re-evaluated the pyrosequencing error rate using the data from Table 1.
We used Megablast with the default parameters to align the raw reads back to the corresponding reference genomes. Only the reads with at least 90% of the length aligned were selected to calculate the error rates. Other reads were treated as from contamination material, and therefore discarded. The error rates and fractions by error types (insertion, deletion, and substitution) for all projects are shown in Table 2 for GS-20 and Table 3 for GS-FLX.
We found that the error rate (number of errors divided by total bases) for pyrosequencing is from 0.4% to 0.5%. About 75% of the reads have no error; and about another 20% of the reads have ≤ 2% errors. If the sequencing error rate is 2%, two reads may have up to 4% mismatches. We set the default mismatch cutoff at 4% for cdhit-454 so that about 95% of reads can be covered. We examined several mismatch cutoffs from 95% to 98% on the simulated datasets; the 96% cutoff gave the best sensitivity and specificity. The mismatch cutoff parameter in cdhit-454 is a user-configurable parameter. If the low-quality reads are already filtered out, a higher cutoff such as 98% may be used.
Duplicated reads of metagenomic datasets
We studied the pyrosequencing reads for 10 metagenomic datasets (Table 4) of different environments from NCBI SRA or from CAMERA metagenomic project http://camera.calit2.net. We identified their duplicates with cdhit-454 (Figure 2). The duplicates make up 5-23% of reads. As concluded earlier in this study, the quantity of natural duplicates of metagenomic samples depends on the read density of their individual species, and therefore can vary significantly. Since the exact species composition and genome sequences are unknown for metagenomic samples, we could not calculate the amount of natural duplicates as we did for the genome projects. So, we simulated the occurrence of natural duplicates under several hypothetical sample types.
Metagenomic samples are roughly grouped into low-, moderate-, and high-complexity samples, which represent samples dominated by a single near-clonal population, samples with more than one dominant species, and those lacking dominant populations respectively. We constructed 6 hypothetical sample types: M-3 mb, M-100 kb, M-10 kb, H-3 mb, H-100 kb, and H-10 kb; here the name of a sample type starts with M or H (for moderate- or high-complexity) followed by the average genome size. Therefore, M-3 mb represents a moderate-complexity microbial sample with 3 MB genomes; and H-10 kb may represent a high-complexity small viral sample. We assumed that each hypothetical sample contained 100 different genomes of certain length. Given a set of reads, in order to calculate the natural duplicates under a high-complexity hypothetical sample type, we assigned these reads to the 100 genomes randomly at arbitrary positions on either strand. For a moderate-complexity type, 50% of the reads were randomly assigned to 3 dominant genomes, and other reads were randomly mapped to the remaining 97 low-abundance genomes. The natural duplicates were identified by comparing the mapping coordinates. We applied this method to the 10 metagenomic datasets to calculate the ratio of their natural duplicates under different hypothetical sample types (Figure 2 and Table 4).
From Figure 2, we can see that if these metagenomic samples match H-3 mb, M-3 mb, and H-100 kb, their natural duplicates only make up 0.2%, 1.5%, and 7.4% of all duplicates on average; so it is appropriate to filter out the duplicates. However, if a metagenomic sample matches other types, the number of anticipated natural duplicates may be similar or even larger than the artificial duplicates.
Here, we want to discuss a particular type of samples - metatranscriptomic samples. Similar to metagenomics, metatranscriptomics is a field that studies the microbial gene expression via sequencing of the total RNAs extracted directly from environments. Recent metatranscriptomic studies were performed with pyrosequencing. Since most microbial transcript sequences are only 102~104 bases in length and one transcript can have many copies in a cell, so the read density of metatranscriptomic samples is several orders of magnitude higher than the read density of metagenomic samples. It is expected that metatranscriptomic samples have high occurrence of natural duplicates. For example, 61% of reads in the mRNA samples from are found as duplicates by cdhit-454; it is reasonable to believe most of them are natural duplicates and therefore should be kept for abundance analysis.
Conclusions
In this study, we present an effective method to identify exact and nearly identical duplicated sequences from pyrosequencing reads. But since the identified duplicates contain natural duplicates, it is important to estimate the proportion of natural duplicates. In the cdhit-454 package, we provide a tool to estimate the number of natural duplicates under any hypothetical sample type defined by users, so users can decide whether to retain or remove duplicates in their projects.
Algorithm of cdhit-454
In cdhit-454, we use the original clustering algorithm of cd-hit. Briefly, reads are first sorted in decreasing length. The longest one becomes the seed of the first cluster. Then, each remaining sequence is compared to the seeds of all existing clusters. If the similarities with existing seeds meet pre-defined criteria, it is grouped into the most similar cluster. Otherwise, a new cluster is defined with the sequence as the seed. The pre-defined criteria includes: (1) they start at the same position; (2) their lengths can be different, but shorter one must be fully aligned with the longer one (the seed); (3) they can only have 4% mismatches (insertion, deletion, and substitution); and (4) only 1 base is allowed per insertion or deletion. Here, (3) and (4) are set according to the pyrosequencing error rate derived in this study (Result and discussion) and can be adjusted by users.
Generate consensus
We provide a program to build a consensus sequence for each group of duplicates. This tool takes the output of cdhit-454 and original FASTA or FASTQ file. It builds a multiple sequence alignment for each group of duplicates with program ClustalW, then generate consensus based on following model:
If a FASTA file is used, the most frequent symbol in each column of the alignment is used as the consensus, and then symbols representing gaps are removed from the consensus sequence. If a FASTQ file is used, the quality score for each base is converted into its error probability to improve the consensus generation.
In a column of a multiple alignment, the count for gaps is calculated as the real count, while the counts for letters {'A','C','G','T'} are "corrected" by the error probabilities, with contribution from letter 'N' which is not counted for itself. Suppose there are M letters in one position of a M-sequence alignment: b(i)∈ {'A', 'C', 'G', 'T'}, i = 1,..., M, with quality scores si and error probabilities pi, where,
The count c(α) for α∈ {'A', 'C', 'G', 'T'} is calculated as,
where δ(x, y) is a function that takes value one when x equals to y, and take zero otherwise. Namely, if the bi is α, a fraction count of 1-pi is added for letter α, and a fraction count of pi is equally distributed on the other letters among {'A', 'C', 'G', 'T'}, which reflects the nature of the error probability.
Then for each column, if there is a dominant letter or gap with frequency equal to or greater than 0.5, this dominant symbol is used in that column in the consensus, otherwise letter 'N' is used, and then symbols representing gaps are removed from the consensus sequence.
Estimate natural duplicates in hypothetical metagenomic samples
We provide a program to estimate the number of natural duplicates under any hypothetical sample type. A user provides the number of reads and the size and abundance of genomes in a hypothetical sample. Our tool gives the number of simulated natural duplicates.
Authors' contributions
BN designed and carried out the study, analyzed the results and wrote the manuscript. LF implemented the method and wrote the manuscript. SS prepared the datasets and analyzed the results. WL conceived of the study, implemented the method and wrote the manuscript. All authors read and approved the final manuscript.
References 22
- 1.
- 2.
Venter JC Remington K Heidelberg JF Halpern AL Rusch D Eisen JA Wu D Paulsen I Nelson KE Nelson W Environmental genome shotgun sequencing of the Sargasso SeaScience2004 30456676674
Not in our library10.1126/science.1093857
- 3.
Tringe SG von Mering C Kobayashi A Salamov AA Chen K Chang HW Podar M Short JM Mathur EJ Detter JC Comparative metagenomics of microbial communitiesScience2005 3085721554557
Not in our library10.1126/science.1107851
- 4.
Gill SR Pop M Deboy RT Eckburg PB Turnbaugh PJ Samuel BS Gordon JI Relman DA Fraser-Liggett CM Nelson KE Metagenomic analysis of the human distal gut microbiomeScience2006 312577813551359
Not in our library10.1126/science.1124234
- 5.
Tyson GW Chapman J Hugenholtz P Allen EE Ram RJ Richardson PM Solovyev VV Rubin EM Rokhsar DS Banfield JF Community structure and metabolism through reconstruction of microbial genomes from the environmentNature2004 42869783743
Not in our library10.1038/nature02340
- 6.
DeLong EF Preston CM Mincer T Rich V Hallam SJ Frigaard NU Martinez A Sullivan MB Edwards R Brito BR Community genomics among stratified microbial assemblages in the ocean's interiorScience2006 3115760496503
Not in our library10.1126/science.1120250
- 7.
Dinsdale EA Edwards RA Hall D Angly F Breitbart M Brulc JM Furlan M Desnues C Haynes M Li L Functional metagenomic profiling of nine biomesNature2008 4527187629632
Not in our library10.1038/nature06810
- 8.
Frias-Lopez J Shi Y Tyson GW Coleman ML Schuster SC Chisholm SW Delong EF Microbial community gene expression in ocean surface watersProc Natl Acad Sci USA2008 1051038053810
Not in our library10.1073/pnas.0708897105
- 9.
Turnbaugh PJ Hamady M Yatsunenko T Cantarel BL Duncan A Ley RE Sogin ML Jones WJ Roe BA Affourtit JP A core gut microbiome in obese and lean twinsNature2009 4577228480484
Not in our library10.1038/nature07540
- 10.
Shendure J Ji H Next-generation DNA sequencingNat Biotechnol2008 261011351145
Not in our library10.1038/nbt1486
- 11.
Gomez-Alvarez V Teal TK Schmidt TM Systematic artifacts in metagenomes from complex microbial communitiesIsme J2009 31113141317
Not in our library10.1038/ismej.2009.72
- 12.
Li W Jaroszewski L Godzik A Clustering of highly homologous sequences to reduce the size of large protein databasesBioinformatics2001 173282283
Not in our library10.1093/bioinformatics/17.3.282
- 13.
Li W Jaroszewski L Godzik A Tolerating some redundancy significantly speeds up clustering of large protein databasesBioinformatics2002 1817782
Not in our library10.1093/bioinformatics/18.1.77
- 14.
Li W Godzik A Cd-hit: a fast program for clustering and comparing large sets of protein or nucleotide sequencesBioinformatics2006 221316581659
Not in our library10.1093/bioinformatics/btl158
- 15.
Margulies M Egholm M Altman WE Attiya S Bader JS Bemben LA Berka J Braverman MS Chen YJ Chen Z Genome sequencing in microfabricated high-density picolitre reactorsNature2005 4377057376380
Not in our library10.1038/nature03959
- 16.
- 17.
Quinlan AR Stewart DA Stromberg MP Marth GT Pyrobayes: an improved base caller for SNP discovery in pyrosequencesNat Methods2008 52179181
Not in our library10.1038/nmeth.1172
- 18.
Zhang Z Schwartz S Wagner L Miller W A greedy algorithm for aligning DNA sequencesJ Comput Biol2000 71-2203214
Not in our library10.1089/10665270050081478
- 19.
Mavromatis K Ivanova N Barry K Shapiro H Goltsman E McHardy AC Rigoutsos I Salamov A Korzeniewski F Land M Use of simulated data sets to evaluate the fidelity of metagenomic processing methodsNat Methods2007 46495500
Not in our library10.1038/nmeth1043
- 20.
Poretsky RS Hewson I Sun S Allen AE Zehr JP Moran MA Comparative day/night metatranscriptomic analysis of microbial communities in the North Pacific subtropical gyreEnviron Microbiol2009 11613581375
Not in our library10.1111/j.1462-2920.2008.01863.x
- 21.
- 22.
Thompson JD Higgins DG Gibson TJ CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, position-specific gap penalties and weight matrix choiceNucleic Acids Res1994 222246734680
Not in our library10.1093/nar/22.22.4673
Cited by papers we hold 22
- Generalist species drive microbial dispersion and evolution · 2017No notice
- Begomovirus-Associated Satellite DNA Diversity Captured Through Vector-Enabled Metagenomic (VEM) Surveys Using Whiteflies (Aleyrodidae) · 2016Not checked
- Microbial Succession in the Gut: Directional Trends of Taxonomic and Functional Change in a Birth Cohort of Spanish Infants · 2014No notice
- Environmental status assessment using DNA metabarcoding: towards a genetics based Marine Biotic Index (gAMBI). · 2014Not checked
- CopyRighter: a rapid tool for improving the accuracy of microbial community profiles through lineage-specific gene copy number correction · 2014No notice
- Analysis of plant microbe interactions in the era of next generation sequencing technologies · 2014No notice
- A metagenomics transect into the deepest point of the Baltic Sea reveals clear stratification of microbial functional capacities. · 2013Not checked
- Shining a Light on Dark Sequencing: Characterising Errors in Ion Torrent PGM Data · 2013No notice
- Integrated “omics” profiling indicates that miRNAs are modulators of the ontogenetic venom composition shift in the Central American rattlesnake, Crotalus simus simus · 2013No notice
- The Pacific Ocean Virome (POV): A Marine Viral Metagenomic Dataset and Associated Protein Clusters for Quantitative Viral Ecology · 2013No notice
- VIROME: a standard operating procedure for analysis of viral metagenome sequences · 2012No notice
- Phylogenetic and functional metagenomic profiling for assessing microbial biodiversity in environmental monitoring. · 2012Not checked
- Evaluation of methods to concentrate and purify ocean virus communities through comparative, replicated metagenomics · 2012No notice
- A platform-independent method for detecting errors in metagenomic sequencing data: DRISEE. · 2012Not checked
- Next Generation Sequencing to Define Prokaryotic and Fungal Diversity in the Bovine Rumen · 2012No notice
- Metagenomics - a guide from sampling to data analysis · 2012No notice
- CD-HIT: accelerated for clustering the next-generation sequencing data · 2012No notice
- Integrated next-generation sequencing of 16S rDNA and metaproteomics differentiate the healthy urine microbiome from asymptomatic bacteriuria in neuropathic bladder associated with spinal cord injury · 2012No notice
- A metagenomic study of diet-dependent interaction between gut microbiota and host in infants reveals differences in immune response · 2012No notice
- WebMGA: a customizable web server for fast metagenomic sequence analysis · 2011No notice
and 2 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.