From 145e9e5f8853072c47b3cd004d0a3783810c9372 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 11 Jul 2022 12:51:35 -0500 Subject: [PATCH] Add private alternate base getter for Deletion --- src/SequenceVariation.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SequenceVariation.jl b/src/SequenceVariation.jl index 8ad2972..3bb4f73 100644 --- a/src/SequenceVariation.jl +++ b/src/SequenceVariation.jl @@ -480,6 +480,14 @@ function _refbases(d::Deletion, reference::S, pos::UInt) where S <: BioSequence 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, Deletion, Substitution,