Skip to content

Commit da68110

Browse files
committed
add docs to weight function
1 parent de94981 commit da68110

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NetMSA.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function full(row)::Bool
176176
return length(Set(row)) == 1 && !(missing in Set(row))
177177
end
178178

179-
"""
179+
@doc raw"""
180180
weight(row; w1=0.25, w2=0.5, w3=1.0)
181181
182182
Return the weight of the row, calculated as:
@@ -222,7 +222,7 @@ julia> M = createPeerMatrix(["abcbcdem", "acbcfg", "abchimn", "abcbcjkm"])
222222
function weight(row; w1=0.25, w2=0.5, w3=1.0)
223223
if full(row)
224224
return w3;
225-
end
225+
end
226226

227227
c = length(row);
228228
max = mostfrequent(row)[1];
@@ -337,7 +337,7 @@ function rowalignment(r, M)
337337
# display(stopcriteria(p, N, t) != true)
338338
t += 1;
339339
p.updated += 1;
340-
340+
341341
N = flydown(p, N);
342342
# display(N)
343343
display(p)
@@ -348,7 +348,7 @@ function rowalignment(r, M)
348348
p.bestvalue = score;
349349
p.updated = 0;
350350
end
351-
351+
352352
if score > gvalue
353353
gvalue = score;
354354
g = deepcopy(p);

0 commit comments

Comments
 (0)