Skip to content

Commit 0846492

Browse files
committed
add docs to weight function
1 parent 5dd17a0 commit 0846492

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/NetMSA.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,13 @@ end
182182
Return the weight of the row, calculated as:
183183
184184
```math
185-
\begin{aligned}
186-
w(r) = \begin{equation*}
187-
\begin{cases}
188-
w_1 \times \frac{x}{c}; & \text{ if r is not aligned} \\
185+
w(r) = \\begin{gather*}
186+
\\begin{cases}
187+
w_1 \\times \\frac{x}{c}; & \\text{ if r is not aligned} \\
189188
w_2 \times \frac{n_s}{c}; & \text{ if r is aligned} \\
190189
w_3; & \text{ if r is full} \\
191-
\end{cases}
192-
\end{equation*}
193-
\end{aligned}
190+
\\end{cases}
191+
\\end{gather*}
194192
```
195193
where n_s is the number of occurrences of the symbol s in the aligned row r,
196194
and c is the total number of columns in the row. The value of x is equal to zero
@@ -221,7 +219,7 @@ function weight(row; w1=0.25, w2=0.5, w3=1.0)
221219
if full(row)
222220
return w3;
223221
end
224-
222+
225223
c = length(row);
226224
max = mostfrequent(row)[1];
227225

0 commit comments

Comments
 (0)