Skip to content

Commit 54a8a46

Browse files
authored
Merge pull request #10 from jangevaare/docs-fix
Fix LaTeX for P & Q matrix documentation
2 parents f635832 + 630d880 commit 54a8a46

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

src/nucleic_acid/nucleic_acid.jl

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ _πY(mod::NASM) = _πT(mod) + _πC(mod)
1717
"""
1818
Generate a Q matrix for a `NucleicAcidSubstitutionModel`, of the form:
1919
20-
```math
21-
Q = \begin{bmatrix}
22-
Q_{A, A} & Q_{A, C} & Q_{A, G} & Q_{A, T} \\
23-
Q_{C, A} & Q_{C, C} & Q_{C, G} & Q_{C, T} \\
24-
Q_{G, A} & Q_{G, C} & Q_{G, G} & Q_{G, T} \\
25-
Q_{T, A} & Q_{T, C} & Q_{T, G} & Q_{T, T} \end{bmatrix}
26-
```
20+
\$Q = \\begin{bmatrix}
21+
Q_{A, A} & Q_{A, C} & Q_{A, G} & Q_{A, T} \\\\
22+
Q_{C, A} & Q_{C, C} & Q_{C, G} & Q_{C, T} \\\\
23+
Q_{G, A} & Q_{G, C} & Q_{G, G} & Q_{G, T} \\\\
24+
Q_{T, A} & Q_{T, C} & Q_{T, G} & Q_{T, T} \\end{bmatrix}\$
2725
"""
2826
@inline function Q(mod::NASM)
2927
α = (mod)
@@ -69,13 +67,11 @@ end
6967
"""
7068
Generate a P matrix for a `NucleicAcidSubstitutionModel`, of the form:
7169
72-
```math
73-
P = \begin{bmatrix}
74-
P_{A, A} & P_{A, C} & P_{A, G} & P_{A, T} \\
75-
P_{C, A} & P_{C, C} & P_{C, G} & P_{C, T} \\
76-
P_{G, A} & P_{G, C} & P_{G, G} & P_{G, T} \\
77-
P_{T, A} & P_{T, C} & P_{T, G} & P_{T, T} \end{bmatrix}.
78-
```
70+
\$P = \\begin{bmatrix}
71+
P_{A, A} & P_{A, C} & P_{A, G} & P_{A, T} \\\\
72+
P_{C, A} & P_{C, C} & P_{C, G} & P_{C, T} \\\\
73+
P_{G, A} & P_{G, C} & P_{G, G} & P_{G, T} \\\\
74+
P_{T, A} & P_{T, C} & P_{T, G} & P_{T, T} \\end{bmatrix}\$
7975
8076
for specified time
8177
"""

0 commit comments

Comments
 (0)