mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-24 22:29:55 +00:00
Fix deletion equality function
Fixes: da2cbbd528
("Add equals functionality to Deletion")
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
5bd939a15c
commit
2ff4181dd8
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +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.:(==)(x::Deletion, y::Deletion) = 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}
|
||||
|
|
Loading…
Reference in a new issue