mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-21 21:16:05 +00:00
Mark edit(::Variation)
as private function
This commit is contained in:
parent
2f4f5fb5ae
commit
a573693737
1 changed files with 5 additions and 5 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue