library(knitr) ## use pngquant to reduce size of PNG images knit_hooks$set(pngquant = hook_pngquant) pngquant <- "--speed=1 --quality=0-25" # in case pngquant isn't available if (!nzchar(Sys.which("pngquant"))) pngquant <- NULL
## some frequently used HTML expressions ZC <- "<i>Z</i><sub>C</sub>" # https://stackoverflow.com/questions/595365/how-to-render-narrow-non-breaking-spaces-in-html-for-windows logaH2 <- 'log <i>a</i>H<sub>2</sub>'
This vignette runs the code to make selected plots modified from the following papers:
Dick JM, Shock EL. 2011. Calculation of the relative chemical stabilities of proteins as a function of temperature and redox chemistry in a hot spring. PLOS One 6(8): e22782. doi: 10.1371/journal.pone.0022782
Dick JM, Shock EL. 2013. A metastable equilibrium model for the relative abundances of microbial phyla in a hot spring. PLOS One 8(9): e72395. doi: 10.1371/journal.pone.0072395
List of modifications:
This vignette was compiled on r Sys.Date()
with JMDplots r packageDescription("JMDplots")$Version
and CHNOSZ r packageDescription("CHNOSZ")$Version
.
library(JMDplots)
The current OBIGT database in CHNOSZ has updates for the methionine sidechain group from @LD12 and the glycine group and protein backbone [UPBB] from @Kit14. In order to reproduce the calculations from the 2011 paper, we start by loading the older values from @DLH06.
OldAAfile <- "extdata/OBIGT/OldAA.csv" add.OBIGT(system.file(OldAAfile, package = "JMDplots"))
bison1()
Link to original figure. The lines are spline fits that represent smooth changes in T and pH that are used for some plots below.
bison2()
Links to original figures: functional annotations and major phyla.
tab <- round(bison3(), 3) htmltab <- capture.output(kable(tab, format = "html")) # make selected values bold for(i in c(15, 16, 41, 42, 43)) { htmltab[i] <- gsub('">', '"><b>', htmltab[i], fixed = TRUE) htmltab[i] <- gsub('</', '</b></', htmltab[i], fixed = TRUE) } structure(htmltab, format = "html", class = "knitr_kable")
Link to original table. These per-residue affinities are expressed as dimensionless values, i.e. A/(2.303RT) where A, R and T stand for chemical affinity, gas constant, and temperature in Kelvin. The affinities are all negative, but are higher (more positive) for the reaction to form model protein 1 at sites 1 and 2 and to form model protein 4 at sites 3--5.
bison4()
Link to original figure.
The first plot is a theoretical predominance diagram for the overall model proteins from each site as a function of temperature and activity of hydrogen.
The dotted line is placed so that it passes through the stability fields of the proteins at approximately the actual temperatures where they are located in the hot spring.
This is Equation 2 in the 2011 paper: r logaH2
= -11 + (3/40) T,°C.
The second plot shows the effect of changing both temperature and pH (interpolated from measured values) together with r logaH2
(from the line in the first plot) on the predicted relative abundances of the proteins in metastable equilibrium.
bison5()
Link to original figure. The first row of plots is made using group additivity parameters from @DLH06; the second is made with updates for the methionine sidechain from @LD12 and the glycine sidechain and protein backbone group from @Kit14. Note the appearance of a stability field for site 3 for some classes of proteins. The remaining figures in this vignette use the updated parameters (i.e. the current default values in OBIGT).
equil.results <- bison6()
Link to original figure.
The top row shows calculated relative abundances of the phyla based on metastable equilibrium among the model proteins as a function of r logaH2
.
The bottom row shows the Gibbs energy of transformation (ΔG~tr~) between the equilibrium and actual relative abundances.
Lines are drawn at values calculated with Equation 2 (see above) and at the minimum ΔG~tr~, i.e. the optimal values of r logaH2
for the model.
Plots are made for only three sites, but the function returns results for all five sites, which are used below.
bison7(equil.results)
Links to original figures: 2011, 2013
The plot on the right, from the 2011 paper, shows effective values of r logaH2
calculated from oxidation-reduction potential (ORP) measurements in 2009 and sulfate/sulfide ratios and dissolved oxygen concentrations measured in 2005.
The different redox reactions are clearly not in mutual equilibrium, but they all indicate relatively oxidizing conditions at lower temperatures.
Equation 2 is derived from the relative stabilities of proteins across sites (see above).
The plot on the right, from the 2013 paper, shows the results of optimizing the metastable equilibrium model for phylum abundances within sites.
bison8(equil.results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.