From cab314ec0baaa8b076cea5b8cbcfd86ce0aa71b1 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 11 Jul 2022 12:54:51 -0500 Subject: [PATCH] Add public reference base getter for Variation --- src/SequenceVariation.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SequenceVariation.jl b/src/SequenceVariation.jl index 7012c33..ca5b1f9 100644 --- a/src/SequenceVariation.jl +++ b/src/SequenceVariation.jl @@ -500,6 +500,10 @@ function _altbases(i::Insertion, reference::S, pos::UInt) where S <: BioSequence end end +function refbases(v::Variation) + return _refbases(mutation(v), reference(v), leftposition(v)) +end + export Insertion, Deletion, Substitution, @@ -507,6 +511,7 @@ export Insertion, Variation, reference, mutation, - variations + variations, + refbases end # module