Skip to content

Commit 5dd17a0

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/NetMSA.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,15 @@ end
182182
Return the weight of the row, calculated as:
183183
184184
```math
185-
$w(r) = \begin{equation*}
185+
\begin{aligned}
186+
w(r) = \begin{equation*}
186187
\begin{cases}
187188
w_1 \times \frac{x}{c}; & \text{ if r is not aligned} \\
188189
w_2 \times \frac{n_s}{c}; & \text{ if r is aligned} \\
189190
w_3; & \text{ if r is full} \\
190191
\end{cases}
191-
\end{equation*}$
192+
\end{equation*}
193+
\end{aligned}
192194
```
193195
where n_s is the number of occurrences of the symbol s in the aligned row r,
194196
and c is the total number of columns in the row. The value of x is equal to zero
@@ -346,14 +348,14 @@ function rowalignment(r, M)
346348
end
347349

348350
if score > gvalue
349-
gvalue = score;
351+
gvalue = score;
350352
g = deepcopy(p);
351353
g.best = getposition(t, N[t, :], p.value);
352354
g.bestvalue = score;
353355
end
354356

355357

356-
# display(p)
358+
# display(p)
357359

358360
end
359361
end

0 commit comments

Comments
 (0)