mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-02-03 06:40:33 +00:00
Merge pull request #70 from metabarcoding/push-kuwnszsxmxpn
Refactor chunk processing and update version commit
This commit is contained in:
@@ -120,7 +120,6 @@ func ISequenceChunkOnDisk(iterator obiiter.IBioSequence,
|
|||||||
if dereplicate {
|
if dereplicate {
|
||||||
u := make(map[string]*obiseq.BioSequence)
|
u := make(map[string]*obiseq.BioSequence)
|
||||||
var source string
|
var source string
|
||||||
var chunk obiseq.BioSequenceSlice
|
|
||||||
|
|
||||||
for iseq.Next() {
|
for iseq.Next() {
|
||||||
batch := iseq.Get()
|
batch := iseq.Get()
|
||||||
@@ -135,15 +134,16 @@ func ISequenceChunkOnDisk(iterator obiiter.IBioSequence,
|
|||||||
u[sstring] = seq
|
u[sstring] = seq
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
chunk = obiseq.MakeBioSequenceSlice(len(u))
|
chunk := obiseq.MakeBioSequenceSlice(len(u))
|
||||||
i := 0
|
i := 0
|
||||||
|
|
||||||
for _, seq := range u {
|
for _, seq := range u {
|
||||||
chunk[i] = seq
|
chunk[i] = seq
|
||||||
|
i++
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
newIter.Push(obiiter.MakeBioSequenceBatch(source, order, chunk))
|
newIter.Push(obiiter.MakeBioSequenceBatch(source, order, chunk))
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
// corresponds to the last commit, and not the one when the file will be
|
// corresponds to the last commit, and not the one when the file will be
|
||||||
// commited
|
// commited
|
||||||
|
|
||||||
var _Commit = "547135c"
|
var _Commit = "f55dd55"
|
||||||
var _Version = "Release 4.4.0"
|
var _Version = "Release 4.4.0"
|
||||||
|
|
||||||
// Version returns the version of the obitools package.
|
// Version returns the version of the obitools package.
|
||||||
|
|||||||
Reference in New Issue
Block a user