Add private alternate base getter for Insertion

This commit is contained in:
Thomas A. Christensen II 2022-07-11 12:52:16 -05:00
parent 1b7c7f86d7
commit ccbe6eed62
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

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