{'fraction_non_alphanumeric': 0.03604274094944447, 'fraction_numerical': 0.01950986125139546, 'mean_word_length': 5.575148549458231, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Metagenomic Analysis Suggests Modern Freshwater Microbialites Harbor a Distinct Core Microbial Community

Modern microbialites are complex microbial communities that interface with abiotic factors to form carbonate-rich organosedimentary structures whose ancestors provide the earliest evidence of life. Past studies primarily on marine microbialites have inventoried diverse taxa and metabolic pathways, but it is unclear which of these are members of the microbialite community and which are introduced from adjacent environments. Here we control for these factors by sampling the surrounding water and nearby sediment, in addition to the microbialites and use a metagenomics approach to interrogate the microbial community. Our findings suggest that the Pavilion Lake microbialite community profile, metabolic potential and pathway distributions are distinct from those in the neighboring sediments and water. Based on RefSeq classification, members of the Proteobacteria (e.g., alpha and delta classes) were the dominant taxa in the microbialites, and possessed novel functional guilds associated with the metabolism of heavy metals, antibiotic resistance, primary alcohol biosynthesis and urea metabolism; the latter may help drive biomineralization. Urea metabolism within Pavilion Lake microbialites is a feature not previously associated in other microbialites. The microbialite communities were also significantly enriched for cyanobacteria and acidobacteria, which likely play an important role in biomineralization. Additional findings suggest that Pavilion Lake microbialites are under viral selection as genes associated with viral infection (e.g CRISPR-Cas, phage shock and phage excision) are abundant within the microbialite metagenomes. The morphology of Pavilion Lake microbialites changes dramatically with depth; yet, metagenomic data did not vary significantly by morphology or depth, indicating that microbialite morphology is altered by other factors, perhaps transcriptional differences or abiotic conditions. This work provides a comprehensive metagenomic perspective of the interactions and differences between microbialites and their surrounding environment, and reveals the distinct nature of these complex communities.


INTRODUCTION
Microbialites are a specialized group of microbial mats that lithify carbonate-rich structures, and include thrombolites that consist of structures with unlaminated clots and stromatolites that have laminated layers (Burne and Moore, 1987;Perry et al., 2007). Fossil evidence points to microbialites being representative of the oldest known persistent ecosystems (Grotzinger and Knoll, 1999;Schopf, 2006). They are an unparalleled system in which to investigate biochemical cycling that may be representative of the earliest known complex microbial communities (Dupraz et al., 2009).
A host of biological factors are favorable to microbialite formation, such as the presence of exopolysaccaride (EPS)rich cyanobacterial mats, which serve as a location of mineral nucleation and provide a heterotrophic microenvironment favorable for organomineralization via dissimilatory sulfate reduction (Dupraz and Visscher, 2005;Dupraz et al., 2009). Cyanobacterial photosynthetic activity increases pH in the surrounding geochemical environment, promoting precipitation by raising the calcium carbonate saturation index critical to the formation process of microbialites (e.g., Merz, 1992;Dupraz et al., 2009). Microbialites have been purported to form via carbonate precipitation by the benthic community, as well as by trapping detritus from sediment and the overlying water column (Burne and Moore, 1987;Dupraz and Visscher, 2005).
Despite the apparent reliance of microbialites on biotic input from the surrounding environment, there is currently a scarcity of data comparing microbialite communities with those of the sediments or water. Such a comparison allows for the identification of microbialite-specific components that may not be obvious when examining microbialite communities in isolation. Exploring the genetic differences between microbialite communities and those in the surrounding habitats requires identifying the relative abundance of taxa and their metabolic potential. To avoid distorting these ratios, DNA was extracted and unlike in other metagenomic studies of microbialites (Breitbart et al., 2009), sequenced without amplification.
Many studies have focused on examining the abundance and diversity of freshwater microbialites using 16S rDNA sequencing but few metagenomic studies exist. Diversity studies using 16S rDNA amplicons on freshwater microbialites include Lake Van (López-García et al., 2005), Lake Alchichica (Couradeau et al., 2011), Cuatro Ciénegas (Centeno et al., 2012), Pavilion Lake (Chan et al., 2014;Russell et al., 2014), and Ruidera Pools (Santos et al., 2010). While 16S rDNA sequencing is able to obtain the relative abundance of taxa and diversity of taxa; it is unable to capture the metabolic potential or the functional gene abundance of an ecosystem. Metabolic and functional potential obtained by metagenomics allow for functional gene inventories which can be used as databases for further investigations using other omics (e.g., metaproteomics) (Cantarel et al., 2011). Prior metagenomics studies on microbialites have focused primarily on marine environments (Khodadad and Foster, 2012;Mobberley et al., 2013;Ruvindy et al., 2015) with the exception of one tropical freshwater system (Breitbart et al., 2009) and one subarctic abandoned open pit mine . In this study, we sequenced total genomic DNA from cold temperate freshwater microbialites, as well as from the nearby sediment and water, to identify constituent taxa and infer their metabolic functional potential.
Sampling was conducted in Pavilion Lake, in southeastern British Columbia, Canada (50.8 • N, 121.7 • W). The lake is dimictic, circumneutral (median pH 8.3; mean calcium carbonate, 182 mg L −1 ), and oligotrophic (mean total phosphorus, 3.3 μg L −1 ). Further limnological details of Pavilion Lake are given in Lim et al. (2009). The microbialites are primarily calcite thrombolites, covered in a thin (∼5 mm) microbial mat, that change in morphotype with depth; at ∼10 m they resemble shallow domes, at ∼20 m they resemble cabbage heads, at 25 m they consist of conical outcroppings, and at deeper depths they possess mound structures (Figure 1; Laval et al., 2000). However, whether morphological changes in the microbialites are associated with changes in community structure or metabolic potential is not well constrained.
Data suggest that photosynthetically induced alkalinization is a major driver of recent carbonate precipitation in shallow Pavilion Lake microbialites (Brady et al., 2010). Two recent 16S studies of Pavilion Lake microbialites indicated that cyanobacteria, including members of the genera Acaryochloris, Leptolyngbya, Microcoleus, and Pseudanabaena, are dominant oxygenic photoautotrophic members (Chan et al., 2014;Russell et al., 2014). Moreover, elevated O 2 concentrations, pH and δ 13 C carbonate values within surface microbial mats and cyanobacterial rich nodules from microbialites at < 20 m depth indicate photosynthetic influence on carbonate that is being precipitated (Brady et al., 2010. Whether biomineralization in this system is strictly a photosynthetic process or a mixture of heterotrophic and photosynthetic processes remains unconstrained. In addition to challenges associated with elucidating the role of bacteria and eukarya in the formation of microbialite structures, the role of viruses in microbialite communities has remained elusive. Viruses are the most prevalent "organisms" on Earth, with an estimated 10 30 viruses in the ocean (Suttle, 2005). Through cell lysis, they play a role in carbon cycling on a global scale (Suttle, 2005). Metagenomic data for the viral fraction have been published for marine (e.g., Highbourne Cay) and freshwater microbialites (e.g., Cuatro Cienegás) (Desnues et al., 2008). However, because the surrounding water and sediments were not sampled, it is unclear whether the viral taxa were FIGURE 1 | Pavilion Lake microbialite morphology as a function of sampling depth in meters. The scale bar is ∼1 m (left) and ∼15 cm (right).
specifically associated with the microbialites, or were derived from the surrounding environments.
In this contribution, a metagenomic approach was used to uncover the metabolic potential that is specifically associated with microbialites. We examine the novel metabolic potential associated with Pavilion Lake microbialites and investigate whether metabolic potential, not solely taxa, changes as a function of microbialite morphology. We also explore whether heterotrophic or phototrophic pathways dominate the microbialite functional metabolic potential in association with carbonate precipitation, and examine virus-host whole community interactions. As well, we address the question of whether the microbialite communities are distinct from those found in other microbialite systems and in the adjacent water and sediment.

Sample Collection
Samples were collected from Pavilion Lake (50.86 • N, 121.74 • W) during the summers of 2010 and 2011. Triplicate representative microbialites (∼10 kg), were recovered from each collection site (Lim et al., 2011)  Sediment samples, adjacent to the microbialites (∼20 g of the surface layer; 10, 20, 25 m depths; 2011) were collected into sterile bottles at the same time by divers. At the lake surface, microbialite and sediment samples were immediately placed into insulated containers filled with cold lakewater to maintain in situ temperatures until samples were processed. At the field lab, each microbialite was weighed, documented and apportioned for molecular analysis. Replicate sediment samples were pelleted by centrifugation (5000 × g). The overlying lakewater was removed and the sediment pellets flash frozen in liquid nitrogen and transported back to the lab in a liquid nitrogen vapor shipper for downstream processing.
Water adjacent to the microbialites (∼100 L) was collected from each depth using a Niskin water sampler (2010) or a diver guided hose at the collection site that was connected to a pistonpump in a boat (2011). Surface water samples (∼1 m depth) were collected using a submersible pump. Each water sample was filtered in series through 120-μm pore-size Nitex R screening to remove large plankton, and 1.2-μm pore-size glass-fiber, followed by 0.45 and 0.22-μm pore-size Durapore polyvinylidene difluoride (PVDF) filters (Millipore, Bedford, MA, USA) (Suttle et al., 1991). Filters were frozen in the field and transported back to the lab in a liquid nitrogen vapor shipper.

DNA Extraction
To sample the microbialite associated microbial communities, a sterile razor blade was used to scrape off 3 to 10 mm (∼5 g) across the surface of three morphologically similar microbialites collected at each depth. DNA was extracted on-site using a PowerMax R Soil DNA Isolation Kit (Mobio, Carlsbad, CA, USA) then flash frozen in liquid nitrogen. Replicate microbialite scrapings were placed into sterile jars and frozen on-site in liquid nitrogen. Frozen samples were transported back to the lab in a liquid nitrogen vapor shipper and stored at -80 • C until needed. DNA from frozen samples were extracted using cetyl trimethyl ammonium bromide (CTAB; Untergasser, 2008).
To ascertain the microbial community from the water column (size fraction between 0.2 and 120-μm), DNA was extracted from half of each glass-fiber, 0.45 and 0.22-μm pore-size filter using a PowerWater R DNA Isolation Kit (Mobio, Carlsbad, CA, USA). DNA was extracted from the other half of each filter using the CTAB method (Untergasser, 2008).
Sediment DNA was extracted from triplicate subsamples (∼5 g) using a PowerMax R Soil DNA Isolation Kit (Mobio, Carlsbad, CA, USA). Replicate sediment pellets were also extracted using the CTAB method. Two DNA extraction methods were employed for all samples to minimize extraction biases.
DNA concentrations were determined on-site using a Nanodrop-3300 micro-fluorospectrometer and the Quant-iT TM PicoGreen R dsDNA Assay Kit (ThermoFisher, Wilmington, DE, USA). Nucleic acid quality was determined by absorbance (260/280 and 260/230) using a Nanodrop-1000 (ThermoFisher, Wilmington, DE). CTAB and MoBio DNA extractions were pooled (50:50) by equivalent DNA to reduce extraction bias and then used for library construction.

Metagenomic Library Preparation: 454 FLX Titanium and Illumina HiSeq/MiSeq
Libraries for 454 FLX Titanium sequencing were constructed using random DNA shearing with a Bioruptor (Diagenode Denville, NJ, USA). Fragments were polished and blunt-end ligated (NEBNext DNA Library Prep Kit, New England Biolabs, Ipswich, MA, USA) to in-house Multiplex Identifier barcode oligos (IDT, Coralville, IA, USA), with small fragments removed by magnetic beads (Beckman Coulter, Danvers, MA, USA). The libraries were quantified using a digital PCR quantified standard curve (White III et al., 2009), diluted, and pooled for 454 pyrosequencing with Titanium chemistry (The Centre for Applied Genomics, SickKids Hospital, Toronto, ON, Canada).

Metagenomic Data Assembly and Analysis
The raw sequencing data were processed as follows. For the 454 data, the raw SFF files were converted to FASTQ format and binned by molecular barcode (MID) using a custom Perl script. Barcodes were removed by Tagcleaner (Schmieder et al., 2010) and sequences cleaned for low quality and homopolymers using PRINSEQ (Schmieder and Edwards, 2011). The Illumina data were extracted and demultiplexed using the CASAVA pipeline v1.8 (Illumina, San Diego, CA, USA), and the PhiX spike-in used for sequencing quality control was screened using Bowtie2 (version 2.1.0; Langmead and Salzberg, 2012) then removed using Picard tools 1 (version 1.90; White III and Suttle, 2013;White III et al., 2013a,b).
The resulting 454 FLX titanium reads, Illumina overlapping merged reads and Illumina non-overlapping reads from replicate libraries were combined and assembled (kmer size: 39) using the Ray DeNovo assembler (Boisvert et al., 2010(Boisvert et al., , 2012. Illumina sequencing compensates for the error-prone homopolymers of 454, while 454 compensates for Illumina's GC bias and substitution errors (Bentley et al., 2008). A hybrid of the two technologies provides a lower chance of obtaining the same sequencing error and results in higher quality assembly at lower cost (Aury et al., 2008). In total, 446 Mbp and 17 Mbp of assembled contigs were obtained from the microbialites and filters (Table 1), respectively. Surface (∼1 m) and 10 m water metagenomic reads were pooled at assembly step to yield >15 k contigs for further comparison. Sediment metagenomic data (84 Mbp in total) resulted in a low numerical (<15 k) yield of contigs; hence, the unassembled paired-end reads were extended for overlap and pooled with unextended reads for further analysis ( Table 1). Metagenomic rapid annotations using MG-RAST were used for contig annotation (Meyer et al., 2008). MG-RAST annotation of the contigs used BLAT (BLAST-like alignment tool) annotations based on hierarchical classification against SEED subsystems 2 and RefSeq databases 3 with a minimum E-value cutoff of 10 −5 , a minimum percent identity cutoff of 60%, and a minimum alignment length cutoff of 50 base pairs. MetaCyc 4 annotations were provided by MetaPathways, a modular pipeline for gene prediction and annotation that uses pathway tools and the MetaCyc database to construct environmental pathway/genome databases (ePGBDs; Konwar et al., 2013). Metapathways using the LAST (local alignment search tool) for annotations of ORFs with a minimum of 180 bp and minimum alignment length cutoff of 50 bp (Kiełbasa et al., 2011). MetaCyc pathway comparison Venn diagrams were based on normalized pathway size and number of open reading frames (ORFs) associated with each pathway using R, then plotted using ggplot2 (Wickham, 2009).
Statistical analysis was completed using statistical analysis of metagenomic profiles (STAMP) and R (Parks and Beiko, 2010;R Development Core Team, 2015). STAMP and R were used to parse MG-RAST data for RefSeq (class level) and SEED subsystems (level I to function) results. The STAMP ANOVAs (including Principal Component Analysis, PCA) were completed using multiple groups, post-hoc tests (Tukey-Kramer at 0.95), an effect size (Eta-squared) and multiple test correction using Benjamini-Hochberg FDR (false discovery rate) procedure. The RefSeq and SEED classifications were normalized for each sample using count-relative abundances and total ORFs obtained per metagenome. PCA for the normalized RefSeq and SEED classifications used R libraries Ecodist (Dissimilarity-based functions for ecological analysis), and pvclust (Hierarchical Clustering with P-values via Multiscale Bootstrap Resampling) using ward clustering and the Bray-Curtis distance matrix at a thousand replicates (Suzuki and Shimodaira, 2006). The PCA for the normalized RefSeq and SEED classifications were plotted using R libraries ggplot2 and a dotplot was created using R libraries Reshape2, using the melt function, then plotted using ggplot2 (Wickham, 2009).

Metagenomic Data Depositing
All the data used in this study is freely available from MG-RAST 5 . The data is deposited in the project name Pavilion Lake surrounding environment as PLsfcFil (ID 4532785.

Microbialite Communities Differ from the Surrounding Environment Communities
The microbial community structure and metabolic potential of Pavilion Lake microbialites were statistically different from those in the surrounding environment (e.g., water and sediment metagenomes), based on principle component analyses of RefSeq taxonomic classifications (Figure 2A), SEED (Figure 2C), and MetaCyc functional gene assignments. STAMP ANOVA of the RefSeq classifications identified thirteen bacterial classes that were significantly enriched in microbialites over the surrounding environment ( Table 2, p < 0.01). ANOVA using STAMP on the highest level classification (level I) in the SEED database indicates that membrane transport, aromatic metabolism, motility, potassium metabolism, cell signaling and virulence genes are significantly enriched in microbialites over the surrounding environment ( Table 3, p < 0.05). MetaCyc functional gene assignments suggest many shared pathways (263) among samples from the water (filters), microbialites and sediments with 246 pathways distinct to Pavilion microbialites ( Figure 2D). These observations support the idea that microbialite associated microbes are distinct and are not being seeded or introduced (at least not recently), from surrounding environments.
The microbial communities and metabolic potential of the microbialites differed between the sediment and water samples. Compared to the microbialites, the sediment metagenomic data had more sequences assigned to the taxonomic groups Nitrospirae, Betaproteobacteria and Spirochaetia; whereas, metagenomic data from the water had more sequences assigned to Betaproteobacteria, Bacterioidetes, Verrucomicrobia, and phototrophic eukaryotes (e.g., Chlorophyceae; Figure 2B). Although the depth of sequences was not the same across  microbialites, sediments and water, it was adequate to clearly show that the microbialite community was distinct from those in the surrounding environments. These findings are consistent with previous works that demonstrate fundamental differences in microbial taxa between microbialite-associated communities and others. Russell et al. (2014) found taxonomically distinct microbial communities in non-lithifying soft-mat biofilms and microbialites in Pavilion Lake. As well, metagenomic  analysis of marine microbialites in Highbourne Cay showed distinctly different communities associated with lithifying and non-lithifying microbial mats (Khodadad and Foster, 2012)

Core Microbialite Microbial Community Structure and Metabolic Potential
Microbialite morphology in Pavilion Lake changes predictably with depth, however the metabolic potential and microbial community remains similar. PCA of RefSeq (Figure 2A) and SEED ( Figure 2C) classifications indicate that the microbial community and metabolic potential of microbialite metagenomes cluster closely together, regardless of morphology or depth ( Figure 3D). Across morphologies, >80% of the MetaCyc pathways predicted by the microbialite metagenomes are shared (596, Figure 3F), with few (<30) distinct pathways within a Pavilion Lake microbialite morphotype.
Based on RefSeq taxonomic classification ANOVA using STAMP, the microbialites of Pavilion Lake were dominated by sequences assigned to Proteobacteria and Acidobacteria ( Figure 2B). For example, sequences assigned to the classes Alphaproteobacteria, Deltaproteobacteria, Acidobacteriia, and Gloeobacteria were significantly more abundant in microbialite metagenomes than in the water or sediment metagenomes ( Table 2; p < 0.05). The dominance of sequences associated with members of the phyla Proteobacteria (mainly Alphaproteobacteria and Deltaproteobacteria classes, Figure 2B) is consistent with results from other marine and freshwater microbialite communities (Havemann and Foster, 2008;Breitbart et al., 2009;Goh et al., 2009;Khodadad and Foster, 2012;Mobberley et al., 2013), suggesting that despite geographical and environmental differences, microbialite microbial communities have similar FIGURE 3 | Pavilion Lake microbial community composition and metabolic potential across microbialite morphologies. Microbialite metagenomes are listed as a function of depth in meters. (A) Dotplot of the normalized SEED subsystem functions relating to urea metabolism (e.g., urease, ABC transport), heavy metal detoxification (e.g., efflux, resistance), antibiotic resistance (e.g beta-lactamases), and cyanobacteria related functions (e.g., cyanoglobin, cyanophycinase, copper homeostasis) in log relative abundances. (B) Dotplot of the normalized MetaCyc pathways relating to urea metabolism, sulfite oxidation, dissimilatory sulfate reduction, heavy metal detoxification (e.g., arsenite/arsenate oxidation/reduction, phenylmercury acetate metabolism), hydrogen production, primary alcohol fermentation/degradation in log relative abundances. members suggesting a globally shared microbial community structure.
Deltaproteobacterial associated sequences within the microbialite metagenomes were assigned to genera of dissimilatory sulfate reducing (e.g., Desulfobacterium and Desulfovibrio) and heterotrophic (e.g., Myxococcus) bacteria ( Figure 3C). MetaCyc dissimilatory sulfate pathways were abundant across the different microbialite morphologies in Pavilion Lake (Figure 3B). Sulfate-reducing deltaproteobacteria are often found where carbonates precipitate, and are important drivers of the "alkalinity engine, " by pushing the saturation index via increasing alkalinity (Gallagher et al., 2012). Hydrogen production and formate oxidation to carbon dioxide are predicted by the microbialite metagenomes ( Figure 3B). Potential electron donors for sulfate reducing deltaproteobacteria in Pavilion Lake microbialites include acetate, lactate, hydrogen, and formate. Whether sulfate reduction helps or hinders carbonate precipitation depends on the electron donor; hydrogen and formate likely promote precipitation, whereas, other organic carbon sources likely lead to dissolution (Gallagher et al., 2012). Future stable isotope probing studies could reveal which compounds are used as electron donors by the sulfate-reducers. Myxococcus spp. are abundant in a variety of microbialite-forming systems and can directly precipitate carbonate through the release of ammonium, which can increase alkalinity favoring carbonate precipitation (Ben Chekroun et al., 2004;Jimenez-Lopez et al., 2011). Analysis of the Pavilion Lake microbialite metagenomes supports prior metagenomic and amplicon investigations of microbialites that show members of the Deltaproteobacteria include dissimilatory sulfate-reducers (Havemann and Foster, 2008;Breitbart et al., 2009;Goh et al., 2009;Khodadad and Foster, 2012;Mobberley et al., 2013;Wong et al., 2015).
Sequences associated with filamentous cyanobacterial matbuilders from the genera Anabaena, Lyngbya, Microcoleus, Nostoc, Oscillatoria and the planktonic Cyanothece and Acrayochoris were found in all microbialite morphologies ( Figure 3C). Pathways for synthesis of cyanoglobin and cyanophycin, as well as copper metabolism, were associated with cyanobacterial mat-builders in all microbialites ( Figure 3B). Cyanoglobin is a peripheral membrane protein that binds oxygen with high affinity, is highly expressed under low oxygen and could be restricted to some strains of Nostoc sp. and Anabaena sp. (Hill et al., 1996). Cyanophycin is formed in filamentous cyanobacteria in response to low or changing DIC to O 2 ratios (Liang et al., 2014). Copper homeostasis genes were abundant in microbialites, which is common for cyanobacterial derived mats, as copper is essential for growth (Varin et al., 2012) but also toxic at levels ≥10 mM (Burnat et al., 2009).
The microbialite metagenome indicates that the metabolic potential of filamentous cyanobacterial mats is adaptive to metal homeostasis (e.g., copper), as well as carbon and oxygen limitation (e.g., cyanoglobin and cyanophycin).

Novel Metabolic Potential Within Microbialites
Urealytic metabolism has been hypothesized to be involved in microbialite formation due to its carbonate precipitating effects, but its detection in microbialites has remained elusive (Castanier et al., 1999). MetaCyc and SEED subsystems indicate that urea ABC transporters, arginase and ureases are found in similar abundances across Pavilion Lake microbialites (Figures 3A,B), implying the presence of urea metabolism which may be playing a role in precipitation. Gamma and Deltaproteobacteria specific urease beta subunits and urease accessory proteins (UreD/F) have only been identified in the Pavilion Lake microbialite metagenomes. The linkage of urease related genes to Proteobacteria was unexpected due to the strong experimental evidence that Firmicutes (mainly Bacillus sp.) are the dominant taxa contributing urease related genes (Boquet et al., 1973;Hammes et al., 2003;Lee, 2003;Dick et al., 2006;Dhami et al., 2013).
Antibiotic and heavy-metal resistance pathways associated with Proteobacteria were found within the microbialites based on RefSeq classification (Figures 3A,B). These included antibiotic resistance pathways such as beta-lactamases (class A) that were assigned to the Alpha, Beta, and Gamma classes of Proteobacteria (Figure 2A). Genes related to antibiotic resistance could be in response to toxic organic molecules produced by cyanobacterial mats (Neilan et al., 2013). SEED functions and MetaCyc pathways related to heavy-metal detoxification were abundant in microbialites ( Figure 3A). The occurrence of cobalt-zinc-cadmium resistance proteins, efflux pump proteins, phenylmercury acetate degradation, and chromate resistance was similar across morphologies while arsenite oxidation and arsenate reduction pathways were not found at depths deeper than 25 m ( Figure 3B). Heavy-metal resistance contigs were taxonomically assigned to Alpha, Beta and Gamma classes of Proteobacteria. Pavilion Lake has low levels of zinc (0.01-0.03 mg L −1 ) and undetectable levels of cobalt, iron, arsenic and cadmium ). Heavy-metal resistance genes may be involved in resistance, homeostasis or sequestration of metals. Antibiotic resistance has also been linked to heavy-metal stress, suggesting that resistance to one can lead to resistance to the other in complex bacterial communities (Nisanian et al., 2014).
Recently published Shark Bay microbialite metagenomes suggest high prevalence of genes associated with heavy-metal resistance including genes for arsenic metabolism (e.g., reductase and resistance genes; Ruvindy et al., 2015). Arsenite oxidation and arsenate reduction genes were also found amongst MetaCyc pathways in only the 10 to 20 m microbialites in Pavilion Lake ( Figure 3B). Arsenic cycling has been suggested to be a prominent feature in ancient microbial mats over 2.7 billion years old (Sforna et al., 2014). Our data from Pavilion Lake microbialites suggest that heavy-metal resistance could be a general feature of microbialites globally, which may also provide cross-protection against antibiotics (Nisanian et al., 2014).
The metabolic potential of Pavilion Lake microbialites predict primary alcohol fermentation pathways (e.g., butanol and ethanol biosynthesis) ( Figure 3B) based on genes that are taxonomically assigned to Alpha-and Beta-proteobacteria. Pyruvate, phytol, and chitin fermentation appear to be the main predicted pathways for the generation of primary alcohols (e.g., ethanol, butanol). Primary alcohol fermentation has been linked to microbialite dissolution; however, fermentation also provides substrates that fuel dissimilatory sulfate reduction, which can precipitate carbonate (Dupraz and Visscher, 2005;Gallagher et al., 2012) and which could offset carbonate lost by fermentation. Further stable-isotope experiments are needed to confirm the metabolic potential of primary alcohol fermentation predicted by the microbialite metagenomes. Although not previously recognized, members of the Proteobacteria appear to be major constituents of Pavilion Lake microbialites, potentially providing important metabolic roles, such as resistance to antibiotics and heavy-metals, and primary alcohol fermentation. Further investigation into the nature of their role in microbialite formation is warranted.

Photosynthetic and Heterotrophic Metabolic Potential Associated with Carbonate Precipitation in Pavilion Lake
The metabolic potential of Pavilion Lake microbialites appears to be dominated by heterotrophy relative to phototrophy. Sequences related to photosynthesis, including those encoding photosystems and electron transport proteins, were ranked 28th out of 29th possible SEED subsystems ( Figure 3D). In contrast, pathways related to carbohydrate metabolism (carbon-related pathways) were ranked second and accounted for ∼9% of the contigs. Among the carbon-related pathways, ∼45% were related to central (TCA cycle) and one-carbon metabolism (e.g., serine-glyoxlate cycle), while another ∼45% were related to degradation (e.g., fermentation, glycoside hydrolases, and other hydrolytic enzymes; Figure 3E). Only ∼10% of the FIGURE 4 | A summary of the factors affecting carbonate precipitation and dissolution as inferred from the Pavilion Lake microbialite metabolic potential and community composition. OBM is organic biomass. Adapted from Dupraz et al. (2009). microbialite-specific contigs were annotated as carbon-fixation related (e.g., Calvin-Benson cycle) ( Figure 3E). Stable-isotope studies suggest that photosynthetic processes are linked to carbonate precipitation in shallow (<25 m) microbialites (Brady et al., 2009;Omelon et al., 2013), even though the metabolic potential is dominated by heterotrophic processes. However, Omelon et al. (2013) and Theisen et al. (2015) also suggested that heterotrophs contribute to the lifthification of microbialites in Pavilion Lake by triggering additional carbonate precipitation. Microbialite formation relating to carbonate precipitation in Pavilion Lake is associated with cyanobacterial photosynthesis with contribution from heterotrophic processes such as urealytic metabolism, dissimilatory sulfate reduction and heterotrophic mat degradation (i.e., EPS related carbonate inhibition; Figure 4; Dupraz et al., 2009).

Viral Community and Viral Defense
In the cellular fraction from the water, viral sequences represented >1% of reads; whereas, in total DNA extracted from microbialites, viral sequences comprised >0.05% of reads. ANOVA in STAMP based on RefSeq classification confirmed that virus sequences were relatively more abundant in the water than in microbialites or sediments ( Figure 5A). Specifically, T4-like phage (e.g., Myoviridae) and large algal viruses (e.g., Phycodnaviridae) dominated the viral sequences in the water and were more abundant than in the microbialites and sediments ( Figure 5A). The low proportion of viral reads in the microbialite data may be biased by the lack of dsDNA viral genomes in the RefSeq database from microbialites compared to water. Viruses in the water appeared to have higher abundances of proteins related to phage structure (tail fibers), phage replication and phage DNA replication ( Figure 5B).
An active role for phages in the microbialites is suggested by the higher relative abundances of predicted genes involved with CRISPRs, phage shock and phage excision ( Figure 5B). CRISPR cas genes were associated with the following taxonomic groups: Chloroflexi (e.g., Dehalococcoides), Deltaproteobacteria (e.g., Myxococcus and Desulfuromonadales), filamentous cyanobacteria (e.g., Anabaena, Nostoc, Rivularia) and Firmicutes (e.g., Clostridia) based on tBLASTx (1e −3 ) analysis. Likewise, more putative genes involved in phage integration and excision occurred in the microbialites than in the nearby environment ( Figure 5B). Also, CRISPRs were predicted to be associated with key members involved in microbialite formation, such as filamentous cyanobacteria and Myxococcus sp., implying that the microbialite community is under continuous selective pressure from viral infection.
It is important to emphasize that the viral DNA was from the cellular fraction (between 0.2 and 120 μm) captured on filters, suggesting that most viral sequences were from infected cells or from viruses attached to particles. It is not uncommon for filters with pore sizes much larger than viruses to contain many viral sequences (Zeigler Allen et al., 2012). The most abundant viral contigs in the water were for T4-like cyanophages and phycodnaviruses ( Figure 5A). Although gene-specific primers targeted to these groups (Chen and Suttle, 1995;Filée et al., 2005) failed to amplify DNA, it would suggest that the viruses were evolutionarily distinct from the viruses these primers target.
Consistent with reports for other microbialites (Desnues et al., 2008), relatively few viral sequences were FIGURE 5 | Pavilion Lake viral community composition and metabolic potential. (A) Dotplot of normalized RefSeq viral taxonomic groups in relation to the surrounding environments (e.g., sediments and water) in log relative abundances. (B) Dotplot of the normalized SEED subsystem in relation to the surrounding environments (e.g., sediments and water) in log relative abundances. recovered in this study. Yet, the occurrence of phage integration and CRISPR-cas sequences implies that the Pavilion Lake microbialites are under selection from viral infection. It is likely that the relative abundance of viral sequences has been underestimated because of the lack of representative viral sequences from microbialites in databases.

CONCLUSION
This study demonstrates that the microbial community profile and metabolic potential of modern freshwater microbialites in Pavilion Lake are distinct from those in neighboring sediments and water, consistent with previous findings of spatial variation in microbialite systems. These results confirm the notion that the microbialite communities are not being continuously seeded by organisms from the surrounding environment. Our data further suggests a unique microbialite microbial community that encodes a functional guild which is distinctive and likely related to its overall function of carbonate precipitation.
Differences among these metagenomes can be attributed to differing selection pressures among environments, with the microbialite community comprised of taxa essential for microbialite growth, as well as opportunists taking advantage of nutrients and the matrix supplied by filamentous cyanobacterial mats. These findings are consistent with photosynthetic influences on carbonate precipitation by filamentous cyanobacteria, with likely contributions by proteobacteria and acidobacteria.
Pavilion Lake microbialites are enriched for pathways that include heavy-metal and antibiotic resistance, urealytic metabolism as well as primary alcohol fermentation. These pathways are associated with members of the Proteobacteria, which are numerically dominant and likely convey resistance to toxins and heavy metals, and may influence carbonate formation through photosynthesis and urea metabolism. This hypothesis is consistent with previous suggestions of heterotrophic contributions to lithification of Pavilion Lake microbialites. Evidence for urealytic metabolism identified here may suggest an important role for this metabolism in carbonate precipitation (Castanier et al., 1999), which has not been reported previously in microbialites.
The prevalence of CRISPR-cas systems and phage excision genes imply that the microbialites are under selective pressure from viral infection. In particular, the presence of CRISPRs assigned to taxa that precipitate carbonates (Cyanobacteria, Deltaproteobacteria and Firmicutes) suggest that viruses play an important previously unknown role in the microbialite communities in Pavilion Lake.

FUNDING
Financial support was provided by the MARSLIFE Project (9F052-10-0176) funded by the Canadian Space Agency, the NASA MMAMA program and a Discovery Grant from the Natural Science and Engineering Council of Canada to CAS.