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 ## colorize messages 20171031 ## adapted from https://gist.github.com/yihui/2629886#file-knitr-color-msg-rnw color_block = function(color) { function(x, options) sprintf('<pre style="color:%s">%s</pre>', color, x) } knit_hooks$set(warning = color_block('magenta'), error = color_block('red'), message = color_block('blue'))
options(width = 80)
ZC <- "<i>Z</i><sub>C</sub>"
This vignette runs the functions to make the plots from the following manuscript:
Dick JM. 2025. Earth's oxygenation recorded in genomes. Manuscript in preparation.
This vignette was compiled on r Sys.Date()
with
JMDplots r packageDescription("JMDplots")$Version
,
canprot r packageDescription("canprot")$Version
, and
CHNOSZ r packageDescription("CHNOSZ")$Version
.
library(JMDplots)
genoGOE_1()
Data sources: List of Class I and II methanogen species [@LL18], archaeal marker genes used in GTDB [@RCM+21], and protein abundance in Methanococcus maripaludis [@XHZ+06].
genoGOE_2()
Data sources: Consensus gene ages [@LMM16], protein sequences [@Uni23], and divergence times [@KSC+22].
genoGOE_3()
Data sources: Reconstructed ancestral sequences of Rubisco [@KHAB17] and lists of methanogen [@LL18] and Nitrososphaeria [@RFH+19] genomes.
genoGOE_4()
Data sources: Genomes with different S-cycling genes [@MCK+23].
genoGOE_5()
Data source: @GMKK20.
print(paste("Eh:", Eh, "volt")) print(paste("Elemental formula of protein per residue:", formula_residue)) print("Stoichiometry of composition reaction:") print(reaction_residue) print(paste("Affinity/2.303RT of composition reaction:", affinity_residue))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.