Add equals functionality to Deletion

This commit is contained in:
Thomas A. Christensen II 2022-12-30 14:46:42 -06:00
parent f08d6eb991
commit da2cbbd528

View file

@ -15,6 +15,7 @@ end
Deletion(x::Integer) = Deletion(convert(UInt, x))
Base.length(x::Deletion) = Int(x.len)
Base.:(==)(x::Substitution, y::Substitution) = length(x) == length(y)
Base.hash(x::Deletion, h::UInt) = hash(Deletion, hash(x.len, h))
function _refbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence}