Skip to content

Commit e5c64f8

Browse files
committed
add docs to weight function
1 parent c14c979 commit e5c64f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/NetMSA.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,14 @@ end
181181
182182
Return the weight of the row, calculated as:
183183
184-
```math
185-
\frac{n!}{k!(n - k)!} = \binom{n}{k}
186-
```
187-
188184
```math
189185
w(r) = \begin{cases}
190186
w_1 \times \frac{x}{c}; & \text{ if r is not aligned} \\
191187
w_2 \times \frac{n_s}{c}; & \text{ if r is aligned} \\
192188
w_3; & \text{ if r is full} \\
193189
\end{cases}
194190
```
195-
where n_s is the number of occurrences of the symbol s in the aligned row r,
191+
where ``n_s`` is the number of occurrences of the symbol s in the aligned row r,
196192
and c is the total number of columns in the row. The value of x is equal to zero
197193
if every symbol in the row r occurred at most once, otherwise x is equal to the
198194
max number of occurrences (matches) of some symbol in r.

0 commit comments

Comments
 (0)