- Open Access
PHACCS, an online tool for estimating the structure and diversity of uncultured viral communities using metagenomic information
© Angly et al; licensee BioMed Central Ltd. 2005
- Received: 18 December 2004
- Accepted: 02 March 2005
- Published: 02 March 2005
Phages, viruses that infect prokaryotes, are the most abundant microbes in the world. A major limitation to studying these viruses is the difficulty of cultivating the appropriate prokaryotic hosts. One way around this limitation is to directly clone and sequence shotgun libraries of uncultured viral communities (i.e., metagenomic analyses). PHACCS http://phage.sdsu.edu/phaccs, Phage Communities from Contig Spectrum, is an online bioinformatic tool to assess the biodiversity of uncultured viral communities. PHACCS uses the contig spectrum from shotgun DNA sequence assemblies to mathematically model the structure of viral communities and make predictions about diversity.
PHACCS builds models of possible community structure using a modified Lander-Waterman algorithm to predict the underlying contig spectrum. PHACCS finds the most appropriate structure model by optimizing the model parameters until the predicted contig spectrum is as close as possible to the experimental one. This model is the basis for making estimates of uncultured viral community richness, evenness, diversity index and abundance of the most abundant genotype.
PHACCS analysis of four different environmental phage communities suggests that the power law is an important rank-abundance form to describe uncultured viral community structure. The estimates support the fact that the four phage communities were extremely diverse and that phage community biodiversity and structure may be correlated with that of their hosts.
- Shotgun Library
- Viral Community
- Break Stick
- Average Genome Size
- Viral Metagenomes
Most environmental viruses are phages (a.k.a., bacteriophages) that infect prokaryotic cells, both Bacteria and Archaea. On average there are about ten phage particles per host cell . Extrapolations from the number of prokaryotes  make phages the most abundant biological entities in the biosphere with an estimated 1031 viral particles. By killing prokaryotes, phages can strongly impact microbial community biomass  and structure . Despite their importance, very little is known about phage biodiversity.
Traditionally, the study of environmental phage diversity, dynamics, and ecology requires growing prokaryotes on microbiology plates and infecting them with phages. However this standard technique is limited by the fact that only a small fraction of environmental microbes are readily cultured  and that each phage species generally only has a very narrow number of possible microbial hosts . In addition, even if it is possible to observe phages with an electron microscope, pictures are not sufficient to identify species because of the low taxonomic resolution of viral morphology. Cultivating and observing phages do not permit to assess environmental phage diversity.
Biodiversity is composed of richness, or total number of different species , and evenness, expressing the relative abundance of each species . The Shannon-Wiener index quantifies diversity as a single term combining richness and evenness . A high richness and high evenness together represent a high level of diversity.
A new approach to accessing natural microbial diversity is through the creation of shotgun sequence libraries from environmental metagenomes (sum of all genomes) [10–14], so that the genetic information of each genotype of the community is recorded, qualitatively (sequence) and quantitatively (abundance of each sequence). The community is analyzed by sequencing a part of the library. The metagenomic data used here is the contig spectrum, determined by assembly of environmental random shotgun DNA fragments. The contig spectrum is a vector containing the number of contigs (groups of overlapping sequences) of size q (number of sequences in the group) . The stringency of the assembly parameters can be varied so that only sequences belonging to the same genotype overlap. Thus, for one genotype, the bigger the contigs in the contig spectrum, the higher the number of copies and the more abundant this genotype. Based on this, the contig spectrum provides important information about the abundance and diversity of genotypes within a community.
In this work, we present PHACCS (PHAge Communities from Contig Spectrum), an online computational tool to assess the diversity and structure of environmental viral communities from the contig spectrum of shotgun sequence data. The PHACCS program and its predictions are first described and then used to analyze four environmental viral communities.
Platform and software
The standalone core mathematics for PHACCS consists of Matlab (MathWorks Inc., Natick, MA.) scripts that are partly based on the previous works [10–12]. A CGI (Common Gateway Interface) script written in PERL (Practical Extraction and Report Language) is used to input and output data from and to an HTML (Hyper Text Markup Language) interface. PHACCS was developed and tested on a Linux-based (2.6.6 kernel) personal computer running PERL 5.8.3 (with CGI module), Matlab 6.5.0, and Apache 2.0.50 web server.
Obtaining a contig spectrum
The input for PHACCS is the contig spectrum, a vector containing the number of q-contigs (groups of q overlapping sequences) from the in silico assembly of random shotgun DNA fragments. Detailed information about the way to get viral metagenomes and their contig spectrum can be found in [10–12]. Briefly, viral communities were isolated via tangential flow filtration and cesium chloride centrifugation, and their DNA was extracted. The DNA was randomly fragmented, used to create a linker amplified shotgun library  and clones were sequenced (between 500 and 1200 for studies [10–12]). The sequence assembly program Sequencher (Gene Codes Corp., Ann Arbor, MI.) was used to assemble phage sequences having at least 98% identity on at least 20 bp . The stringency of the assembly parameters was experimentally determined so that only fragments belonging to the same genotype assemble together. Closely related phage genomes (e.g., coliphages T3 and T7) can be discriminated using these parameters . The number of contigs of each size was then recorded to generate the contig spectrum. The number of sequences in the largest contig defines the contig spectrum degree.
Modified Lander-Waterman algorithm
PHACCS uses a modified version of the Lander-Waterman algorithm  to predict a contig spectrum from assumed population parameters. The original Lander-Waterman algorithm is a way of predicting the contig spectrum of a randomly fragmented genome (e.g., a single viral species) given: i) the length L of the genome, ii) the number N of DNA fragments studied, iii) the average size s of these fragments, and iv) the minimum overlap length o for the sequence assembly . Given this data, the predicted values of the following quantities are calculated:
Probability p of an overlap: p = 1 - e-Nx/Lwith x = s - o
Probability w q for a fragment to be part of a q-contig (overlap of q fragments):
w q = qpq - 1(1 - p)2
The modified Lander-Waterman algorithm is a generalization of the original algorithm to a group of M different genotypes (e.g., a whole viral community) . The predicted contig spectrum can be calculated as the sum of the contig spectra for each individual genotype i.
Expected number of fragments c q part of a q-contig:
w qi is the probability for a fragment to be part of a q-contig for the genotype i and n i is the expected number of fragments for the genotype i.
In this modified algorithm, since there are several genotypes, an assumption about their underlying distribution within the community in terms of abundance has to be made.
Relative rank-abundance forms
PHACCS offers six basic functional forms of relative rank-abundance for biological populations: the power law, logarithmic, exponential, broken stick, niche preemption, and lognormal distributions.
The first three functional forms are empirical models that were designed to describe an asymptotic drop-off in the abundance :
Power: n i = ai-bfor 1 ≤ i ≤ M
Logarithmic: n i = a(log(i + 1))-bfor 1 ≤ i ≤ M
Exponential: n i = ae-ibfor 1 ≤ i ≤ M
The parameter a represents the abundance of the most abundant genotype, b is a parameter related to the evenness, and M is the number of different genotypes in the community.
The broken stick function has only one parameter, M, and assumes a random distribution of resources, whereas in the niche preemption function, each species takes only a fraction k of the remaining resources in the environment.
The sixth functional form is the lognormal distribution. It is the most commonly used species distribution, with numerous theoretical justifications in the literature [20, 21]. The relationship is specified as species density versus abundance and needs to be transformed to give a rank-abundance relationship. Our rank-abundance form was obtained by dividing the area under the normal distribution with standard deviation σ into M equal area slices and associating an abundance n i with the i-th slice by calculating an average value for the abundance within the slice. The result is:
where erf is the error function and erf1 its inverse.
Modeling the viral community structure
The best descriptive model for a community structure is defined as the one with the smallest error. For each rank-abundance function tested, the global minimum for the error is found by optimizing the value of the function parameters.
The values of the error can be roughly interpreted as logarithms of odds ratios of the observed contigs being seen from community distributions of the specified forms. Thus a value of 0.1 for the difference in errors between two models corresponds to an odds ratio of e0.1 which is about 11:10 between the two models. This means that the model with the smallest error is about 10% more likely to give rise to the observed data.
Predicting the viral community diversity
For each rank-abundance form, the best model is used by PHACCS to assess diversity. The richness S is estimated as equal to the number of different genotypes M found in the community structure model. The abundance of the most abundant genotype is also directly determined from the model as the highest rank-abundance value. The Shannon-Wiener index, which is a measure for diversity, is calculated using the relative rank-abundance values r i = n i /N of all individual genotypes i :
Shannon-Wiener index H' (in nats):
The evenness is derived from H' :
Evenness E: E = H'/H max = H'/ln S
Comparison of four phage communities
Test data used for the study of the phage communities with PHACCS [10-12]. The average fragment sequence length was determined using Sequencher after sequence trimming (maximum one ambiguity on 99 bp at each extremity). A 98% identity for a minimal overlap length of 20 bp was used for sequence assembly with Sequencher to obtain the contig spectra. The average genome length was determined by pulse field gel electrophoresis [12, 22].
SP (Scripps Pier)
MB (Mission Bay)
MBSED (Mission Bay Sediments)
Contig spectrum *
1021 17 2 0 ...
841 13 2 0 ...
1152 2 0 ...
482 18 2 2 0 ...
Avg. community genome size
Avg. shotgun fragment length
Best abundance forms
Best descriptive rank-abundance form for the viral communities as determined by PHACCS. The error represents the variance weighted sum squared deviation between the experimental and the predicted contig spectra. For each community, the best descriptive function is the one that minimizes the error. The best fit obtained for each rank-abundance form was ranked according to the error in ascending order.
Phage community diversity and structure
PHACCS analyses are computer intensive. On a dual-Opteron™ server, the computation for the SP sample takes ~5 minutes. The broken stick and lognormal rank-abundance forms account for most of the computation time (data not shown). Increasing the range of genotypes to search dramatically increases the time needed to complete the analysis (data not shown).
PHACCS estimations about the virus community are: i) structure – best descriptive rank-abundance form, model equation and error, and ii) diversity – richness, evenness, abundance of the most abundant genotype, and Shannon-Wiener index. Graphic representations of the community structure and of the error minimization can also be displayed. The error provides information about which model has the best fit relative to the others for a given contig spectrum. For each type of distribution, the user is informed if the best model (i.e., the error's global minimum) has not been found using the given computation parameters.
Importance of the contig spectrum quality
Predictions by PHACCS are dependent on the quality of the contig spectrum input. The difference in error between two models can be small (Table 2) and using an inappropriate model can change the estimated diversity. For example, the predicted richness for the SP sample is about four times higher for the lognormal distribution than for the power law (data not shown). A useful contig spectrum requires that: i) the same clone be sequenced only once (remove all redundant clones), ii) the sequences be trimmed to remove ambiguities ("N"'s) and, iii) the assembly parameters be sufficiently stringent so that only sequences from the same genotype are part of the same contig (experimental determination by assembly of known sequences). All these experimental problems bias the observed occurrence of the DNA fragments, and thus the contig spectrum. Additionally, accurate community estimations are not to be expected if the contig spectrum only has a small degree (only small contigs) (e.g., MBSED, [1152 2 0 ...]). As a general rule, the higher the contig degree, the better the estimations, because the model fitting is done over a larger number of points. For the same reason, the number of trailing zeros in the contig spectrum is important. Adding zeros at the end of the contig spectrum will improve PHACCS predictions (e.g., 10 trailing zeros were used in the present analyses) but will also increase the computation time.
The way the contig spectrum is obtained leads to approximations of the viral diversity. In the samples analyzed here, only the DNA from viruses smaller than 0.22 μ m is collected. Larger viruses and RNA viruses are not represented in the shotgun library and in the resulting contig spectrum. The contig spectrum assembly parameters (98% identity on at least 20 bp for phages) are stringent enough to limit the number of false-contigs (contigs between DNA fragments from different genotypes), but may on the other side omit some true-contigs (DNA fragments that are designated as non-overlapping when they actually belong to the same genotype). Additionally, the present implementation of the Lander-Waterman algorithm assumes that all DNA fragments and all the genotypes have the same size. For these reasons, PHACCS estimates should be considered approximations.
Phage community structure and diversity
The comparative analysis of the four phage communities showed that the power law seems overall to be a powerful rank-abundance distribution to model phage community structure (Figure 2). A recent simple predator-prey model based on the observed marine phage-host dynamics explains how a power law distributed phage rank-abundance can be obtained from a modified Lokta-Volterra model . Before analyzing the viral samples with the contig spectrum approach, the number of viral genotypes in an environment was totally unknown. The viral communities turned out to be extremely diverse with estimated Shannon-Wiener diversity indices between 6.8 nats (fecal sample) and 8.9 nats (sediment sample) (Figure 2), representing diversity levels higher than for most bacterial communities . Because phages are specific predators, the structure and diversity of phage communities could be directly correlated to the structure and diversity of the coexisting microbial communities . Some facts seem to support this hypothesis.
First, the extreme diversity of the sediment viral community may reflect the higher diversity of the microbial communities found in sediments using automated rRNA intergenic spacer analysis (ARISA)  in comparison with seawater. Also, only a few hundred different bacterial species were reported in the human colon intestinal flora  using the 16s ribosomal DNA methodology, which could account for the relatively low phage richness in the fecal sample.
PHACCS is a web-based service that predicts community structure and diversity using the contig spectrum from metagenomic random shotgun sequence data. This methodology allows PHACCS to determine the mathematical model that most accurately reflects the underlying genotype abundance distribution (i.e., power law, logarithmic, exponential, broken stick, niche preemption, or lognormal distributions) and use it to makes estimates about the diversity of the communities, (i.e., richness, evenness, Shannon-Wiener index and abundance of most abundant genotype). Using uncultured environmental viral samples, PHACCS has been used to confirm that phage biodiversity is higher than in any previously observed community and that the structure of viral communities may closely follow that of their hosts. PHACCS is designed for biologists to mathematically analyze their viral shotgun libraries and gain insights about viral ecology and population dynamics.
Project name: PHACCS – PHAge Communities from Contig Spectrum
Project home page: http://phage.sdsu.edu/phaccs
Operating system(s): Unix based system for PHACCS and its web interface. Platform independent for PHACCS core.
Programming language: Matlab (for the core scripts) and Perl
Other requirements: For the interface: CGI.pm Perl module, ppmtogif, webserver program (to use PHACCS as a web service)
License: GNU GPL
This work was supported by NSF 0316518 (FR) and an EPA STAR fellowship (MB). We thank Ines Thiele, Steve Rayhawk and Cynthia Steiner for useful suggestions and comments.
- Wommack KE, Colwell RR: Virioplankton: Viruses in aquatic ecosystems. Microbiol Mol Biol Rev 2000, 64: 69–114. 10.1128/MMBR.64.1.69-114.2000PubMed CentralView ArticlePubMedGoogle Scholar
- Whitman WB, Coleman DC, Wiebe WJ: Prokaryotes: The unseen majority. Proc Natl Acad Sci USA 1998, 95: 6578–6583. 10.1073/pnas.95.12.6578PubMed CentralView ArticlePubMedGoogle Scholar
- Wilcox RM, Fuhrman JA: Bacterial viruses in coastal seawater: lytic rather than lysogenic production. Mar Ecol Prog Ser 1994, 114: 35–45.View ArticleGoogle Scholar
- Thingstad TF: Elements of a theory for the mechanisms controlling abundance, diversity, and biogeochemical role of lytic bacterial viruses in aquatic systems. Limnol Oceanogr 2000, 45: 1320–1328.View ArticleGoogle Scholar
- Staley JT, Konopka A: Measurement of in situ activities of nonphotosynthetic microorganisms in aquatic and terrestrial habitats. Annu Rev Microbiol 1985, 39: 346. 10.1146/annurev.mi.39.100185.001541View ArticleGoogle Scholar
- Ackermann H-W, DuBow MS: Viruses of prokaryotes; Volume I: General properties of bacteriophages. CRC Press, Inc; 1987:202.Google Scholar
- McIntosh RI: An index of diversity and the relation of certain concepts to diversity. Ecology 1967, 48: 392–404.View ArticleGoogle Scholar
- Hill MO: Diversity and evenness: a unifying notation and its consequences. Ecology 1973, 54: 427–431.View ArticleGoogle Scholar
- Shannon CE, Weaver W: The mathematical theory of communication. Univ of Illinois Press, Urbana; 1963.Google Scholar
- Breitbart M, Salamon P, Andresen P, Mahaffy JM, Segall AM, Mead D, Azam F, Rohwer F: Genomic analysis of uncultured marine viral communities. Proc Natl Acad Sci USA 2002, 99: 14250–5. 10.1073/pnas.202488399PubMed CentralView ArticlePubMedGoogle Scholar
- Breitbart M, Felts B, Kelley S, Mahaffy JM, Nulton J, Salamon P, Rohwer F: Diversity and population structure of a near-shore marine sediment community. Proc R Soc Lond 2004, 271: 565–574. 10.1098/rspb.2003.2628View ArticleGoogle Scholar
- Breitbart M, Hewson I, Felts B, Mahaffy JM, Nulton J, Salamon P, Rohwer F: Metagenomic analysis of an uncultured viral community from human feces. J Bacteriol 2003, 185: 6620–6223. 10.1128/JB.185.20.6220-6223.2003View ArticleGoogle Scholar
- Tyson GW, Chapman J, Hugenholtz P, Allen EE, Bram RJ, Richardson PM, Solovyev VV, Rubin EM, Rokhsar DS, Banfield JF: Community structure and metabolism through reconstruction of microbial genomes from the environment. Nature 2004, 428: 37–43. 10.1038/nature02340View ArticlePubMedGoogle Scholar
- Venter JC, Remington K, Heidelberg JF, Halpern AL, Rusch D, Eisen JA, Wu D, Paulsen I, Nelson KE, Nelson W, Fouts DE, Levy S, Knap AH, Lomas MW, Nealson K, White O, Peterson J, Hoffman J, Parsons R, Baden-Tillson H, Pfannkoch C, Rogers YH, Smith HO: Environmental genome shotgun sequencing of the Sargasso Sea. Science 2004, 304: 66–74. 10.1126/science.1093857View ArticlePubMedGoogle Scholar
- Rohwer F: Construction and Analyses of Linker-Amplified Shotgun Libraries (LASLs).[http://www.sci.sdsu.edu/PHAGE/LASL/index.htm]
- Lander ES, Waterman MS: Genomic mapping by fingerprinting random clones: a mathematical analysis. Genomics 1988, 2: 231–239. 10.1016/0888-7543(88)90007-9View ArticlePubMedGoogle Scholar
- Ulrich W: Models of relative abundance distributions I: Model fitting by stochastic models. Pol J Ecol 2001, 49: 145–157.Google Scholar
- Pielou EC: Ecological Diversity. New York: John Wiley & Sons, Inc; 1975.Google Scholar
- McArthur RH: On the relative abundance of bird species. Proc Nat Acad Sci USA 1957, 43: 293–295.View ArticleGoogle Scholar
- Sugihara G: Minimal community structure: an explanation of species abundance patterns. Am Nat 1980, 116: 770–187. 10.1086/283669View ArticleGoogle Scholar
- McGill BJ: A test of the unified neutral theory of biodiversity. Nature 2003, 422: 881–885. 10.1038/nature01583View ArticlePubMedGoogle Scholar
- Steward GF, Montiel JL, Azam F: Genome size distributions indicate variability and similarities among marine viral assemblages from diverse environments. Limnol Oceanogr 2000, 45: 1697–1706.View ArticleGoogle Scholar
- Hoffmann KH, Rodriguez-Brito B, Breitbart M, Bangor D, Angly F, Felts B, Nulton J, Rohwer F, Salamon P: Power law rank-abundance relationships in marine phage populations. , in press.Google Scholar
- Hewson I, Vargo GA, Fuhrman JA: Bacterial diversity in shallow oligotrophic marine benthos and overlying waters: effects of virus infection, containment, and nutrient enrichment. Microb Ecol 2003, 46: 322–36. 10.1007/s00248-002-1067-3View ArticlePubMedGoogle Scholar
- Mai V, Morris JG Jr: Colonic Bacterial flora: changing understandings in the molecular age. J Nutr 2004, 134: 459–464.PubMedGoogle Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.