Article | Open | Published:

# Environmental fluctuations accelerate molecular evolution of thermal tolerance in a marine diatom

## Abstract

Diatoms contribute roughly 20% of global primary production, but the factors determining their ability to adapt to global warming are unknown. Here we quantify the capacity for adaptation to warming in the marine diatom Thalassiosira pseudonana. We find that evolutionary rescue under severe (32 °C) warming is slow, but adaptation to more realistic scenarios where temperature increases are moderate (26 °C) or fluctuate between benign and severe conditions is rapid and linked to phenotypic changes in metabolic traits and elemental composition. Whole-genome re-sequencing identifies genetic divergence among populations selected in the different warming regimes and between the evolved and ancestral lineages. Consistent with the phenotypic changes, the most rapidly evolving genes are associated with transcriptional regulation, cellular responses to oxidative stress and redox homeostasis. These results demonstrate that the evolution of thermal tolerance in marine diatoms can be rapid, particularly in fluctuating environments, and is underpinned by major genomic and phenotypic change.

## Introduction

Earth system models predict that global warming will result in significant declines in net primary production by marine phytoplankton throughout the 21st century (up to 20%)1,2 driven by rising temperatures exceeding limits of thermal tolerance and increases in grazing and nutrient limitation in warmer, more stratified oceans3,4,5. Current models, however, do not consider the potential for marine phytoplankton to rapidly adapt to environmental changes associated with global warming6,7,8. Such shortcomings have unknown consequences for projected changes in global ocean primary production and arise because the mechanisms that facilitate or constrain the capacity for rapid adaptation to warming in marine phytoplankton are largely unknown.

Here, we address this fundamental knowledge gap by carrying out a 300-generation selection experiment, with the model marine diatom Thalassiosira pseudonana, to assess the potential for, and mechanisms that might facilitate rapid adaptation to warming in this globally important phytoplankton9,10,11. A key hypothesis we test is that rapidly fluctuating temperatures—an intrinsic feature of natural environments—will play a key role in adaptation12,13,14. Temporary exposure to a benign environment resulting from temperature fluctuations could both accelerate adaptation to severe conditions by increasing the population size (a positive demographic effect) or constrain adaptation, by relaxing selection for beneficial mutations that promote persistence in the harsh environment (a negative population genetic effect)12,13. Our experiment was initiated with a single clone (the ancestor), which had an upper thermal limit of 35 °C. The ancestor was then distributed among four experimental treatments that represent a range of warming scenarios (Supplementary Figure 1 for experimental set-up): (i) a control at 22 °C, which was the long-term culture temperature; (ii) moderate warming at 26 °C; (iii) severe warming at 32 °C, and (iv) a fluctuating thermal regime, which cycled between 22 and 32 °C every 3–4 generations. The design of the fluctuating treatment did not set out to mimic temperature variation in the natural environment, but rather serves as a means to contrast evolutionary responses to warming under stable versus fluctuating conditions, where temperatures vary predictably within a timescale that acclimation can adjust the phenotype to cope with the change in environment15. To understand the mechanisms that set the limits of thermal tolerance in marine diatoms and quantify the capacity for adaptation beyond present limits, we re-sequenced the genomes, measured growth rate, photosynthesis, respiration, and elemental composition in the ancestor and evolved lineages after approximately 300 generations of selection. We found that adaption to warming was linked to major phenotypic changes in metabolic traits and elemental composition and consistent with these phenotypic changes, the most rapidly evolving genes were associated with transcriptional regulation, cellular responses to oxidative stress, and redox homeostasis.

## Results

### Evolution of thermal tolerance

Trajectories of population growth rate (µ, day−1) over the course of the selection experiment differed substantially between the selection regimes (Fig. 1; Supplementary Tables 13). In the control lineages, growth rates increased gradually, presumably reflecting continual laboratory adaptation. However, trajectories of growth rate in the warming treatments were markedly different from the control and one another. Lineages selected under severe warming (32 °C) exhibited a characteristic pattern of evolutionary rescue (i.e., where evolution can reverse population decline owing to environmental stress, and prevent otherwise inevitable extinction)14,16,17,18. After an initial increase in the first 3 weeks of the experiment, growth rates (and population densities, see Supplementary Figure 2) declined in the 32 °C environment and remained very low (0.24 ± 0.09 s.e.m.) for more than 1 year (~ 100 generations). After approximately 100 generations, growth rates rapidly increased and were statistically indistinguishable from those in the control environment after 300 generations (0.63 ± 0.05 s.e.m. at 32 °C, 0.77 ± 0.11 s.e.m. at 22 °C). Under moderate warming (26 °C), and in the regime that fluctuated between 22 and 32 °C growth rate showed an immediate and sustained increase (2.1 and 1.9-fold faster than the ancestor respectively). These results yield two important insights that are pertinent for understanding the evolutionary dynamics of T. pseudonana in response to warming. First, adaptation to severe warming was slow, with evolutionary rescue taking over a year to restore growth rates to levels comparable to the ancestor in the control environment. Second, in the fluctuating environment where populations experienced short bursts of exposure to 32 °C followed by periods in the benign (22 °C) environment, adaptation to the severe environment was rapid. Consistent with our hypothesis, lineages selected under the fluctuating regime maintained substantially larger population sizes relative to those experiencing severe warming (Supplementary Figure 2 and Supplementary Tables 1 and 3), suggesting that temporary restoration of benign conditions increased the probability of fixing beneficial mutations required for adaptation to the severe (32 °C) environment via a positive demographic effect.

To assess whether adaptation to the various selection regimes changed the thermal tolerance curves in the evolved lineages, we quantified growth rates across a temperature gradient spanning 15–40 °C. Populations selected under the moderate (26 °C), severe (32 °C), and fluctuating (22 °C/32 °C) warming treatments had higher optimal growth temperatures, Topt, compared to the ancestor and the control (Fig. 1b; Supplementary Tables 1, 4 and 5). Despite having a high Topt, the lineages selected under constant severe warming had the slowest growth rates at all measurement temperatures except for 40 °C, the most extreme temperature, suggesting that these populations were still under high-temperature stress in spite of the apparent evolutionary rescue event and the passage of 300 generations of selection. In the fluctuating treatments, growth rate at high temperatures was traded-off against slow growth at low temperature, suggesting that the severe environment was the dominant driver of selection. By contrast, high temperature tolerance in the moderate warming treatments appeared to incur no cost in performance at low temperature. A key question therefore is: what mechanisms facilitated the rapid evolution of increased thermal tolerance in the lineages selected under moderate and fluctuating warming?

### Metabolic efficiency facilitates evolution of thermal tolerance

The fraction of photosynthetically derived carbon that can be allocated to growth tends to decline with warming, owing to the high temperature sensitivity of respiration relative to photosynthesis, suggesting that the upper thermal tolerances of phytoplankton reflect metabolic constraints that limit the efficiency of allocating metabolic energy to growth at high temperature19. To investigate whether changes in metabolic traits could help explain the thermal tolerance curve of the ancestor and evolutionary shifts observed over the selection experiment, we measured responses of gross photosynthesis (P) and respiration (R) to acute gradients in temperature, spanning 4–45 °C, in the ancestor and all evolved lineages. In contrast to previous work19, the activation energies characterizing the temperature sensitivities of P and R in the ancestor were equivalent (e.g., Ea for P = 1.08 eV ± 0.18 s.e.m., and Ea for R = 1.07 ± 0.17 s.e.m.), i.e., increases in P and R up to the optima were similar (Fig. 2; Supplementary Tables 68). Optimum temperatures for P were, however, lower than those for R (Topt for P: 27 °C ± 0.7 °C, (±s.e.m.); Topt for R = 29 °C ± 0.36 °C, (±s.e.m.)), meaning that above Topt for P, the carbon-use efficiency (CUE = 1−R/P; i.e., the potential carbon for allocation to growth) declined rapidly. The optimum temperature for growth rate (Topt = 28 °C; Fig. 1b) and subsequent decreases in growth at supra-optimal temperatures coincided with declines in the CUE above Topt for P in the ancestor, demonstrating that the temperature dependence of CUE imposes a physiological constraint that shapes the thermal tolerance curve. Thus, we hypothesize that shifts in traits that increase CUE at high temperatures should have played an important role in facilitating adaptation to warming in the evolved lineages of T. pseudonana (see also Supplementary Table 9).

Following 300 generations of selection, we observed substantial shifts in the temperature responses of P and R, both among treatments, as well as between the evolved lineages and the ancestor (Fig. 2; Supplementary Tables 69). For both P and R, estimates of Topt in the warming treatments were higher than the ancestor and control, and rates of P and R declined less abruptly at temperatures exceeding Topt. Consequently, CUEs remained high at hotter temperatures in the warming treatments. The mass-specific rates of P and R at a reference temperature Tc = 18 °C (i.e., P(Tc) and R(Tc), in Eq. (6), which quantify the metabolic capacity per unit mass at a common temperature) were significantly down-regulated under moderate, severe, and fluctuating warming, relative to the control treatment and the ancestor (Fig. 2c, d, Supplementary Tables 79). Rates of R(Tc) also decreased more than those of P(Tc), resulting in an overall increase in CUE in the lineages selected under moderate and fluctuating warming (Fig. 2e). These results support our hypothesis that fluctuating temperatures facilitate thermal adaptation and show that changes in the traits that increase CUE, played an important role in the evolution of elevated thermal tolerance in the treatments subjected to warming. It is notable, however, that the populations experiencing severe warming had lower growth rates and lower CUEs than the lineages in the moderate and fluctuating warming treatments (Figs 1b and 2e, Supplementary Tables 1 and 9, also Supplementary Figure 5). This suggests that while evolutionary rescue restored growth rates to levels comparable to the control, 300 generations of selection under constant, severe warming was insufficient to evolve CUEs that facilitate growth rates comparable to populations that experienced only brief periods of severe conditions.

### Molecular evolution of thermal tolerance

To investigate whether the observed changes in fitness and phenotypes in the evolved lineages were also reflected by consistent patterns of molecular evolution, we re-sequenced the genomes of the ancestor and the mixed (non-clonal) populations of the evolved lineages after 300 generations of selection. We identified candidate single-nucleotide variants (SNVs) in the evolved populations compared to the ancestral clone that might have contributed to adaptation to the warming treatments. Specifically, two types of genetic adaptation were of interest: (i) mutations arising de novo after the t0 time-point and becoming fixed in an evolved population and (ii) alleles present in the ancestral clone that become fixed in an evolved population. Fixation of de novo mutations would result in an allele proportion rising from zero in the ancestor to close to 1 after 300 generations of selection. Because the ancestor was a genetically homogeneous clone, standing variation consists solely as heterozygosity; we would therefore expect to observe alleles increasing in proportion from 0.5 in the ancestor to close to 1 after 300 generations. Therefore, we took two distinct approaches to surveying genetic variation: (i) we identified SNVs that were undetectable in the ancestral population but were supported by 100% of the aligned reads in an evolved population and (ii) we identified SNVs that plausibly had a population proportion of 0.5 in the ancestral population (due to heterozygosity), and were supported by 100% of the aligned reads in an evolved population.

We searched for non-silent SNVs affecting protein-coding genes that had become fixed in at least one of the evolved populations; such variants might have contributed to the populations’ adaptation to the selection regime. SNVs were detected at 225,351 sites in the genome. Of these, 7383 had reached fixation in at least one evolved population, including 1689 missense variants and 14 gain-of-stop-codon variants. In total, 1215 protein-coding genes were affected by these fixed non-silent variants. Most fixed non-silent variants were present in the ancestor at proportions between zero and one and were therefore probably heterozygous in the ancestral clone (Fig. 4c), making the main mode of molecular evolution in these populations a transition from heterozygosity to homozygosity. Only nine of the fixed variants were undetectable in the ancestral clone, and are thus likely to be de novo mutations (described in detail in the Supplementary Information). None of these nine de novo mutations were predicted to affect amino acid sequences of encoded proteins.

Using the SNVs that had reached fixation in at least one evolved population, we quantified the genetic distance of each population from the ancestor as well as the genetic divergence among populations using Analysis of Molecular Variance (AMOVA) based on squared Euclidean distances and visualized this analysis using Principal Components Analysis (PCA). Consistent with the fitness trajectories (Fig. 1a), evolved populations showed significant divergence from the ancestor and among one another (Fig. 4a; Table 1, Supplementary Table 12 for pairwise differences). The lineages selected under moderate and fluctuating warming had the greatest distance from the ancestor on the two major axes of variation (Fig. 4a; Supplementary Figure 6, Supplementary Table 12). Furthermore, the populations that experienced fluctuations between severe and benign conditions were divergent from those experiencing constant severe warming (Fig. 4a; Supplementary Figure 6 Supplementary Table 12), with significant variation in SNVs between treatments (Table 1, Supplementary Table 12). These results are consistent with the demographic data (Fig. 1a; Supplementary Figure 2), indicating that the temporary restoration of benign conditions in the fluctuating regime may have accelerated rates of molecular evolution by releasing cryptic genetic variation beneficial in the stressful environment. Selection lines in the moderate warming treatment and the fluctuating environment exhibited the greatest genetic divergence among replicate populations (Fig. 4a, Table 1—indicated by a larger σ2AP). Indeed, the genetic divergence among replicate populations was significantly higher in the moderate warming treatment compared to those exposed to stable, but severe warming (Fig. 4a, Table 1). The more conserved response in the severe environment may have plausibly arisen from stronger directional selection owing to the exposure to extreme conditions. The high genetic divergence among replicate populations in the fluctuating environment is consistent with expectations that more complex environments lead to greater diversity29. The above analyses were restricted to the subset of SNVs that had reached fixation in at least one of the evolved populations and for which we therefore we had a high degree of confidence that variants were either absent or heterozygous in the ancestor and rose to fixation in the evolved lineage. When considering all SNVs, regardless of their level of fixation, (see methods), the general patterns of genetic distance and divergence are qualitatively conserved (see Supplementary Figure 7), indicating that the results are robust to sequencing errors in estimating variants at low frequencies.

Comparing PCAs based on combining all the phenotypic data, with the PCA from the non-synonymous SNVs, revealed striking similarities in the patterns of divergence among treatments (Fig. 4a, b, Supplementary Figures 6 and 8). These results suggest that the observed changes in metabolic traits and elemental composition that were linked to the evolution of thermal tolerance could also have a basis in some of the underlying genomic changes. To investigate this, we identified the top 100 SNVs most strongly associated with the first and second principal components as these are expected to be the most important SNVs for characterizing genomic variation among the lineages. We then identified the genes (see Supplementary Table 14) in which these SNVs fell and tested whether this gene set was enriched in any Gene Ontology (GO)30,31 terms related to biological processes, using the PCA loading score to weight the relative importance of each gene. Genes that had gone to fixation in the evolved lineages and were most strongly associated with the major axes of variation in the PCA were enriched in GO terms related to “transcriptional regulation”, “cellular response to oxidative stress” and “redox homeostasis“ among others (Table 2). Notably, the genes that correspond to these enriched GO terms were all most strongly associated with the moderate and fluctuating warming treatments in the PCA.

We also found that several populations from the moderate and fluctuating warming treatments displayed fixation of exceptionally high numbers of SNVs (Supplementary Figures 12 and 13). In these lineages, the ancestral population’s heterozygosity was lost at hundreds of single-nucleotide sites in the genome. The mechanism(s) of heterozygosity loss among these populations is not known; however, based on analysis of sequencing depth, we also observed substantial copy-number variation among populations across several large genomic regions (Supplementary Figures 911). These findings are consistent with similar analyses of the Chlamydomonas reinhardtii genome in laboratory and wild-type isolates32. This suggests that large-scale duplications and deletions might be important mechanism for rapid evolution in algae, for example, when recurrent copy-number gains represent adaptive gain-of-function mutations33, dosage effects34, and deletions harbor potentially non-sense mutations, such as premature stop codons.

## Methods

### Experimental design

In November 2014, a clone of the sequenced strain of T. pseudonana (CCMP 1335)11 was obtained from the CCAP culture collection, where it had been re-isolated from the original clone CCMP 1335 in 2009, and maintained in batch culture at 18–22 °C. This lineage is known to exhibit a unimodal growth response to temperature between 16 and 31 °C, with optimal growth temperatures around 27 °C37,38,39. The stock culture was made clonal by serial dilution in a 96-well plate in March 2015 and a single clone was chosen at random to be the ancestor for all treatments in the selection experiment. Determination of the thermal tolerance curve of the ancestor revealed that growth rates peaked at 28 °C and that mortality was high above 35 °C (see section below for details on characterizing the thermal tolerance curves). The ancestor was distributed among 4 experimental treatments that represent a range of warming scenarios based on its limits of thermal tolerance: (i) a control at 22 °C, which was the long-term culture temperature; (ii) moderate warming at 26 °C; (iii) severe warming at 32 °C and (iv) a fluctuating thermal regime, which cycled between 22 and 32 °C every 3–4 generations. Each treatment was replicated 6 times.

Lineages were grown in f/2 Medium (Guillard’s medium for diatoms40) with artificial seawater, under a 12:12 light/dark cycle in INFORS HT shaking incubators. Salinity was maintained at 32 (i.e., 32 g NaCl L−1 in 39.5 g L−1 artificial seawater reagents) and pH adjusted to 8.213 ± 0.291 (±s.e.m., averaged across all transfers) prior to each transfer. pH was further measured at the end of each transfer (average across all transfers: 8.171 ± 0.252). The light intensity of full-spectrum fluorescent tubes was 100 µmol quanta m−2 s−1. As light intensity varied throughout the incubators (minimum light intensity 70, maximum light intensity 110 µmol quanta m−2 s−1), culture vessels were moved randomly within the incubator every other day. Lineages were maintained in semi-continuous batch culture, and transferred during the exponential phase of growth to an inoculum of 100 cells mL−1. Average cell densities were calculated at each transfer from three technical replicates for each biological replicate.

### Flow cytometry

Abundance and cell size (diameter assuming a spherical shape) were determined with a Accuri C6 flow cytometer (BD Scientific). Cell size was detected using forward scatter calibrated (FSC) using species and beads of known size against photographic images processed in ImageJ as described in ref.41, with a conversion factor of FSC = 108058 µm + 4.5665. Although T. pseudonana cells are cylindrical rather than spherical, this is a useful approximation for relative changes in cell size. Red fluorescence (FL3) was used for chlorophyll fluorescence in order to distinguish autotrophs from bacteria, but was not used here to approximate chlorophyll content, which was instead estimated through acetone extraction (see below). Co-occuring bacteria, e.g., Rhodobacter spp. and Marinobacter spp. are known to be crucial for nutrient recycling and signaling molecule metabolism in T. pseudonana42,43. We therefore made no attempt to make the cultures axenic as this would have incurred a substantial fitness cost. We quantified the associated bacteria by regularly filtering the cultures between 0.2 and 2 µm, staining with SYBR gold and enumerating bacterial densities and cell size via flow cytometry. Co-occurring bacteria contributed less than 1% of total biomass throughout, with no systematic variation between time-points or treatments.

Flow cytometry was further used in combination with a rhodamine stain to measure a proxy for mitochondrial potential—the rate of ATP production by ATP synthase is proportional to mitochondrial potential, which in turn depends on the activity of respiratory proteins embedded in the mitochondrial membrane. Since each unit area of membrane has several ATP synthase molecules and the rate at which each of these produces ATP depends on the mitochondrial potential, the overall rate of ATP production per mitochondria depends on both the area of mitochondrial membrane and the mitochondrial potential. Mitochondrial area is a good approximation of the area of mitochondrial membrane, and changes in mitochondrial potential can be measured in live cells using potentiometric dye. Previous work44 has shown that the styrl dye rhodamine 123 (R123) can be used in live cells of phytoplankton to measure mitochondrial potential in real time. For staining, a 10 mg mL−1 stock solution in DMSO was prepared and diluted to a 1 µM working solution on the day of measurements. Of this, 20 µL were added to 200 µL of sample and left to incubate in the dark for 45 min. To ensure that longer incubation as is inevitable on a 96 well plate did not effect FL1 fluorescence as measured in the accuri c6, samples were randomized across each 96-well plates with the first and the last well containing the same sample. We found no effect of prolonged incubation after an incubation period of 45 min.

A Nile Red stain was performed to measure relative lipid contents. Here, the dye was used as a proxy to determine relative quantities of intracellular polar and neutral lipids45 in evolved samples, and in samples from short-term assays. The stock dye was obtained as a powder. The working solution was diluted to 0.1 mg L−1, and 10 µL were added to each 200 µL sample on a 9-well plate (final concentration 15 mM) and left to incubate in the dark for 30 min, as pilot trials had shown that after this, fluorescence levels were stable long enough for the time taken to measure one 96 well plate. Samples were randomized on the plate as described above for R123 stains. As Nile Red excites in the same wavelength as chlorophyll (FL3) and chlorophyll derivatives (FL2), samples were measured before and after adding the dye, and the chlorophyll fluorescence subtracted from the fluorescence obtained after staining the sample. While these traits are not discussed in detail here, they are part of the distance matrices used to generate Fig. 4b (see also Supplementary Figure 8 and Supplementary Table 13).

### Growth rate trajectories

At the beginning and at the end of each transfer T. pseudonana cells were counted on the flow cytometer as described above and used to estimate specific growth rates (µ, day−1)

$$\mu = \frac{{{\mathrm{ln}}(N_{{\mathrm{t}}1}) - {\mathrm{ln}}(N_{\mathrm{t}0})}}{{\Delta t}}$$
(1)

where Nt1 is the density of cells at the end of the transfer, Nt0 is the inoculation density, and Δt is the time passed in days.

### Thermal tolerance curves

To characterize the thermal tolerance curves of the ancestor and each of the evolved lineages, an inoculum of 100 cells per mL from the middle of the logarithmic phase of growth was transferred into fresh media at 15, 20, 25, 30, 32, 35, and 40 °C. Cell count was determined daily on a flow cytometer and populations were transferred to fresh media once at each temperature during the middle of the logarithmic phase of growth, before being left to reach stationary phase. Growth rates were estimated from the abundance data using a logistic growth function:

$$N\left( t \right) = \frac{K}{{1 + \frac{{K - N_{\mathrm{t}0}}}{{N_{\mathrm{t}0}}}\mathrm {e}^{rt}}}$$
(2)

where t is time, K is carrying capacity of the population (cell mL−1), r is the maximum growth rate (day−1), and Nt0 is the cell count at t0 (cell mL−1).

### Intracellular macromolecular composition

Cellular carbon (C), nitrogen (N), phosphorus (P), and chlorophyll content (total chlorophyll calculated from chlorophyll a and chlorophyll c content) were quantified in the ancestor and each of the evolved lineages. We investigated the effects of temperature on macromolecular composition both over short-term acclimation and long-term evolutionary adaptation. Short-term thermal acclimation was investigated by exposing the evolved lineages to the 15–45 °C thermal gradient described above for quantifying the thermal tolerance curves for growth rate. Samples from the 40 and 45 °C environment were omitted from further analyses due to high mortalities that limited the amount of biomass available for further tests. Lineages were given 1 transfer to acclimate to a given assay temperature in the gradient and then harvested during the logarithmic phase of growth in the second transfer. Long-term evolutionary adaptation to the selection regimes was quantified by harvesting evolved lineages directly from the experiment during the logarithmic phase of growth

The remaining samples were prepared for C, N, P, and chlorophyll measurement by spinning down 50 mL of culture in a centrifuge at 4 °C and 3500 RPM (rounds per minute) for 30 min. The pellet was then transferred to a 1 mL Eppendorf tube, spun again for 15 min at 3500 RPM and the remaining supernatant decanted. Chlorophyll content was determined on a spectrophotometer (Jenway 7351) after46, with extraction in acetone, and absorption spectra measured in 10 nm increments from 500 to 700 nm, which span the full range of emission peaks for chlorophyll a and chlorophyll c.

Pellets for C and N determination were freeze dried for 24 h, transferred to zinc capsules, weighed and analyzed using a SerCon Isotope Ratio Mass Spectrometer (CF-IRMS) system (continuous flow mode). Intracellular P content was determined via a colourimetric reaction on a Seal Analytics AA3 segmented flow auto-analyzer. Freeze dried pellets were washed in 0.17 M Na2SO4, transferred to scintillation vials and resuspended in 4 ml 0.017 M MnSO4. The samples were transferred to an autoclave (1 h, 121 °C), shaken vigorously and centrifuged at 2500 r.p.m. for 30 min, the pellet discarded, and the supernatant brought to 10 ml with MillliQ purified water. The samples were immediately analyzed on the AA3 using the colourimetric molybdate/antimony method47. Using these data we calculated the molar stoichiometric ratios, C:N, C:P, N:P, and the Chl:C ratio.

Silica content, although not a main trait under investigation here, was determined through preparing pellets as described above. Then, 4 ml of 0.2 M NaOH were added to the pellet in polyethylene tubes and the pellets vortexed briefly. The samples were then transferred to a heating block at 90 °C for ca. 1 h. Two milliliters of 1 M HCl were added, the samples vortexed again and then spun at 3500 rpm for 1 h. The supernatant was passed through an 0.5 µm filter, pipetted into fresh tubes, topped up to 10 ml with MiliQ water and used immediately on the segmented flow auto-analyzer, where the colourimetric procedure followed that described in ref. 48.

### Total RNA and total protein content

100 mL of sample in exponential growth were condensed to a pellet via centrifugation at 4 °C and 3500 RPM (rounds per minute), and were snap-frozen in liquid nitrogen until further use. Total RNA was extracted using a Qiagen RNA isolation kit and purified following the Qiagen RNeasy protocol with an in-column DNAse treatment, as per the supplier’s instructions. Total RNA content in µg/mL was measured immediately afterwards on a Qubit system and on an Agilent BioAnalyser. Total protein concentrations of snap-frozen cell pellets were obtained from samples in exponential growth through extraction on ice following the protocol of ref. 49. The frozen cell pellet was placed on ice, and re-suspended with 200 μL buffer containing 50 mM MOPS, 0.05% Triton™ X-100, 10 mM DTT and a protease inhibitor cocktail (Sigma). To achieve lysis, cells were sonicated for 30 minutes on ice and the lysate was centrifuged at 4 °C and 3500 RPM for 30 minutes. The supernatant was transferred into a clean tube, proteins precipitated in cold acetone on ice at −20 °C overnight, and centrifuged again at 4 °C and 3500 RMP for 10 minutes the following morning. The supernatant was discarded and the pellet was dissolved in 100 μL TEAB (Triethylammonium bicarbonate buffer) buffer with 0.1% Triton™ X-100. Where necessary, sonication steps were repeated until the samples were completely solubilised. Finally, samples were reduced with TCEP (Tris (2-carboxyethyl) phosphine hydrochloride) and any remaining insoluble material removed through centrifugation. Total protein concentration was then measured using a colorimetric method (Bradford reagent, Bio-Rad), according to the supplier’s protocol (see also ref. 49). This was followed by trypsin digestion. Digested samples were stored frozen until further use (e.g. visualisation using an Agilent BioAnalyser). Values reported here are for total protein per cell, prior to digestion, and are not indicative of peptide length or protein composition.

### Photochemistry

We characterized a range of photochemical parameters in the ancestor and each of the evolved lineages using fast repetition rate fluorometry (FastPro8, FRRf3, Fast Ocean System Chelsea Technology Group). 500 µL of dilute sample (with a cell count of less than 1000 cells mL−1) were added to 5 ml of fresh culture medium. Samples were then pre-incubated in the dark at the assay temperature for 15 min in a water-bath, and another 10 min in the fluorometer to make sure that samples were fully dark acclimated and all reaction centers closed. All measurements were made at the selection temperature for the 22, 26, and 32 °C lineages, while for the lineages in the fluctuating regime measurements were carried out at both 22 and 32 °C. Photochemical traits were measured in response to rapid flashes at increasing light intensities from 0 to 1600 µmol m−2 s−1. Flash frequency and rate followed standard protocols for phytoplankton50, with 100 flashes of 1.1 μs at 1 μs intervals. Peak emission wavelengths of the LEDs used for excitations were at 450, 530, and 624 nm. ΦPSII was particularly relevant to our study as it is commonly used to describe the light responses of photosynthetic efficiency. ΦPSII values are used as an indication of the proportion of the total light absorbed that is used in photochemical reactions in PSII (Supplementary Figure 3, Supplementary Table 16). Additionally, we determined rP, NPQ, and C (see Fig. 4b and Supplementary Table 13 for PCA on phenotypic traits). These describes the relative rate of photosynthesis in response to irradiance and are obtained as an estimate of electron transport through PSII (rP), the cell’s ability to maintain photochemical function at high light intensities (non-photochemical quenching—NPQ) and the proportion of PSII reaction centers in a closed state (C). As measurements were carried out following a light response curve, we were then able to measure these functions both at saturating light intensity and at the light intensity that the samples were grown at in the incubators.

### Thermal responses of photosynthesis and respiration

Measurements of photosynthesis and respiration were made on the ancestor and all evolved lineages after 300 generations of selection when in the middle of the logarithmic phase of population growth. Net photosynthesis (NP) was measured as O2 evolution at increasing light intensities in intervals of 50 µmol−1 m−2 s−1 up to 300 µmol−1 m−2 s−1, and then in intervals of 100 µmol−1 m−2 s−1 up to 1000 µmol−1 m−2 s−1, followed by 200 µmol steps up to 2000 µmol−1 m−2 s −1. The maximum rate of light saturated photosynthesis was determined by fitting the NP data to a dynamic model of photoinhibition via nonlinear least squares regression using the methods outlined in ref. 19:

$$\mathrm{NP}\left( I \right) = \frac{{\mathrm{NP}_{\mathrm{max}}I}}{{\frac{{\mathrm{NP}_{\mathrm{max}}}}{{\alpha I_{\mathrm{opt}}^2}}I^2 + \left( {1 - 2\frac{{\mathrm{NP}_{\mathrm{max}}}}{{\alpha I_{\mathrm{opt}}}}} \right)I + \frac{{\mathrm{NP}_{\mathrm{max}}}}{\alpha }}} - R$$
(3)

where NP(I) is the rate of photosynthesis at light intensity I, NPmax is the maximum rate of net photosynthesis at the optimal light intensity, Iopt, and α controls the rate at which NP(I) increases up to NPmax, and R is the rate of respiration (i.e., the rate of O2 flux when I = 0). Gross photosynthesis (P) was estimated as P = NPmax + R. Measurements of O2 flux were made in a Clark-type oxygen electrode (Hansatech Ltd, King’s Lynn UK Chlorolab2). Aliquots (50 mL) of the populations were concentrated through centrifugation to a density of approximately 8 × 104 cells mL−1 and acclimatized to the assay temperature for 15 min in the dark before measuring metabolic rates. The thermal responses of P and R were quantified by measuring rates over a temperature gradient from 4 to 45 °C (in 3 °C increments, with additional measurements at the selection temperatures). Rates of P and R were expressed in units of µg C per µg C using the following equation51:

$$b\left( {{\mathrm{\mu }}{\mathrm{gC}}\;{\mathrm{\mu }}{{{\rm{gC}}^{ - 1}}}} \right) = \frac{{b\left( {{\mathrm{\mu }}{\mathrm{mol}}\;{\mathrm{O}}_2\;{{{\rm{mL}}^{ - 1}}}\;{{\mathrm{day}^{ - 1}}} \ast 32 \ast M \ast \left( {\frac{{12}}{{44}}} \right)} \right)}}{{{\mathrm{\mu }}{\mathrm{mol}}\;{\mathrm{C}}\;{{{\rm{cell}}^{ - 1}}} \ast {\mathrm{cells}}\;{{{\rm{mL}}^{ - 1}}}}}$$
(4)

where b is the metabolic rate (either P or R), 32 * M * (12/44) is used to convert µmol O2 into µg C, and the factor M, is the assimilation quotient of CO2:O2. In our study, NO3 was the source of nitrogen, thus assuming a set of balanced growth equations51

$$n{\mathrm{CO}}_2 + \left( {n + 1} \right){\mathrm{H}}_2{\mathrm{O}} + {\mathrm{HNO}}_3 \to ({\mathrm{CH}}_2{\mathrm{O}})_n\;{\mathrm{NH}}_3 + (n + 2){\mathrm{O}}_2$$
(5)

if the C:N ratio is calculated in moles the assimilation ratio of CO2:O2 will be n/n+2 (see ref.51). The estimated M values are given in Supplementary Table 1 and ranged from ~ 0.77 to ~ 0.79. Alongside the biomass measurements for phytoplankton, we also periodically measured bacterial biomass (see methods detailed above), which typically comprised <1% of algal biomass. Consequently, bacterial respiration did not contribute significantly to metabolic rates, and when 2 µm filtered samples were run for metabolic rate measurements, the slopes were indistinguishable from water blanks.

### DNA extraction for whole-genome re-sequencing

At the beginning (t0) and after 300 generations (t300) of selection in each environment, 250 ml of each sample in exponential growth were spun to a pellet in 50 ml batches at 4 °C and 3500 RPM. The supernatant was discarded and the pellet stored at −20 °C until further use. Prior to DNA extraction, samples were put through three cycles of thawing and refreezing, as this had shown to increase yield of diatom DNA relative to bacterial DNA in pilot studies. DNA was extracted following a standard cTAB protocol in chloroform:isoamyl and isopropanol52 with a proteinase K step to digest proteins, and an RNAse step to digest RNA. The resulting DNA pellet was quality controlled on 1% agarose gels and fluorometrically on a Qbit system. The extracted genomic DNA was then frozen in TE buffer at −20 °C until samples were processed at the Exeter Sequencing Services (University of Exeter, UK). Whole-genome re-sequencing (Illumina) was carried out on a HiSeq 2500 platform with paired-end reads. Library preparation was carried out at the Exeter Sequencing Services using Netflex. The resulting reads were assembled against the existing T. pseudonana genome11.

### Alignment of sequence reads against the reference genome

A prerequisite of variant calling from genomic shotgun sequencing data is the alignment of sequence reads against a reference sequence45, in this case the genome sequence of T. pseudonana (GenBank: GCA_000149405.2). Prior to alignment, reads were trimmed and filtered to remove low-confidence base-calls by applying TrimGalore with command line options “-q 30” and “--paired”. Alignment was performed using BWA-mem version 0.7.12-r103953,54. As a precaution against artifacts arising from non-uniquely mapping reads we used command line option “-q 1” when using samtools view54 to convert the alignments from SAM to BAM format; the use of this option has the effect of excluding from the alignment all sequence reads that map equally well to more than one unique site on the reference genome sequence.

### Calling single-nucleotide variants

We identified candidate SNVs in BWA-mem alignments of genomic sequence reads against the reference genome sequence using the SAMtools/BCFtools pipeline version 1.3.154. Candidate SNVs were identified using bcftools 1.3.1 with the following command-lines:

“samtools mpileup -u -f genome.fasta alignment.bam >alignment.bcf” and

“bcftools call -m -v –Ov alignment.bcf >alignment.vcf”.

The candidate variants were then filtered using the following command line: “bcftools filter --SnpGap 10 --include “(REF = “A” | REF = “C” | REF = “G” | REF = “T”) & %QUAL > = 35 & MIN(IDV) > = 2 & MIN(DP) > = 5 & INDEL = 0” alignment.vcf >alignment.filtered.vcf”. This filtering step eliminates indels with low-confidence SNV calls. It also eliminates candidate SNVs within 10 base pairs of an indel, since alignment artifacts are relatively common in the close vicinity of indels. Finally, annotation was added to each filtered VCF file using snpEff55 version 4.3t.

The motivation for variant calling was to identify candidate genetic changes in the evolved populations (compared to the ancestral clone) that might contribute to thermal adaptation. Specifically, two types of genetic adaptation were of interest: (i) mutations arising de novo after the t0 time-point and becoming fixed in an evolved population and (ii) alleles present in the ancestral clone, that become fixed in an evolved population. In both cases, fixation could arise through either drift or selection. Fixation of de novo mutations would result in allele proportion rising from zero at t0 to close to 1 by 300 generations. Because the ancestral population was a genetically homogeneous clone, standing variation consists solely as heterozygosity, and we expect to observe alleles increasing in proportion from 0.5 at t0 to close to one by 300 generations. Therefore, we took two distinct approaches to surveying variation: (i) identifying SNVs that were undetectable in the ancestral population (at a sequencing depth of at least 10×) but were supported by 100% of the aligned reads in an evolved population (at depth of at least 5×) and (ii) identifying SNVs that plausibly had a population proportion of 0.5 in the ancestral population (due to heterozygosity), at depth of at least 10×, and were supported by 100% of the aligned reads in an evolved population, at depth of at least 5× (see also Supplementary Table 15 for average sequencing depths).

The output of SNV-calling was a matrix of estimated allele frequencies at each SNV site for each sample. All SNVs included in the matrices had passed reliability filtering, as described above. Following the approach of a recent study50, the estimated allele frequency was defined as the ratio of sequence reads matching the alternative allele versus total number of reads aligned at that site. In other words, the sample proportion is used as an estimate of the proportion:

$$f_{pm} \approx \frac{{A_{pm}}}{{D_{pm}}}$$

where for mutation m and population p, Apm and Dpm are, respectively, the count of aligned reads matching the alternate allele and the total counts (i.e., depth). Inevitably, this estimator of fpm will be confounded by sampling error. Assuming that each sequence read is drawn randomly from the population, the sample proportion will follow a binomial distribution:

$$A_{pm}\sim {\mathrm{Binomial}}(D_{pm},\;f_{pm})$$

Given the sample size (in this case, Dpm) and the population proportion (fpm), it is possible to calculate the 95% confidence interval of the estimate of fpm56. With small sample sizes, the confidence intervals are wide. For example, with Dpm (depth) of 10× and fpm (allele frequency) of 0.5, the 95% confidence interval is 0.5 ± 0.31. For depth 50× it is 0.5 ± 0.14 and for depth 100× it is 0.5 ± 0.10 (see also Supplementary Figure 7). Therefore, in this study, we refrain from making inferences based on small changes in allele proportions among populations, but rather restrict this to scenarios where estimated proportion changes from zero to one or from 0.5 ± 0.2 to one.

Notwithstanding the problems of precisely quantifying allele frequency, it is straightforward to identify with confidence those SNVs that were absent in the ancestral population and at very high abundance in one or more of the evolved populations after 300 generations. A variant m was considered absent in the ancestral t0 population if Dt0m > = 10 and At0m = 0. Since this ancestral population was clonal, the possible allele frequencies that Dt0m can take are zero or unity or, if heterozygous, 0.5. Assuming a binomial distribution, the probability of an allele with population frequency of 0.5 being not represented among a sample of 10 aligned sequence reads is 0.510 = 0.00098. Similarly, if in a t300 population p, Dpm > = 5 and Apm/Dpm = 1, then it can be confidently inferred that variant m is indeed present in population p. Assuming a high sequencing error rate of 1%, the probability of falsely calling the presence of a variant on this basis is 0.015 = 1e−10; in practice, Illumina error rates are closer to 0.1% than 1% making the probability of a false positive even smaller. Thus, we include in our analyses any candidate variant m in a population p if all the following criteria are satisfied:

1. i.

Dt0m > = 10

2. ii.

At0m = 0

3. iii.

Dpm > = 5

4. iv.

Apm/Dpm = 1

5. v.

Variant p is called by the bcftools and passes filters in at least one population

The matrices containing SNVs that had passed reliability filtering, had become fixed after 300 generations, and were within protein-coding regions, were used for the downstream statistical analyses implemented in R using the packages vegan (2.4–3), mixOmics (6.1–3), ade4 (1.7–10), topGO (2.26–0, with Bioconductor 3.4), biomaRt (2.3–0 with Bioconductor 3.4), and phangorn (2.2–0).

To test for separation of samples by treatment, and within treatment variation, the Euclidean distance matrices were used to perform Analyses of Molecular Variation (AMOVAs) following ref. 59. Briefly, the Euclidean distance matrix of SNVs is used to apportion molecular variance according to hierarchical subdivision. In our case, this is variation within populations (biological replicates), between populations (biological replicates within the same treatments), and between treatments. To disentangle whether (i) there were differences in the amount of variation between populations in different treatments and (ii) treatments were significantly genetically divergent from each other, AMOVAs were performed on populations from each treatment separately (yielding a measure of variation that can be compared across treatments) and for all populations in all treatments combined (yielding a measure of variation, or distance, between populations from specific treatments). The significance of the different components of variance was tested using a permutation approach59, which removes the assumption of normality that underlies conventional ANOVAS, but which is often not appropriate for molecular data. Additionally, to provide explicit significance measures on pairwise differences between treatments, and between treatments and the ancestor, Permutational Multivariate Analysis of Variance (PERMANOVA) was performed on the same Euclidian distance matrix, where contrasts between treatments were examined through a test of homogeneity of dispersion (permdist in R), followed by TukeyHSD post-hoc tests.

All trees for were built within the phangorn package through neighbor-joining, and annotation of trees was carried out in the FigTree software (FIGTREE 1.4.3 http://tree.bio.ed.ac.uk/software/figtree/).

### Assessment of the abundance of other taxa

The diatom cultures used in this study were not axenic and therefore the genomic sequence data contained both sequence reads originating from the diatom and also from other organisms such as bacteria that were present in the cultures. To estimate the relative abundances of taxa represented in the data, we used BLASTN (version 2.5.0+) to align 10,000 sequence reads from each sample against the NCBI’s non-redundant Nucleotide (also known as “NT”) database60 downloaded on December 9, 2016, using command-line options “-num_alignments 20 -evalue 1e-10”. Matches were assigned to taxa using MEGAN (version 5.11.3)61. Similar to analysis of the diatom data, we combined the allele frequencies into a single matrix, which was used for the downstream statistical analyses implemented in R using the “vegan” (2.4–3) and “ecodist” (2.01) packages. Distance matrices using the Bray–Curtis index were created from these, on which we ran PERMANOVAs to test for separation of samples by treatment. Pairwise contrasts between treatments were examined in PERMDISP followed by TukeyHSD post-hoc tests. See Supplementary Figure 14 and Supplementary Table 17 for a comparison of bacterial composition across treatments.

### Statistical analyses of fitness trajectories

The resultant time series of specific growth rates were analyzed using a generalized additive mixed effects model (GAMM) to assess whether the fitness trajectories differed between the selection regimes. We used GAMMs to account for the hierarchical nature of our experimental data. For example, our experimental design yielded replicate fitness trajectories in each selection treatment. This hierarchical structure meant that measurements were non-independent—e.g., measurements from the same replicate will be auto correlated. We account for this by treating replicate as a random effect on the intercept of the model, which models deviations among replicates from the fixed effects as normally distributed with a mean of zero. The most complex models included an effect of treatment (e.g., “22”, “26”, “32”, “22–32”) on the intercept (which characterizes the median value of the response variable) and also allowed the shape of the time series, which was modeled using a cubic regression spline, to vary among treatments. Treatment effects on the shape and intercept of the seasonal phenology were modeled as fixed effects in the GAMMs. Model selection entailed fitting a range of models to the data, starting with the full model and then a series of reduced models with interaction terms and main effects removed to test hypotheses about the potential differences in the fitness trajectories among treatments. For multi-model selection, we computed small sample-size corrected AIC scores (AICc) and then compared between models by calculating delta AICc values and AICc weights using the “MuMIn” package. GAMMs were fitted to the data using the “gamm4” package and were conducted in R (v.3.23) (see Supplementary Figure15 for trajectories per biological replicate).

### Statistical analyses of thermal response curves

The thermal responses for growth, photosynthesis, and respiration were quantified using a modified version of the Sharpe–Schoolfield equation (see refs.62,63 for the original equations), which assumes that the rate of growth or metabolism is limited by single enzyme catalyzed reaction

$${\mathrm{ln}}\left( {b\left( T \right)} \right) = E_{\mathrm{a}}\left( {\frac{1}{{kT_{\mathrm{c}}}} - \frac{1}{{kT}}} \right) + {\mathrm{ln}}\left( {b\left( {T_{\mathrm{c}}} \right)} \right) - {\mathrm{ln}}\left( {1 + {\mathrm{e}}^{E_{\mathrm{h}}\left( {\frac{1}{{kT_{\mathrm{h}}}} - \frac{1}{{kT}}} \right)}} \right)$$
(6)

where b(T) is the rate of metabolism (in μg C μg C−1 day−1) or growth (day−1), k is Boltzmann’s constant (8.62 × 10−5 eV K−1), Ea is the activation energy (in eV) for the metabolic process, indicative of the steepness of the slope leading to a thermal optimum, T is temperature in Kelvin (K), Eh characterizes temperature-induced inactivation of enzyme kinetics above Th where half the enzymes are rendered non-functional and b(Tc) is the rate of metabolism at an arbitrary reference temperature, here Tc = 18 °C, where no low or high temperature inactivation is experienced. Equation (6) yields a maximum metabolic rate at an optimum temperature, where metabolic rates are fastest:

$$T_{\mathrm{opt}} = \frac{{E_{\mathrm{h}}T_{\mathrm{h}}}}{{E_{\mathrm{h}} + kT_{\mathrm{h}}{\mathrm{ln}}\left( {\frac{{E_{\mathrm{h}}}}{{E_{\mathrm{a}}}} - 1} \right)}}$$
(7)

Equation (6) differs from the Sharpe–Schoolfield equations in several ways. First, we exclude parameters from Eq. (6) used to characterize low-temperature inactivation due to insufficient data to quantify this phenomenon in our analysis. Second, rather than characterize temperature effects below Topt using the Eyring (1935) relation64, $$\left( {\frac{T}{{T_{\mathrm{c}}}}} \right){\mathrm{e}}^{E_{\mathrm{a}}\left( {\frac{1}{{kT_{\mathrm{c}}}} - \frac{1}{{kT}}} \right)}$$, we instead use the simpler Boltzmann factor, $$\mathrm{e}^{E_{\mathrm{a}}\left( {\frac{1}{{kT_{\mathrm{c}}}} - \frac{1}{{kT}}} \right)}$$. This simplification enables an explicit solution for Topt (Eq. 7) and facilitates more direct comparison with previous work on the temperature dependence of metabolism using metabolic theory65,66,67,68.

The parameters b(Tc), Ea, Eh, Th, and Topt, represent traits that characterize a unimodal thermal response curve, and we expect them to differ between selection regimes owing to thermal adaptation. To test this hypothesis, we fitted the rate data to Eq. (6) using nonlinear mixed effects models in the “nlme” package in R. We analyzed the photosynthesis, respiration, and growth data in separate mixed effects models. We also analyzed the thermal responses for ancestor separately from the data for the evolved lineages following the selection experiment. Models included random effects on each of the parameters of Eq. (6) by replicate, and for the analysis with evolved lineages, “selection environment” as a fixed four level factor on each parameter. For the analysis of the metabolism data for the ancestor we included both photosynthesis and respiration data together, with “flux” as a two-level fixed factor on each of the parameters in Eq. (6), to establish whether the thermal responses differed between these fluxes and likely physiological constraints on growth prior to the selection experiment. Model fitting and selection started with the most complex possible model, including fixed and random effects on all parameters. Model selection then proceeded by first removing treatment effects on the parameters individually, then in pairs of two and in pairs of three, and finally, by removing the treatment—effect all four parameters. For multi-model selection we computed small sample-size corrected AIC scores (AICc) and then compared between models by calculating delta AICc values and AIC weights using the “MuMIn” package. When candidate models deviated from the most parsimonious model (that with the lowest AICc score) by less than two AICc units, parameters were averaged across those candidate models. The relative importance of the fixed factors in the averaged model was determined using the sum of their relative weights (see Supplementary Tables 5 and 6).

### Statistical analyses of carbon-use efficiency

CUE, as the potential for carbon allocation to growth, was calculated from the gross photosynthesis (P) and respiration (R) data as CUE = 1−R/P. For statistical analysis, we used CUE calculated at the temperature of the selection environment. In the fluctuating treatment, we used data for photosynthesis and respiration at 32 °C to aid comparison with the populations experiencing 32 °C throughout. We fitted a linear mixed effects model to these data, with “selection regime” as a fixed effect and biological replicate as a random effect. Model selection proceeded as described above. See also Supplementary Figure 5.

### Macromolecular composition and photosynthetic efficiency

The C, N, and P content, the C:N, C:P, N:P, Chl:C ratio, size and silicate content, as well as ΦPSII at high and low light, were each analyzed using a separate mixed effects model, where “selection regime” was a fixed effect and replicate was a random effect on the intercept (see Supplementary Tables 10 and 11 for details). To quantify the effects of temperature on the elemental composition of the ancestor, a separate mixed effects model was run for ancestral samples only, with “assay temperature” as a fixed factor and replicate as a random effect (see also Supplementary Table 11 for details).

For both datasets, model selection was as described above, with the best model being chosen based on the lowest AICc and high AICc weight.

We quantified the light response curve of ΦPSII using an exponential decay model

$${\Phi }_{\mathrm{PSII}} = a \ast {\mathrm{exp}}(I \ast b)$$
(8)

where I is the irradiance, a is a normalization constant, and b is the rate constant which characterizes how rapidly ΦPSII declines with increasing I. Eq. (8) was fitted to the ΦPSII data using a no-linear mixed model including random effects by biological replicate on each parameter and “selection environment” as a fixed factor. Model output was then used to calculate ΦPSII at the light intensity that samples would have experienced in the incubators (i.e., ~ 100 µmol quanta m−2 s−1). Model selection then proceeded as described above for P and R data. Detailed model output and model selection data are available in Supplementary Table 9 where nomenclature and acronyms are as given here (see also Supplementary Figure 3).

On the phenotype data, we ran PERMANOVAs to test for separation of samples by treatment. Here, the test is based on the distance matrix containing all phenotypic data of the evolved lineages from all treatments relative to the ancestor at that same temperature. Subsequently, contrasts between treatments were examined through a test of homogeneity of dispersion (permdist in R), followed by TukeyHSD post-hoc tests.

### Data availability

All sequence data have been deposited in the Sequence Read Archive with accession number SRP114919 (https://www.ncbi.nlm.nih.gov/Traces/study/?acc=SRP114919) and are accessible via BioProject PRJNA397360. All data used for analysis and graphical presentation are available from the corresponding author on request and are uploaded to PANGAEA.

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Change history

• ### 13 July 2018

The PDF version of this Article was updated shortly after publication following an error which resulted in the Φ symbol being omitted from the left hand side of equation 8. The HTML version was correct from the time of publication.

## References

1. 1.

Bopp, L. et al. Potential impact of climate change on marine export production. Glob. Biogeochem. Cycles 15, 81–99 (2001).

2. 2.

Steinacher, M. et al. Projected 21st century decrease in marine productivity: a multi-model analysis. Biogeosciences 7, 979–1005 (2010).

3. 3.

López-Urrutia, Á., Martin, E. S., Harris, R. P. & Irigoien, X. Scaling the metabolic balance of the oceans. Proc. Natl Acad. Sci. 103, 8739–8744 (2006).

4. 4.

Laufkötter, C. et al. Drivers and uncertainties of future global marine primary production in marine ecosystem models. Biogeosciences 12, 6955–6984 (2015).

5. 5.

Regaudie-de-Gioux, A. & Duarte, C. M. Compensation irradiance for planktonic community metabolism in the ocean. Glob. Biogeochem. Cycles 24, GB4013 (2010).

6. 6.

Reusch, T. B. H. & Boyd, P. W. Experimental evolution meets marine phytoplankton. Evolution 67, 1849–1859 (2013).

7. 7.

Thomas, M. K., Kremer, C. T., Klausmeier, C. A. & Litchman, E. A global pattern of thermal adaptation in marine phytoplankton. Science 338, 1085–1088 (2012).

8. 8.

Schluter, L. et al. Adaptation of a globally important coccolithophore to ocean warming and acidification. Nat. Clim. Change 4, 1024–1030 (2014).

9. 9.

Field, C. B. Primary production of the biosphere: integrating terrestrial and oceanic components. Science 281, 237–240 (1998).

10. 10.

Falkowski, P. G. Biogeochemical controls and feedbacks on ocean primary production. Science 281, 200–206 (1998).

11. 11.

Armbrust, E. V. The genome of the diatom Thalassiosira pseudonana: ecology, evolution, and metabolism. Science 306, 79–86 (2004).

12. 12.

Hao, Y.-Q., Brockhurst, M. A., Petchey, O. L. & Zhang, Q.-G. Evolutionary rescue can be impeded by temporary environmental amelioration. Ecol. Lett. 18, 892–898 (2015).

13. 13.

Ashander, J. & Chevin, L. M. Predicting evolutionary rescue via evolving plasticity in stochastic environments. Proc. Biol. Sci. 283, 20161690 (2016).

14. 14.

Bell, G. Evolutionary rescue and the limits of adaptation. Philos. Trans. R. Soc. Lond. B Biol. Sci. 368, 20120080 (2012).

15. 15.

Botero, C. A., Weissing, F. J., Wright, J. & Rubenstein, D. R. Evolutionary tipping points in the capacity to adapt to environmental change. Proc. Natl Acad. Sci. 112, 184–189 (2015).

16. 16.

Lachapelle, J. & Bell, G. Evolutionary rescue of sexual and asexual populations in a deteriorating environment. Evolution 66, 3508–3518 (2012).

17. 17.

Elena, S. F. & Lenski, R. E. Test of synergistic interactions among deleterious mutations in bacteria. Nature 390, 395–398 (1997).

18. 18.

Bell, G. & Gonzalez, A. Adaptation and evolutionary rescue in metapopulations experiencing environmental deterioration. Science 332, 1327–1330 (2011).

19. 19.

Padfield, D., Yvon-Durocher, G., Buckling, A., Jennings, S. & Yvon-Durocher, G. Rapid evolution of metabolic traits explains thermal adaptation in phytoplankton. Ecol. Lett. 19, 133–142 (2015).

20. 20.

J Geider, R., Osborne, B. A. & Raven, J. A. Light dependence of growth and photosynthesis in phaeodactylum tricornutum (bacillariophyceae)1. J. Phycol. 21, 609–619 (1985).

21. 21.

Geider, R. J., Maclntyre, H. L. & Kana, T. M. A dynamic regulatory model of phytoplanktonic acclimation to light, nutrients, and temperature. Limnol. Oceanogr. 43, 679–694 (1998).

22. 22.

Raven, J. A. & Geider, R. J. Temperature and algal growth. New. Phytol. 110, 441–461 (1988).

23. 23.

Toseland, A. et al. The impact of temperature on marine phytoplankton resource allocation and metabolism. Nat. Clim. Change 3, 979–984 (2013).

24. 24.

Daines, S. J., Clark, J. R. & Lenton, T. M. Multiple environmental controls on phytoplankton growth strategies determine adaptive responses of the N: P ratio. Ecol. Lett. 17, 414–425 (2014).

25. 25.

Yvon-Durocher, G., Dossena, M., Trimmer, M., Woodward, G. & Allen, A. P. Temperature and the biogeography of algal stoichiometry. Glob. Ecol. Biogeogr. 24, 562–570 (2015).

26. 26.

Geider, R. & La Roche, J. Redfield revisited: variability of C:N:P in marine microalgae and its biochemical basis. Eur. J. Phycol. 37, 1–17 (2002).

27. 27.

Atkinson, D., Ciotti, B. J. & Montagnes, D. J. S. Protists decrease in size linearly with temperature: ca. 2.5% C-1. Proc. Biol. Sci. 270, 2605–2611 (2003).

28. 28.

Conover, D. O. & Schultz, E. T. Phenotypic similarity and the evolutionary significance of countergradient variation. Trends Ecol. & Evol. 10, 248–252 (1995).

29. 29.

Replansky, T. & Bell, G. The relationship between environmental complexity, species diversity and productivity in a natural reconstructed yeast community. Oikos 118, 233–239 (2009).

30. 30.

Ashburner, M. et al. Gene ontology: tool for the unification of biology. Nat. Genet. 25, 25.

31. 31.

Consortium, T. G. O. Expansion of the gene ontology knowledgebase and resources. Nucl. Acids Res. 45, D331–D338 (2016).

32. 32.

Flowers, J. M. et al. Whole-genome resequencing reveals extensive natural variation in the model green alga Chlamydomonas reinhardtii. Plant. Cell. 27, 2353–2369 (2015).

33. 33.

Gresham, D. & Dunham, M. J. The enduring utility of continuous culturing in experimental evolution. Genomics 104, 399–405 (2014).

34. 34.

Kondrashov, F. A. Gene duplication as a mechanism of genomic adaptation to a changing environment. Proc. Biol. Sci. 279, 5048–5057 (2012).

35. 35.

Armbrust, E. V. The life of diatoms in the world’s oceans. Nature 459, 185–192 (2009).

36. 36.

Dutkiewicz, S., Scott, J. R. & Follows, M. J. Winners and losers: ecological and biogeochemical changes in a warming ocean. Glob. Biogeochem. Cycles 27, 463–477 (2013).

37. 37.

Boyd, P. W. et al. Marine phytoplankton temperature versus growth responses from polar to tropical waters—outcome of a scientific community-wide study. PLoS One 8, e63091–17 (2013).

38. 38.

Thomas, M. K. et al. Temperature-nutrient interactions exacerbate sensitivity to warming in phytoplankton. Glob. Change Biol. 23, 3269–3280 (2017).

39. 39.

O’Donnell, D. R., Hamman, C. R. & Johnson, E. C. Temperature selection drives evolution of function-valued traits in a marine diatom. Preprint at bioRxiv https://doi.org/10.1101/167817 (2017).

40. 40.

Guillard, R. R. L. In Culture of Marine Invertebrate Animals (eds Smith, W. L. & Chanley, M. H.) 29–60 (Springer US, Boston, 1975).

41. 41.

Schaum, C.-E. et al. Adaptation of phytoplankton to a decade of experimental warming linked to increased photosynthesis. Nat. Publ. Group 1, 0094 (2017).

42. 42.

Amin, S. A. et al. Interaction and signalling between a cosmopolitan phytoplankton and associated bacteria. Nature 522, 98–101 (2015).

43. 43.

Amin, S. A., Parker, M. S. & Armbrust, E. V. Interactions between diatoms and bacteria. Microbiol. Mol. Biol. Rev. 76, 667–684 (2012).

44. 44.

Brickley, M. R., Lawrie, E., Weise, V., Hawes, C. & Cobb, A. H. Use of a potentiometric vital dye to determine the effect of the herbicide bromoxynil octanoate on mitochondrial bioenenergetics in Chlamydomonas reinhardtii. Pest. Manag. Sci. 68, 580–586 (2011).

45. 45.

Guzmán, H. M., la Jara Valido de, A., Duarte, L. C. & Presmanes, K. F. Estimate by means of flow cytometry of variation in composition of fatty acids from Tetraselmis suecica in response to culture conditions. Aquacult Int 18, 189–199 (2009).

46. 46.

Holm-Hansen, O. & Riemann, B. Chlorophyll a determination: improvements in methodology. Oikos 30, 438 (1978).

47. 47.

Murphy, J. & Riley, J. P. A modified single solution method for the determination of phosphate in natural waters. Anal. Chim. Acta 27, 31–36 (1962).

48. 48.

Grasshoff, K., Kremling, K. & Ehrhardt, M. Methods of Seawater Analysis. (Weinheim, Verlag Chemie, 2009).

49. 49.

Carvalho, R. N. & Lettieri, T. Proteomic analysis of the marine diatom Thalassiosira pseudonana upon exposure to benzo(a)pyrene. BMC Genomics 12, 159 (2011).

50. 50.

Suggett, D. J., Moore, C. M., Hickman, A. E. & Geider, R. J. Interpretation of fast repetition rate (FRR) fluorescence: signatures of phytoplankton community structure versus physiological state. Mar. Ecol. Prog. Ser. 376, 1–19 (2009).

51. 51.

Falkowski, P. G., Dubinsky, Z. & Wyman, K. Growth-irradiance relationships in phytoplankton. Limnol. Oceanogr. 30, 311–321 (1985).

52. 52.

Murray, M. G. & Thompson, W. F. Rapid isolation of high molecular weight plant DNA. Nucl. Acids Res. 8, 4321–4325 (1980).

53. 53.

Li, H. Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. Preprint at https://arxiv.org/abs/1303.3997 (2013).

54. 54.

Li, H. & Durbin, R. Fast and accurate short read alignment with Burrows–Wheeler transform. Bioinformatics 25, 1754–1760 (2009).

55. 55.

Cingolani, P. et al. A program for annotating and predicting the effects of single nucleotide polymorphisms, SnpEff. Fly 6, 80–92 (2012).

56. 56.

Clopper, C. J. & Pearson, E. S. The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika 26, 404–413 (1934).

57. 57.

Tibshirani, R., Hastie, T., Narasimhan, B. & Chu, G. Diagnosis of multiple cancer types by shrunken centroids of gene expression. Proc. Natl Acad. Sci. 99, 6567–6572 (2002).

58. 58.

Lê Cao, K.-A. et al. MixMC: a multivariate statistical framework to gain insight into microbial communities. PLoS One 11, e0160169–21 (2016).

59. 59.

Excoffier, L., Smouse, P. E. & Quattro, J. M. Analysis of molecular variance inferred from metric distances among DNA haplotypes: application to human mitochondrial DNA restriction data. Genetics 131, 479–491 (1992).

60. 60.

NCBI Resource Coordinators. Database resources of the national center for biotechnology information. Nucl. Acids Res 45, D12–D17 (2017).

61. 61.

Huson, D. H., Mitra, S., Ruscheweyh, H. J., Weber, N. & Schuster, S. C. Integrative analysis of environmental sequences using MEGAN4. Genome Res. 21, 1552–1560 (2011).

62. 62.

Schoolfield, R. M., Sharpe, P. J. H. & Magnuson, C. E. Non-linear regression of biological temperature-dependent rate models based on absolute reaction-rate theory. J. Theor. Biol. 88, 719–731 (1981).

63. 63.

Sharpe, P. J. & DeMichele, D. W. Reaction kinetics of poikilotherm development. J. Theor. Biol. 64, 649–670 (1977).

64. 64.

Eyring, H. The activated complex in chemical reactions. J. Chem. Phys. 3, 107–115 (1935).

65. 65.

Gillooly, J. F. Effects of size and temperature on metabolic rate. Science 293, 2248–2251 (2001).

66. 66.

Brown, J. H., Gillooly, J. F., Allen, A. P., Savage, VanM. & West, G. B. Toward a metabolic theory of ecology. Ecology 85, 1771–1789 (2004).

67. 67.

Savage, VanM., Gillooly, J. F., Brown, J. H., West, G. B. & Charnov, E. L. Effects of body size and temperature on population growth. Am. Nat. 163, 429–441 (2015).

68. 68.

Allen, A. P. Global biodiversity, biochemical kinetics, and the energetic-equivalence rule. Science 297, 1545–1548 (2002).

## Acknowledgements

This study was funded by a Leverhulme Trust research grant (RPG-2013-335). Whole genome re-sequencing was carried out at Exeter Sequencing Service and Computational core facilities at the University of Exeter, where Dr. Karen Moore, Dr. Audrey Farbos, Paul O’Neill, and Dr. Konrad Paszkiewicz lead the handling of the samples. Exeter Squencing Services are supported by Medical Research Council Clinical Infrastructure award (MR/M008924/1), Wellcome Trust Institutional Strategic Support Fund (WT097835MF), Wellcome Trust Multi User Equipment Award (WT101650MA), and BBSRC LOLA award (BB/K003240/1). The authors thank Katja Räsänen for helpful suggestions on the role of countergradient variation.

## Author information

### Affiliations

1. #### Environment and Sustainability Institute, University of Exeter, Penryn Campus, Penryn, Cornwall, TR10 9EZ, UK

• C.-Elisa Schaum
• , A. Buckling
•  & G. Yvon-Durocher
2. #### Institute for Hydrobiology and Fisheries, Section Oceanography, Hamburg University, 22767, Hamburg, Germany

• C.-Elisa Schaum
3. #### Biosciences, College of Life and Environmental Sciences, Geoffrey Pope Building University of Exeter, Exeter, EX4 4QD, UK

• N. Smirnoff
•  & D. J. Studholme

### Contributions

G.Y.D. conceived and designed the study, analyzed data, and wrote the manuscript. E.S. designed and carried out the experimental work, analyzed data, and wrote the manuscript. A.B. conceived and designed the study. D.S. carried out the bioinformatic analyses of the genomic data. N.S. contributed to the interpretation of the data analysis. All authors contributed to writing the manuscript.

### Competing interests

The authors declare no competing interests.

### Corresponding authors

Correspondence to C.-Elisa Schaum or G. Yvon-Durocher.

## Electronic supplementary material

### DOI

https://doi.org/10.1038/s41467-018-03906-5

• ### Light and Dehydration but Not Temperature Drive Photosynthetic Adaptations of Basal Streptophytes (Hormidiella, Streptosarcina and Streptofilum) Living in Terrestrial Habitats

• Mattia Pierangelini
• , Karin Glaser
• , Tatiana Mikhailyuk
• , Ulf Karsten
•  & Andreas Holzinger

Microbial Ecology (2018)