1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-12-23 21:28:18 +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)) op = convert(BioAlignments.Operation, Char(c))
if BioAlignments.ismatchop(op) || BioAlignments.isdeleteop(op) if BioAlignments.ismatchop(op) || BioAlignments.isdeleteop(op)
ret += len ret += len
len = 0
end end
len = 0
end end
end end
return ret return ret