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:
Thomas A. Christensen II 2022-05-06 05:25:07 -05:00 committed by GitHub
parent 92a2d40553
commit d0f0f65d7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,6 +360,8 @@ function Base.show(io::IO, x::Variation)
print(io, x.ref[pos], pos, content.x) print(io, x.ref[pos], pos, content.x)
elseif content isa Deletion elseif content isa Deletion
print(io, 'Δ', pos, '-', pos + content.len - 1) print(io, 'Δ', pos, '-', pos + content.len - 1)
elseif content isa Insertion
print(io, pos, content.seq)
else else
print(io, pos, content.x) print(io, pos, content.x)
end end