1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-23 02:09:55 +00:00

Add support for meta-operations to BAM record

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-01-27 11:15:48 -06:00
parent de252188e8
commit 42b1063f51
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -447,6 +447,8 @@ function alignment(record::Record)::BioAlignments.Alignment
seqpos += len
elseif BioAlignments.isdeleteop(op)
refpos += len
elseif BioAlignments.ismetaop(op)
# Prevent error, but don't move ref or seq pos
else
error("operation $(op) is not supported")
end