mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-12-23 08:48:17 +00:00
Add equality function for Variation
This commit is contained in:
parent
5f7d5e59a1
commit
70965732cf
1 changed files with 1 additions and 0 deletions
|
@ -356,6 +356,7 @@ reference(v::Variation) = v.reference
|
|||
edit(v::Variation) = v.edit
|
||||
mutation(v::Variation) = mutation(edit(v))
|
||||
BioGenerics.leftposition(v::Variation) = leftposition(edit(v))
|
||||
Base.:(==)(x::Variation, y::Variation) = x.ref == y.ref && x.edit == y.edit
|
||||
|
||||
function is_valid(v::Variation)
|
||||
isempty(v.ref) && return false
|
||||
|
|
Loading…
Reference in a new issue