From 73996bb0b7c324758430fec408ac9121cbd10020 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Wed, 19 Jun 2024 09:11:59 +0200 Subject: [PATCH] Small change in consensus weight Former-commit-id: 58bcc67044b82e4e1d9e0e52be336ae02ab248e9 --- pkg/obioptions/version.go | 2 +- pkg/obitools/obiconsensus/obiconsensus.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/obioptions/version.go b/pkg/obioptions/version.go index fc4adbc..3594970 100644 --- a/pkg/obioptions/version.go +++ b/pkg/obioptions/version.go @@ -7,7 +7,7 @@ import ( // TODO: The version number is extracted from git. This induces that the version // corresponds to the last commit, and not the one when the file will be // commited -var _Commit = "efad98d" +var _Commit = "1cf2768" var _Version = "Release 4.2.0" // Version returns the version of the obitools package. diff --git a/pkg/obitools/obiconsensus/obiconsensus.go b/pkg/obitools/obiconsensus/obiconsensus.go index 54f09f7..1b5b703 100644 --- a/pkg/obitools/obiconsensus/obiconsensus.go +++ b/pkg/obitools/obiconsensus/obiconsensus.go @@ -108,6 +108,8 @@ func BuildConsensus(seqs obiseq.BioSequenceSlice, sumCount += s.Count() } + log.Warnf("sumCount : %d", sumCount) + seq.SetCount(sumCount) seq.SetAttribute("seq_length", seq.Len()) seq.SetAttribute("kmer_size", kmer_size) @@ -288,7 +290,7 @@ func MinionDenoise(graph *obigraph.Graph[*obiseq.BioSequence, Mutation], clean.SetAttribute("obiminion_consensus", false) } - clean.SetCount(int(graph.VertexWeight(i))) + // clean.SetCount(int(graph.VertexWeight(i))) clean.SetAttribute(sample_key, graph.Name) denoised[i] = clean