Mark edits(::Variant) as private API

This commit is contained in:
Thomas A. Christensen II 2023-01-03 21:35:16 -06:00
parent a573693737
commit 386acba8ab
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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