mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 13:29:56 +00:00
Fix show function for Variations with Insertion edits (#3)
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
92a2d40553
commit
d0f0f65d7f
1 changed files with 7 additions and 5 deletions
|
@ -360,6 +360,8 @@ function Base.show(io::IO, x::Variation)
|
|||
print(io, x.ref[pos], pos, content.x)
|
||||
elseif content isa Deletion
|
||||
print(io, 'Δ', pos, '-', pos + content.len - 1)
|
||||
elseif content isa Insertion
|
||||
print(io, pos, content.seq)
|
||||
else
|
||||
print(io, pos, content.x)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue