From 91c3acc85ee9c9aec558b94f3b41fa38d9d84931 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 6 Dec 2022 10:59:31 -0600 Subject: [PATCH] Add equality function for Variant --- src/SequenceVariation.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SequenceVariation.jl b/src/SequenceVariation.jl index 522a55f..18db51a 100644 --- a/src/SequenceVariation.jl +++ b/src/SequenceVariation.jl @@ -308,6 +308,7 @@ end edits(v::Variant) = v.edits reference(v::Variant) = v.ref +Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits function lendiff(edit::Edit) x = edit.x