From a07d348aea1fc19ff25108ca15cbc7a3baf02dad Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Sun, 31 Jul 2022 21:52:04 +0200 Subject: [PATCH] small change --- pkg/obialign/alignment.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/obialign/alignment.go b/pkg/obialign/alignment.go index 58edb1d..fd9656f 100644 --- a/pkg/obialign/alignment.go +++ b/pkg/obialign/alignment.go @@ -11,6 +11,7 @@ import ( "git.metabarcoding.org/lecasofts/go/obitools/pkg/obiseq" ) +// A pool of byte slices. var _BuildAlignArenaPool = sync.Pool{ New: func() interface{} { bs := make([]byte, 0, 300) @@ -18,6 +19,8 @@ var _BuildAlignArenaPool = sync.Pool{ }, } +// It takes two sequences, a path, a gap character, and two buffers, and it builds the alignment by +// walking the path and copying the sequences into the buffers func _BuildAlignment(seqA, seqB []byte, path []int, gap byte, bufferA, bufferB *[]byte) { *bufferA = (*bufferA)[:0]