Small change in consensus weight

Former-commit-id: 58bcc67044b82e4e1d9e0e52be336ae02ab248e9
This commit is contained in:
Eric Coissac
2024-06-19 09:11:59 +02:00
parent a812fe8b72
commit 73996bb0b7
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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