From 1c6ab1c5590701a1715b00c0479cb45d3e5c76fa Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 17 Jun 2025 09:06:42 +0200 Subject: [PATCH] Changes to be committed: modified: pkg/obingslibrary/multimatch.go modified: pkg/obioptions/version.go --- pkg/obingslibrary/multimatch.go | 8 ++++++++ pkg/obioptions/version.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/obingslibrary/multimatch.go b/pkg/obingslibrary/multimatch.go index cbd6ebf..b28befa 100644 --- a/pkg/obingslibrary/multimatch.go +++ b/pkg/obingslibrary/multimatch.go @@ -237,6 +237,14 @@ func (marker *Marker) beginFixedTagExtractor( return "" } + fe := begin - spacer + if fb > fe { + log.Panicf("On sequence: %s, begin %d is greater than end %d for a tag length of %d - begin:%d spacer:%d", + sequence.Id(), + fb, fe, taglength, begin, spacer, + ) + } + return sequence.String()[fb:(begin - spacer)] } diff --git a/pkg/obioptions/version.go b/pkg/obioptions/version.go index 20de387..f2b2585 100644 --- a/pkg/obioptions/version.go +++ b/pkg/obioptions/version.go @@ -8,7 +8,7 @@ import ( // corresponds to the last commit, and not the one when the file will be // commited -var _Commit = "7b23985" +var _Commit = "38dcd98" var _Version = "Release 4.4.0" // Version returns the version of the obitools package.