mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 21:39:55 +00:00
Add private alternate base getter for Insertion
This commit is contained in:
parent
1b7c7f86d7
commit
ccbe6eed62
1 changed files with 8 additions and 0 deletions
|
@ -492,6 +492,14 @@ function _refbases(i::Insertion, reference::S, pos::UInt) where S <: BioSequence
|
||||||
return S([reference[pos]])
|
return S([reference[pos]])
|
||||||
end
|
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,
|
export Insertion,
|
||||||
Deletion,
|
Deletion,
|
||||||
Substitution,
|
Substitution,
|
||||||
|
|
Loading…
Reference in a new issue