Fix reference(::Variation)

`reference(::Variation)` used the wrong field name. Fix that so I can use
it downstream.
This commit is contained in:
Thomas A. Christensen II 2022-07-11 12:53:35 -05:00
parent ece50c1ee9
commit a80ff869ce
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -367,7 +367,7 @@ function Variation(ref::S, edit::AbstractString) where {S<:BioSequence}
return Variation{S,T}(ref, e)
end
reference(v::Variation) = v.reference
reference(v::Variation) = v.ref
edit(v::Variation) = v.edit
mutation(v::Variation) = mutation(edit(v))
BioGenerics.leftposition(v::Variation) = leftposition(edit(v))