Skip to content

Commit

Permalink
fix default dist in motifs
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed May 13, 2020
1 parent 7b80656 commit 626670d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/motifs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ seqs(m::Array{<:Subsequence}) = getfield.(m, :seq)
seqlength(m::Array{<:Subsequence}) = length(m[1].seq)
subseqtype(m::Array{<:Subsequence}) = subseqtype(m[1])

function motifs(p::Profile, k, found_motifs = Motif[]; r=2, th = p.m, dist = Euclidean())
function motifs(p::Profile, k, found_motifs = Motif[]; r=2, th = p.m, dist = ZEuclidean())
length(found_motifs) == k && return found_motifs
m = p.m
P = copy(p.P)
Expand Down

0 comments on commit 626670d

Please sign in to comment.