mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 05:19:55 +00:00
Add equals functionality to Deletion
This commit is contained in:
parent
f08d6eb991
commit
da2cbbd528
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ end
|
||||||
Deletion(x::Integer) = Deletion(convert(UInt, x))
|
Deletion(x::Integer) = Deletion(convert(UInt, x))
|
||||||
|
|
||||||
Base.length(x::Deletion) = Int(x.len)
|
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))
|
Base.hash(x::Deletion, h::UInt) = hash(Deletion, hash(x.len, h))
|
||||||
|
|
||||||
function _refbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence}
|
function _refbases(d::Deletion, reference::S, pos::UInt) where {S<:BioSequence}
|
||||||
|
|
Loading…
Reference in a new issue