Figure 3From: PyEvolve: a toolkit for statistical modelling of molecular evolutionPython code required to define a novel model of substitution (a) A function to specify a new substitution model rule. This function identifies dinucleotides that differ from each other by mutation of a methylated C. (b) The step to define a dinucleotide substitution model with terms for both transition and methylation induced changes.Back to article page