Skip to content

Commit c05b372

Browse files
committed
add docs to weight function
1 parent daaa7fe commit c05b372

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NetMSA.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ end
182182
Return the weight of the row, calculated as:
183183
184184
```math
185-
w(r) = \begin{equation*}
185+
$w(r) = \begin{equation*}
186186
\begin{cases}
187187
w_1 \times \frac{x}{c}; & \text{ if r is not aligned} \\
188188
w_2 \times \frac{n_s}{c}; & \text{ if r is aligned} \\
189189
w_3; & \text{ if r is full} \\
190190
\end{cases}
191-
\end{equation*}
191+
\end{equation*}$
192192
```
193193
where n_s is the number of occurrences of the symbol s in the aligned row r,
194194
and c is the total number of columns in the row. The value of x is equal to zero
@@ -219,7 +219,7 @@ function weight(row; w1=0.25, w2=0.5, w3=1.0)
219219
if full(row)
220220
return w3;
221221
end
222-
222+
223223
c = length(row);
224224
max = mostfrequent(row)[1];
225225

0 commit comments

Comments
 (0)