mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 13:29:56 +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
|
end
|
||||||
|
|
||||||
function Variant(ref::S, vars::Vector{Variation{S,T}}) where {S<:BioSequence,T<:BioSymbol}
|
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)
|
return Variant{S,T}(ref, edits)
|
||||||
end
|
end
|
||||||
|
|
||||||
reference(v::Variation) = v.ref
|
reference(v::Variation) = v.ref
|
||||||
edit(v::Variation) = v.edit
|
_edit(v::Variation) = v.edit
|
||||||
mutation(v::Variation) = _mutation(edit(v))
|
mutation(v::Variation) = _mutation(_edit(v))
|
||||||
BioGenerics.leftposition(v::Variation) = leftposition(edit(v))
|
BioGenerics.leftposition(v::Variation) = leftposition(_edit(v))
|
||||||
BioGenerics.rightposition(v::Variation) = rightposition(edit(v))
|
BioGenerics.rightposition(v::Variation) = rightposition(_edit(v))
|
||||||
Base.:(==)(x::Variation, y::Variation) = x.ref == y.ref && x.edit == y.edit
|
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))
|
Base.hash(x::Variation, h::UInt) = hash(Variation, hash((x.ref, x.edit), h))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue