- Open Access
Estimation of viral richness from shotgun metagenomes using a frequency count approach
Microbiome volume 1, Article number: 5 (2013)
Viruses are important drivers of ecosystem functions, yet little is known about the vast majority of viruses. Viral shotgun metagenomics enables the investigation of broad ecological questions in phage communities. One ecological characteristic is species richness, which is the number of different species in a community. Viruses do not have a phylogenetic marker analogous to the bacterial 16S rRNA gene with which to estimate richness, and so contig spectra are employed to measure the number of virus taxa in a given community. A contig spectrum is generated from a viral shotgun metagenome by assembling the random sequence reads into groups of sequences that overlap (contigs) and counting the number of sequences that group within each contig. Current tools available to analyze contig spectra to estimate phage richness are limited by relying on rank-abundance data.
We present statistical estimates of virus richness from contig spectra. The program CatchAll (http://www.northeastern.edu/catchall/) was used to analyze contig spectra in terms of frequency count data rather than rank-abundance, thus enabling formal statistical analyses. Also, the influence of potentially spurious low-frequency counts on richness estimates was minimized by two methods, empirical and statistical. The results show greater estimates of viral richness than previous calculations in nearly all environments analyzed, including swine feces and reclaimed fresh water.
CatchAll yielded consistent estimates of richness across viral metagenomes from the same or similar environments. Additionally, analysis of pooled viral metagenomes from different environments via mixed contig spectra resulted in greater richness estimates than those of the component metagenomes. Using CatchAll to analyze contig spectra will improve estimations of richness from viral shotgun metagenomes, particularly from large datasets, by providing statistical measures of richness.
Viruses are the most abundant biological entities on earth, with an estimated 1031 virus-like particles in the biosphere . Their ubiquity coupled with their functions of predation and gene transfer make them important drivers of ecosystem dynamics, as illustrated during cholera outbreaks. When a cholera outbreak strikes, the abundance of the causative bacterium, Vibrio cholerae, is high. Bacteriophages (phages) that prey on the V. cholerae then proliferate, and the outbreak subsides as the abundance of V. cholerae declines due to phage predation [2, 3].
These dynamics are constantly played out in the environment with non-pathogenic bacteria and their phages. However, even though plaque and culture assays remain the gold standard for studying the phages of a cultivable bacterium, the vast majority of environmental bacteria have yet to be cultured . Therefore, viral shotgun metagenomics, which is the study of the collective genome of an assemblage of viruses, is the principal way to study the vast majority of phages. Next-generation sequencing technologies are essential to study phage metagenomes and phage ecology.
A first step toward understanding the complex interactions that occur in an environment is estimating the richness of species in that environment. Richness is the total number of distinct members in a community and, with the abundance of each member, contributes to the total diversity. The distinct members are often measured in terms of species, but because viruses lack a species definition we will refer to distinct groups of viruses as taxa. Viruses do not have a universal phylogenetic marker analogous to the bacterial 16S rRNA gene with which to measure richness, and so contig spectra serve as a proxy to estimate the number of phage taxa in a given community. A contig spectrum is generated from a viral metagenome, or virome, by assembling the random sequence reads into contigs (contiguous groups of sequences that align) and counting the number of sequences that fall into each contig [5, 6]. The rationale is that in any given sampling of an environment, abundant viruses will yield many sequences in one contig, whereas rare viruses will be captured as single sequences. Counting the sequences in terms of their assembly proficiency, therefore, reflects the richness of the community.
The program PHACCS (Pha ge C ommunities from C ontig S pectrum) was developed to estimate the richness and evenness of phage taxa based on their contig spectra . However, the richness computation relies on rank-abundance curves instead of frequency count data. There is a subtle but crucial distinction between the rank abundance curve and the frequency count curve. Both begin with a sample (of organisms, sequences or some kind of signature) that is binned into groups (such as bacterial species or phage taxa), and the sizes of the groups are recorded. For the rank-abundance curve, the observed species are then sorted from most to least numerous, and the resulting data are graphed. The most-sampled species is plotted leftmost, the next most-sampled species next, and so on, leading to a large number of singletons trailing off to the right (Figure 1A). This is a qualitative, not a quantitative, representation of species abundance. For example, every rank-abundance curve will be monotonically decreasing (from left to right), even though the actual occurrences of the species in the sample are random, and the most common species in the sample may not be the most common in the population.
In the frequency-count approach, by contrast, a fixed x-axis is established and the number of species observed x times is plotted as the y-value for each x (Figure 1B). This apparently simple distinction has major consequences. In the rank-abundance curve, both the x and the y-axes are indeterminate, because the ordering of the species in terms of their true abundance in the population can be very different from the observed ordering. A fixed x-axis yields a dataset that is amenable to formal statistical analysis, which is important because the value of y at x = 0 (the number of unobserved species) is the target of estimation.
Here we apply the analysis of frequency count data to previously published phage metagenomes. We present statistical estimates of richness from phage metagenomic data using the program CatchAll version 3.0 (http://www.northeastern.edu/catchall/index.html) . Additionally, we explore the effect of statistically and empirically discounted low-frequency datapoints on the richness estimates. Even the most conservative richness estimates show more phage taxa than previous calculations, in most environments analyzed.
Generating contig spectra
Both mixed and non-mixed contig spectra of seven nonmedicated swine fecal viromes  and four reclaimed fresh water viromes  were calculated using Circonspect (http://sourceforge.net/projects/circonspect/) . Artificial replicates were removed from the viromes prior to the analysis . Other viromes (salt water [6, 11, 12], human infant fecal , and human adult fecal ) were analyzed based on their published contig spectra. All contig spectra used in this study are reported (Additional file 1). Circonspect generates contig spectra based on the assembly of the user’s viral metagenome(s). The default assembler (Minimo; http://sourceforge.net/apps/mediawiki/amos/index.php?title=Minimo) was employed [13, 14]. Settings that can be adjusted by the user include the maximum sequence length at which to trim the input sequences (trim), the shortest sequence length to allow in the assembly (discard), the number of sequences to sample (sample size), and the depth of coverage to target. The input settings were optimized to maximize the assembled data used in calculating the contig spectra and to minimize the error: trim length, 600 (that is, greater than the average read length of the sequences in the sample); discard length, 100; sample size, 10,000 sequences per metagenome; coverage, 2x (that is, enough times to query each read twice). Settings not listed were not changed from default. These settings are comparable to what have been used previously  and fit within the current computation limits of Circonspect.
Estimating richness from contig spectra
All contig spectra were then analyzed in CatchAll and PHACCS , the latter of which was implemented via CAMERA’s alpha diversity pipeline (http://camera.calit2.net/) . Data were loaded in comma-delimited files into CatchAll version 3.0 , which estimates the richness using parametric and nonparametric models. CatchAll postulates a flexible family of stochastic abundance models, and fits or estimates these by maximum likelihood (via sophisticated numerical search algorithms; see [8, 17] for a discussion of the different models calculated by CatchAll). This procedure is known to be optimal when the postulated abundance model is indeed the true model. Unfortunately, it is not possible to know what the true model is, although the issue can be addressed via modern goodness-of-fit analysis as performed by CatchAll. This uncertainty is addressed by the flexibility of the models used by CatchAll, leading the statistical analyses to be moderately robust. To address further departures from the postulated parametric models, or certain other violations of assumptions, CatchAll also implements nonparametric estimation methods. These attempts to make minimal assumptions about the underlying population structure broaden the model base, but in turn exact a price in terms of statistical efficiency, that is, the variance of the final estimate per unit of sample size. (These issues have been well explored in the theoretical statistics literature.) In short, CatchAll fits a suite of flexible parametric models, along with a suite of nonparametric analyses, compares these and returns the best results according to statistical and heuristic criteria. Additionally, CatchAll performs statistical discounting of low-frequency observations and optionally provides the discounted richness estimate, as reported previously [8, 18].
Empirical discounting of contig spectra
MG-RAST (http://metagenomics.anl.gov/)  was used to assign the singleton sequence reads of three swine viromes to a taxonomic origin (bacteria, viral, eukaryote, archaeon, unassigned or no hits). Previous results showed that these viromes contained almost entirely phage DNA . Because of the inability to annotate the vast majority of phage genes, the real phage sequences might have no hits or would be assigned to viruses, while sequences in the other categories would be spurious. Assigning the singletons and tallying the number of spurious assignments lacks precision because even specialized phages are known to carry bacterial genes , but it is nonetheless a reasonable point of reference to help gauge the discounted richness estimates. Under these assumptions, the ratio of real to spurious reads was calculated, ranging from 1:1 to 1:2. The numbers of singletons were, therefore, halved within each contig spectrum to manually dispose of the supposedly spurious reads, and the resulting spectra were analyzed in CatchAll as above.
Results and discussion
Richness estimates of published phage metagenomes
We applied current statistical procedures [8, 17, 18] to calculate richness from individual viral metagenomes. The results show high estimates of viral richness under the best parametric model in CatchAll (Table 1; Chao-type nonparametric estimates, such as ACE (not shown here) are roughly comparable to the best parametric results; note that the PHACCS estimates do not provide standard errors). The CatchAll richness estimates ranged from one to three orders of magnitude higher than the PHACCS estimates, suggesting that previous reports have underestimated viral richness in all environments analyzed (Table 1). Additionally, CatchAll richness estimates tended to be more consistent across viral metagenomes of the same or similar environments. The salt water viromes appear to deviate from this trend, but the inputs for the metagenomes were different: British Columbia and Gulf of Mexico viromes actually represent numerous samples over time, whereas the Sargasso Sea virome originated from a single sample.
In some cases the sample is so small that it becomes impossible to estimate richness. For example, the contig spectrum of some phage metagenomes, such as the Arctic Ocean salt water virome , lacked sufficient data for the richness to be calculated by CatchAll (Table 1). As the cost of sequencing continues to decline, large virome datasets amenable to the present analysis should become more plentiful. This also should encourage the sequencing of biological replicates to enable statistical comparisons between metagenomic datasets.
Estimated richness after statistical discounting
Although the CatchAll-based richness estimates were roughly on the same order of magnitude per environment, we reasoned that 100,000 viral taxa per sample could be an overestimate of the true richness. This is because contig spectra from viral metagenomes might contain a large number of spurious singletons, due to both biological and technical phenomena. An example of a biological phenomenon is that certain viruses of bacteria (bacteriophages or phages) called generalized transducing phages are known to package random pieces of bacterial chromosomal DNA, which would never assemble in a contig spectrum and thereby inflate the number of singletons. Another biological phenomenon that could inflate the richness estimates is the mosaicism of phage genomes , which could decrease the assembly of related phages and cause them to be counted as discrete taxa. From a technical standpoint, pyrosequencing is error prone: errors introduced by pyrosequencing technology inflate 16S rRNA-based estimates of diversity , and data derived from bulk DNA sequencing need to be screened for false duplicates that arise from the emulsion PCR step .
Ideally, any suspected inflated diversity would be fixed at an appropriate technical step in the sequencing pipeline. In the absence of a technical solution, we theoretically discussed several statistical discounting procedures  and modified CatchAll to optionally implement a statistical procedure that discounts the low-frequency observations, such as singletons . The results of statistically discounting the present contig spectra yielded phage richness estimates in the thousands per sample, which may be overly strict but yields a more biologically intuitive result than hundreds of thousands of phage taxa per sample (Table 1). This is the first broad application of this technique to multiple datasets.
Estimated richness after empirical discounting
Our statistical discounting procedure deletes a proportion of the low-frequency observations at the data analysis stage rather than data production stage, yielding what may be an overly conservative richness estimate. When juxtaposed with the high-richness estimates based on the original data, there is an expansive difference between the original unadjusted estimate and discounted richness estimates for a virome (Table 1). How, then, do we reconcile these estimates with the biology? An ideal proof-of-principle for the discounting procedure would be to compare the richness estimates to a scenario in which we actually know how many low-frequency counts are spurious. To address this, we developed an empirical discounting method for three swine phage metagenomes using the taxonomic assignment of the reads to infer a ratio of real to spurious reads. This ratio suggested that half of the reads could be spurious, and so the number of singletons in the contig spectra were halved prior to estimating the richness in CatchAll. The new estimated phage diversities were approximately 20% of the estimates based on the original contig spectra, but still 5 to 35 times greater than the statistically discounted estimates (Table 1). We, therefore, conclude that the statistical discounting method is indeed more conservative than inferring a discount based on the taxonomic information in the singletons. These empirical results also suggest that analyses of contig spectra that include potentially spurious reads at least double the richness estimate. The mathematically discounted model is a statistically sound tool to estimate the minimum richness of large viral metagenomic datasets.
Comparing phage richness between environments
When comparing phage metagenomes from different environments via mixed contig spectra from pooled viromes, CatchAll nearly recovers the expected reality that the summed richness is greater than that of the member environments. A mixed contig spectrum is achieved by mixing the sequences from two or more environments prior to generating a contig spectrum . We analyzed a published mixed contig spectrum from four salt water viromes  in CatchAll, resulting in a combined phage richness that was nearly equivalent to the sum of the richness of three component environments (Table 1). This result contrasted with the combined phage richness estimated by PHACCS, which showed fewer phage taxa in the mixed environments than in one of the component environments, indicating that the majority of phage taxa could be shared among environments .
We further explored this phenomenon by generating a mixed contig spectrum for seven non-medicated swine viromes, and again for four reclaimed water viromes. The mixed swine viromes showed an estimated richness just greater than the most rich component virome (155,468 ± 16,052; Table 1). The individual swine viromes were generated from the same six pigs over time, and so it is likely that a large part of the community would be shared among the viromes. This is reflected in the pooled-virome richness estimate being one-fifth of the sum of the richness of the component environments, and in the substantially decreased standard error of the richness estimate resulting from the increased sample size. The reclaimed water viromes are similarly related in that they all originated from the same wastewater treatment facility, and the mixed spectra richness estimate showed a similar trend (Table 1). Note that this trend does not hold when examining the statistically discounted richness estimates. This is because the high-diversity component is larger in the pooled sample, and so its removal after statistical estimation has a larger impact on the richness estimate than either its inclusion (no discounting) or prior removal during empirical discounting.
To test the effect of pooling two very different environments, we mixed one swine virome (Day 85) with one reclaimed water virome (effluent). The estimated richness (196,069) was about 40% greater than the richness of either component environment. Importantly, the standard error (±23,489) was also greater, suggesting that unlike in the mixed analyses of similar environments, the depth of coverage was not improved by pooling unlike samples. Our results suggest that the majority of inter-environmental phage taxa are not shared. This is aligned with current dogma for microbial biogeography indicating that both viral taxa and bacterial species are heterogeneously distributed based on habitat and spatial structure [23, 24].
It is tempting to compare the differences between the estimated numbers of phage taxa per environment in Table 1, such as noting that the discounted richness estimates for swine fecal viromes are roughly double the discounted richness estimates of reclaimed fresh water. However, it is impossible to draw conclusions because of the lack of depth and repetition of any given data set. Expanding the breadth and depth of phage metagenomic studies will improve inter-environmental comparisons and thus advance biological conclusions.
The statistical diversity estimation procedures implemented in CatchAll improve upon comparable previous implementations. The accuracy of any estimates of viral richness is unknown because the sampling of nature is so very, very sparse. Tests of accuracy in given communities with known diversity, or in simulated ones, can provide some perspective, but such results are not generalizable beyond the specific cases studied, and hence are limited. Instead, statisticians turn to general theoretical optimality principles, which underlie the numerous procedures employed by CatchAll to perform both parametric and nonparametric analyses. An additional improvement is that CatchAll provides confidence intervals that bound the uncertainty within the limits of the available data.
In addition to a sound statistical foundation, we employed discounting approaches to investigate the effect of potentially spurious low-frequency counts on richness estimates. The theory behind the statistically discounted approach was presented elsewhere , but this is its first application to multiple datasets. The empirically discounted estimates are new to the present manuscript. Discounting provides an option for estimating richness from samples that are suspected to contain spurious low-frequency observations. Further studies are needed to elucidate the effect of biological features, such as genetic mosaicism, on estimates of phage richness.
The non-discounted richness estimates reveal more viral species per environment than previous metagenomic-based estimates, and also greater consistency in the estimates between like environments. Additionally, analysis of pooled viromes from disparate environments showed the expected result: mixing increased both the richness estimate and the error associated with that richness. Increased depth of sequencing coverage will improve the accuracy of richness estimates, and technologies are quickly advancing to enable deep metagenomic sequencing. Improved richness estimates should dramatically improve the inferences possible in phage ecological studies.
Phage Communities from Contig Spectrum.
Angly F, Rodriguez-Brito B, Bangor D, McNairnie P, Breitbart M, Salamon P, Felts B, Nulton J, Mahaffy J, Rohwer F: PHACCS, an online tool for estimating the structure and diversity of uncultured viral communities using metagenomic information. BMC Bioinformatics. 2005, 6: 41-10.1186/1471-2105-6-41.
Nelson EJ, Harris JB, Morris JG, Calderwood SB, Camilli A: Cholera transmission: the host, pathogen and bacteriophage dynamic. Nat Rev Microbiol. 2009, 7: 693-702. 10.1038/nrmicro2204.
Jensen MA, Faruque SM, Mekalanos JJ, Levin BR: Modeling the role of bacteriophage in the control of cholera outbreaks. Proc Natl Acad Sci U S A. 2006, 103: 4652-4657. 10.1073/pnas.0600166103.
Wommack KE, Colwell RR: Virioplankton: viruses in aquatic ecosystems. Microbiol Mol Biol Rev. 2000, 64: 69-114. 10.1128/MMBR.64.1.69-114.2000.
Breitbart M, Salamon P, Andresen B, Mahaffy JM, Segall AM, Mead D, Azam F, Rohwer F: Genomic analysis of uncultured marine viral communities. Proc Natl Acad Sci U S A. 2002, 99: 14250-14255. 10.1073/pnas.202488399.
Angly FE, Felts B, Breitbart M, Salamon P, Edwards RA, Carlson C, Chan AM, Haynes M, Kelley S, Liu H, Mahaffy JM, Mueller JE, Nulton J, Olson R, Parsons R, Rayhawk S, Suttle CA, Rohwer F: The marine viromes of four oceanic regions. PLoS Biol. 2006, 4: e368-10.1371/journal.pbio.0040368.
Allen HK, Looft T, Bayles DO, Humphrey S, Levine UY, Alt D, Stanton TB: Antibiotics in feed induce prophages in swine fecal microbiomes. MBio. 2011, 2: e00260-11.
Bunge J, Woodard L, Bohning D, Foster JA, Connolly S, Allen HK: Estimating population diversity with CatchAll. Bioinformatics. 2012, 28: 1045-1047. 10.1093/bioinformatics/bts075.
Rosario K, Nilsson C, Lim YW, Ruan Y, Breitbart M: Metagenomic analysis of viruses in reclaimed water. Environ Microbiol. 2009, 11: 2806-2820. 10.1111/j.1462-2920.2009.01964.x.
Gomez-Alvarez V, Teal TK, Schmidt TM: Systematic artifacts in metagenomes from complex microbial communities. ISME J. 2009, 3: 1314-1317. 10.1038/ismej.2009.72.
Breitbart M, Haynes M, Kelley S, Angly F, Edwards RA, Felts B, Mahaffy JM, Mueller J, Nulton J, Rayhawk S, Rodriguez-Brito B, Salamon P, Rohwer F: Viral diversity and dynamics in an infant gut. Res Microbiol. 2008, 159: 367-373. 10.1016/j.resmic.2008.04.006.
Breitbart M, Hewson I, Felts B, Mahaffy JM, Nulton J, Salamon P, Rohwer F: Metagenomic analyses of an uncultured viral community from human feces. J Bacteriol. 2003, 185: 6220-6223. 10.1128/JB.185.20.6220-6223.2003.
Treangen TJ, Sommer DD, Angly FE, Koren S, Pop M: Next generation sequence assembly with AMOS. Curr Protoc Bioinform. 2011, 33: 11.8.1-11.8.18.
Sommer DD, Delcher AL, Salzberg SL, Pop M: Minimus: a fast, lightweight genome assembler. BMC Bioinformatics. 2007, 8: 64-10.1186/1471-2105-8-64.
Willner D, Furlan M, Haynes M, Schmieder R, Angly FE, Silva J, Tammadoni S, Nosrat B, Conrad D, Rohwer F: Metagenomic analysis of respiratory tract DNA viral communities in cystic fibrosis and non-cystic fibrosis individuals. PLoS One. 2009, 4: e7370-10.1371/journal.pone.0007370.
Seshadri R, Kravitz SA, Smarr L, Gilna P, Frazier M: CAMERA: a community resource for metagenomics. PLoS Biol. 2007, 5: e75-10.1371/journal.pbio.0050075.
Bunge J: Estimating the number of species with catchall. Pac Symp Biocomput. 2011, 11: 121-130.
Bunge J, Bohning D, Allen H, Foster JA: Estimating population diversity with unreliable low frequency counts. Pac Symp Biocomput. 2012, 12: 203-212.
Glass EM, Wilkening J, Wilke A, Antonopoulos D, Meyer F: Using the metagenomics RAST server (MG-RAST) for analyzing shotgun metagenomes. Cold Spring Harb Protoc. 2010, 2010: pdb.prot5368-10.1101/pdb.prot5368.
Sharon I, Battchikova N, Aro EM, Giglione C, Meinnel T, Glaser F, Pinter RY, Breitbart M, Rohwer F, Beja O: Comparative metagenomics of microbial traits within oceanic viral communities. ISME J. 2011, 5: 1178-1190. 10.1038/ismej.2011.2.
Casjens SR, Thuman-Commike PA: Evolution of mosaically related tailed bacteriophage genomes seen through the lens of phage P22 virion assembly. Virology. 2011, 411: 393-415. 10.1016/j.virol.2010.12.046.
Kunin V, Engelbrektson A, Ochman H, Hugenholtz P: Wrinkles in the rare biosphere: pyrosequencing errors can lead to artificial inflation of diversity estimates. Environ Microbiol. 2010, 12: 118-123. 10.1111/j.1462-2920.2009.02051.x.
Thurber RV: Current insights into phage biodiversity and biogeography. Curr Opin Microbiol. 2009, 12: 582-587. 10.1016/j.mib.2009.08.008.
Ramette A, Tiedje JM: Biogeography: an emerging cornerstone for understanding prokaryotic diversity, ecology, and evolution. Microb Ecol. 2007, 53: 197-207. 10.1007/s00248-005-5010-2.
The authors thank Linda Woodard and Samuel Humphrey for technical support, and Uri Levine, Thomas Casey, Brian Brunelle, Torey Looft and Patrick Schloss for helpful discussions or comments on the manuscript. JAF was partially supported by NIH COBRE grant P20RR16448, NIH INBRE grant P20RR016454 and NSF STC “BEACON Center for the Study of Evolution in Action” NSF STC DBI-0939454. Mention of trade names or commercial products in this publication is solely for the purpose of providing specific information and does not imply recommendation or endorsement by the U.S Department of Agriculture. USDA is an equal opportunity provider and employer.
The authors declare that they have no competing interests.
HKA analyzed data and drafted the manuscript. JAB conceptualized the new method and designed and performed analyses. JAF contributed to the development of the analysis. DOB performed analyses. TBS provided oversight of the work. All authors read and approved the final manuscript.
Electronic supplementary material
About this article
Cite this article
Allen, H.K., Bunge, J., Foster, J.A. et al. Estimation of viral richness from shotgun metagenomes using a frequency count approach. Microbiome 1, 5 (2013). https://doi.org/10.1186/2049-2618-1-5