mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-09 17:24:41 +00:00
Refactor chunk processing and update version commit
Optimize chunk processing by moving variable declarations inside the loop and update the commit hash in version.go to reflect the latest changes.
This commit is contained in:
1 parent
f55dd553c7
commit
0678181023
2 files changed
+10
-10
No files matched your search
@@ -120,7 +120,6 @@ func ISequenceChunkOnDisk(iterator obiiter.IBioSequence,
|
||||
if dereplicate {
|
||||
u := make(map[string]*obiseq.BioSequence)
|
||||
var source string
|
||||
var chunk obiseq.BioSequenceSlice
|
||||
|
||||
for iseq.Next() {
|
||||
batch := iseq.Get()
|
||||
@@ -135,15 +134,16 @@ func ISequenceChunkOnDisk(iterator obiiter.IBioSequence,
|
||||
u[sstring] = seq
|
||||
}
|
||||
}
|
||||
|
||||
chunk = obiseq.MakeBioSequenceSlice(len(u))
|
||||
i := 0
|
||||
|
||||
for _, seq := range u {
|
||||
chunk[i] = seq
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
chunk := obiseq.MakeBioSequenceSlice(len(u))
|
||||
i := 0
|
||||
|
||||
for _, seq := range u {
|
||||
chunk[i] = seq
|
||||
i++
|
||||
}
|
||||
|
||||
newIter.Push(obiiter.MakeBioSequenceBatch(source, order, chunk))
|
||||
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user