Skip to content

Commit

Permalink
Merge pull request #10 from jangevaare/docs-fix
Browse files Browse the repository at this point in the history
Fix LaTeX for P & Q matrix documentation
  • Loading branch information
jangevaare committed Sep 6, 2018
2 parents f635832 + 630d880 commit 54a8a46
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/nucleic_acid/nucleic_acid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ _πY(mod::NASM) = _πT(mod) + _πC(mod)
"""
Generate a Q matrix for a `NucleicAcidSubstitutionModel`, of the form:
```math
Q = \begin{bmatrix}
Q_{A, A} & Q_{A, C} & Q_{A, G} & Q_{A, T} \\
Q_{C, A} & Q_{C, C} & Q_{C, G} & Q_{C, T} \\
Q_{G, A} & Q_{G, C} & Q_{G, G} & Q_{G, T} \\
Q_{T, A} & Q_{T, C} & Q_{T, G} & Q_{T, T} \end{bmatrix}
```
\$Q = \\begin{bmatrix}
Q_{A, A} & Q_{A, C} & Q_{A, G} & Q_{A, T} \\\\
Q_{C, A} & Q_{C, C} & Q_{C, G} & Q_{C, T} \\\\
Q_{G, A} & Q_{G, C} & Q_{G, G} & Q_{G, T} \\\\
Q_{T, A} & Q_{T, C} & Q_{T, G} & Q_{T, T} \\end{bmatrix}\$
"""
@inline function Q(mod::NASM)
α = (mod)
Expand Down Expand Up @@ -69,13 +67,11 @@ end
"""
Generate a P matrix for a `NucleicAcidSubstitutionModel`, of the form:
```math
P = \begin{bmatrix}
P_{A, A} & P_{A, C} & P_{A, G} & P_{A, T} \\
P_{C, A} & P_{C, C} & P_{C, G} & P_{C, T} \\
P_{G, A} & P_{G, C} & P_{G, G} & P_{G, T} \\
P_{T, A} & P_{T, C} & P_{T, G} & P_{T, T} \end{bmatrix}.
```
\$P = \\begin{bmatrix}
P_{A, A} & P_{A, C} & P_{A, G} & P_{A, T} \\\\
P_{C, A} & P_{C, C} & P_{C, G} & P_{C, T} \\\\
P_{G, A} & P_{G, C} & P_{G, G} & P_{G, T} \\\\
P_{T, A} & P_{T, C} & P_{T, G} & P_{T, T} \\end{bmatrix}\$
for specified time
"""
Expand Down

0 comments on commit 54a8a46

Please sign in to comment.