From ef4460bbbf0172cf68edb65397616dba8b7fa0f0 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Tue, 3 Jan 2023 20:07:31 -0600 Subject: [PATCH] Replace field accession with getter function usage --- src/Variant.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Variant.jl b/src/Variant.jl index 02f2d03..fd6cccb 100644 --- a/src/Variant.jl +++ b/src/Variant.jl @@ -129,7 +129,7 @@ reference(v::Variant) = v.ref Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits function reconstruct!(seq::S, x::Variant{S}) where {S} - len = length(x.ref) + sum(edit -> lendiff(edit), x.edits) + len = length(x.ref) + sum(edit -> _lendiff(edit), _edits(x)) resize!(seq, len % UInt) refpos = seqpos = 1 for edit in x.edits