diff --git a/src/Variant.jl b/src/Variant.jl index 6242a7c..c3f1e8a 100644 --- a/src/Variant.jl +++ b/src/Variant.jl @@ -124,7 +124,7 @@ function Variant( return Variant(ref, edits) end -edits(v::Variant) = v.edits +_edits(v::Variant) = v.edits reference(v::Variant) = v.ref Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits diff --git a/src/Variation.jl b/src/Variation.jl index 76f1554..02794ad 100644 --- a/src/Variation.jl +++ b/src/Variation.jl @@ -119,8 +119,8 @@ function translate(var::Variation{S,T}, aln::PairwiseAlignment{S,S}) where {S,T} end function variations(v::Variant{S,T}) where {S,T} - vs = Vector{Variation{S,T}}(undef, length(edits(v))) - for (i, e) in enumerate(edits(v)) + vs = Vector{Variation{S,T}}(undef, length(_edits(v))) + for (i, e) in enumerate(_edits(v)) vs[i] = Variation{S,T}(reference(v), e) end return vs