From 82ba8386147f6b60d0dc58dd868f941e2d2bf4ce Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 3 Jan 2023 20:01:13 -0600 Subject: [PATCH] Add docstring for `mutation(::Edit)` --- src/Edit.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Edit.jl b/src/Edit.jl index 9ad5893..77c7dc6 100644 --- a/src/Edit.jl +++ b/src/Edit.jl @@ -42,6 +42,12 @@ function Base.parse(::Type{<:Edit{Se,Sy}}, s::Union{String,SubString{String}}) w end end +""" + _mutation(e::Edit) + +Returns the underlying [`Substitution`](@ref), [`Insertion`](@ref), or [`Deletion`](@ref) of +`e`. +""" _mutation(e::Edit) = e.x BioGenerics.leftposition(e::Edit) = e.pos function BioGenerics.rightposition(e::Edit)