From 8d14563f9d77cb0996ce6ab7839dc29d932e238f Mon Sep 17 00:00:00 2001 From: Konrad Herbst Date: Thu, 2 Jan 2020 17:35:16 +0100 Subject: [PATCH] :bug: Fix SAM.alignlength(record::Record)::Int (#37) Fixes issue #37 by re-initializing `len` in `SAM.alignlength`. --- src/sam/record.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sam/record.jl b/src/sam/record.jl index 407fe2f..6d4b149 100644 --- a/src/sam/record.jl +++ b/src/sam/record.jl @@ -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