From 450e54f4aaa366159a43995b9825fbc7109eb1ec Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 18 Apr 2023 12:08:13 +0200 Subject: [PATCH] Rename forward and reverse mitmatches tags Former-commit-id: faa0f41bf725da3c416326572cc90701704092da --- Release-notes.md | 5 +++++ pkg/obingslibrary/match.go | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Release-notes.md b/Release-notes.md index d97a371..490670e 100644 --- a/Release-notes.md +++ b/Release-notes.md @@ -31,6 +31,11 @@ obidistribute --pattern "pcr_reads/sample_%s_R1.fastq" -c sample tagged_library_R1.fastq obidistribute --pattern "pcr_reads/sample_%s_R2.fastq" -c sample tagged_library_R2.fastq ``` +### Enhancement + +- Rename the `forward_mismatches` and `reverse_mismatches` from instanced by `obimutiplex` into + `forward_error` and `reverse_error` to be coherent with the tags instanced by `obipcr` + ### Corrected bugs - Correction of a bug in memory management and Slice recycling. diff --git a/pkg/obingslibrary/match.go b/pkg/obingslibrary/match.go index 0193101..dac3a92 100644 --- a/pkg/obingslibrary/match.go +++ b/pkg/obingslibrary/match.go @@ -269,13 +269,13 @@ func (match *DemultiplexMatch) ExtractBarcode(sequence *obiseq.BioSequence, inpl if match.ForwardMatch != "" { annot["forward_match"] = match.ForwardMatch - annot["forward_mismatches"] = match.ForwardMismatches + annot["forward_error"] = match.ForwardMismatches annot["forward_tag"] = match.ForwardTag } if match.ReverseMatch != "" { annot["reverse_match"] = match.ReverseMatch - annot["reverse_mismatches"] = match.ReverseMismatches + annot["reverse_error"] = match.ReverseMismatches annot["reverse_tag"] = match.ReverseTag }