mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-25 22:59:56 +00:00
Add accessor functions for Edit properties
This commit is contained in:
parent
101f401635
commit
1e6f6ea075
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ function Base.parse(::Type{<:Edit{Se, Sy}}, s::Union{String, SubString{String}})
|
|||
end
|
||||
end
|
||||
|
||||
mutation(e::Edit) = e.x
|
||||
BioGenerics.leftposition(e::Edit) = e.pos
|
||||
|
||||
#=
|
||||
@noinline throw_parse_error(T, p::Integer) = error("Failed to parse $T at byte $p")
|
||||
|
||||
|
|
Loading…
Reference in a new issue