Add private alternate base getter for Deletion

This commit is contained in:
Thomas A. Christensen II 2022-07-11 12:51:35 -05:00
parent bc073eaf20
commit 145e9e5f88
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -480,6 +480,14 @@ function _refbases(d::Deletion, reference::S, pos::UInt) where S <: BioSequence
end end
end end
function _altbases(d::Deletion, reference::S, pos::UInt) where S <: BioSequence
if pos == 1
return S([reference[pos+1]])
else
return S([reference[pos-1]])
end
end
export Insertion, export Insertion,
Deletion, Deletion,
Substitution, Substitution,