From 386acba8ab0a17879ac4e1afb884d38fcd8be87a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 3 Jan 2023 21:35:16 -0600 Subject: [PATCH] Mark `edits(::Variant)` as private API --- src/Variant.jl | 2 +- src/Variation.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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