Add public reference base getter for Variation

This commit is contained in:
Thomas A. Christensen II 2022-07-11 12:54:51 -05:00
parent ccbe6eed62
commit cab314ec0b
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -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