Add equality function for Variation

This commit is contained in:
Thomas A. Christensen II 2022-06-14 16:34:36 -05:00
parent 5f7d5e59a1
commit 70965732cf
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

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