From a573693737e2ca4edc3f11d65e652b2fd0ce0d1e Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 3 Jan 2023 21:28:20 -0600 Subject: [PATCH] Mark `edit(::Variation)` as private function --- src/Variation.jl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Variation.jl b/src/Variation.jl index 06bf4a1..76f1554 100644 --- a/src/Variation.jl +++ b/src/Variation.jl @@ -24,15 +24,15 @@ function Variation(ref::S, edit::AbstractString) where {S<:BioSequence} end function Variant(ref::S, vars::Vector{Variation{S,T}}) where {S<:BioSequence,T<:BioSymbol} - edits = edit.(vars) + edits = _edit.(vars) return Variant{S,T}(ref, edits) end reference(v::Variation) = v.ref -edit(v::Variation) = v.edit -mutation(v::Variation) = _mutation(edit(v)) -BioGenerics.leftposition(v::Variation) = leftposition(edit(v)) -BioGenerics.rightposition(v::Variation) = rightposition(edit(v)) +_edit(v::Variation) = v.edit +mutation(v::Variation) = _mutation(_edit(v)) +BioGenerics.leftposition(v::Variation) = leftposition(_edit(v)) +BioGenerics.rightposition(v::Variation) = rightposition(_edit(v)) Base.:(==)(x::Variation, y::Variation) = x.ref == y.ref && x.edit == y.edit Base.hash(x::Variation, h::UInt) = hash(Variation, hash((x.ref, x.edit), h))