1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-12-23 13:28:16 +00:00

🐛 Fix SAM.alignlength(record::Record)::Int (#37)

Fixes issue #37 by re-initializing `len` in `SAM.alignlength`.
This commit is contained in:
Konrad Herbst 2020-01-02 17:35:16 +01:00 committed by Ciarán O'Mara
parent 6f03bef623
commit 8d14563f9d

View file

@ -327,8 +327,8 @@ function alignlength(record::Record)::Int
op = convert(BioAlignments.Operation, Char(c))
if BioAlignments.ismatchop(op) || BioAlignments.isdeleteop(op)
ret += len
len = 0
end
len = 0
end
end
return ret