mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-10 09:40:27 +00:00
remove the slice pool management
This commit is contained in:
@@ -317,8 +317,6 @@ func MinionDenoise(graph *obigraph.Graph[*obiseq.BioSequence, Mutation],
|
||||
|
||||
}
|
||||
|
||||
pack.Recycle(false)
|
||||
|
||||
} else {
|
||||
clean = obiseq.NewBioSequence(v.Id(), v.Sequence(), v.Definition())
|
||||
clean.SetAttribute("obiconsensus_consensus", false)
|
||||
@@ -403,7 +401,6 @@ func MinionClusterDenoise(graph *obigraph.Graph[*obiseq.BioSequence, Mutation],
|
||||
clean = (*graph.Vertices)[i].Copy()
|
||||
clean.SetAttribute("obiconsensus_consensus", false)
|
||||
}
|
||||
pack.Recycle(false)
|
||||
|
||||
clean.SetAttribute(sample_key, graph.Name)
|
||||
|
||||
@@ -436,7 +433,6 @@ func CLIOBIMinion(itertator obiiter.IBioSequence) obiiter.IBioSequence {
|
||||
log.Infof("Sequence dataset of %d sequeences loaded\n", len(db))
|
||||
|
||||
samples := SeqBySamples(db, CLISampleAttribute())
|
||||
db.Recycle(false)
|
||||
|
||||
log.Infof("Dataset composed of %d samples\n", len(samples))
|
||||
|
||||
|
||||
@@ -107,7 +107,6 @@ func IMatrix(iterator obiiter.IBioSequence) *MatrixData {
|
||||
for _, seq := range batch.Slice() {
|
||||
summary.Update(seq, mapAttribute)
|
||||
}
|
||||
batch.Recycle(true)
|
||||
}
|
||||
waiter.Done()
|
||||
}
|
||||
|
||||
@@ -172,7 +172,6 @@ func ISummary(iterator obiiter.IBioSequence, summarise []string) map[string]inte
|
||||
for _, seq := range batch.Slice() {
|
||||
summary.Update(seq)
|
||||
}
|
||||
batch.Recycle(true)
|
||||
}
|
||||
waiter.Done()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user