x3 — Rate matrix on triplets/codons constructed from nucleotide rates

Usage

x3(submodel: CTMC<n>, a: t) → CTMC<t>

Arguments

submodel:

Nucleotide rates

a:

The Triplets alphabet

Default: The alphabet in the current context

Original default expressions
a
get_state(alphabet)

Description

Construct a triplet or codon rate matrix from a nucleotide rate matrix.

Stationary inputs produce stationary models. For stationary non-reversible inputs, equilibrium frequencies are recalculated from the constructed rates.

For non-equilibrium inputs, root frequencies are calculated by multiplying the nucleotide frequencies at the three positions, then normalizing over the allowed triplets or codons.

Examples

F81 +> x3 +> dNdS      // equivalent to MG94
GTR +> x3

See also