mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-25 22:59:56 +00:00
Add private reference base getter for Deletion
This commit is contained in:
parent
c1f47c7b22
commit
bc073eaf20
1 changed files with 8 additions and 0 deletions
|
@ -472,6 +472,14 @@ function _altbases(s::Substitution, reference::S, pos::UInt) where S <: BioSeque
|
||||||
return S([s.x])
|
return S([s.x])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function _refbases(d::Deletion, reference::S, pos::UInt) where S <: BioSequence
|
||||||
|
if pos == 1
|
||||||
|
return S(reference[UnitRange{Int}(pos, pos+length(d))])
|
||||||
|
else
|
||||||
|
return S(reference[UnitRange{Int}(pos-1, pos+length(d)-1)])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
export Insertion,
|
export Insertion,
|
||||||
Deletion,
|
Deletion,
|
||||||
Substitution,
|
Substitution,
|
||||||
|
|
Loading…
Reference in a new issue