mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 13:29:56 +00:00
Mark edits(::Variant)
as private API
This commit is contained in:
parent
a573693737
commit
386acba8ab
2 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ function Variant(
|
||||||
return Variant(ref, edits)
|
return Variant(ref, edits)
|
||||||
end
|
end
|
||||||
|
|
||||||
edits(v::Variant) = v.edits
|
_edits(v::Variant) = v.edits
|
||||||
reference(v::Variant) = v.ref
|
reference(v::Variant) = v.ref
|
||||||
Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits
|
Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits
|
||||||
|
|
||||||
|
|
|
@ -119,8 +119,8 @@ function translate(var::Variation{S,T}, aln::PairwiseAlignment{S,S}) where {S,T}
|
||||||
end
|
end
|
||||||
|
|
||||||
function variations(v::Variant{S,T}) where {S,T}
|
function variations(v::Variant{S,T}) where {S,T}
|
||||||
vs = Vector{Variation{S,T}}(undef, length(edits(v)))
|
vs = Vector{Variation{S,T}}(undef, length(_edits(v)))
|
||||||
for (i, e) in enumerate(edits(v))
|
for (i, e) in enumerate(_edits(v))
|
||||||
vs[i] = Variation{S,T}(reference(v), e)
|
vs[i] = Variation{S,T}(reference(v), e)
|
||||||
end
|
end
|
||||||
return vs
|
return vs
|
||||||
|
|
Loading…
Reference in a new issue