mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Refactoring codes for removing buffer size options. An some other changes...
Former-commit-id: 10b57cc1a27446ade3c444217341e9651e89cdce
This commit is contained in:
@ -58,20 +58,13 @@ func (by _By) Sort(seqs []sSS) {
|
||||
|
||||
func ISequenceSubChunk(iterator obiiter.IBioSequence,
|
||||
classifier *obiseq.BioSequenceClassifier,
|
||||
sizes ...int) (obiiter.IBioSequence, error) {
|
||||
nworkers int) (obiiter.IBioSequence, error) {
|
||||
|
||||
bufferSize := iterator.BufferSize()
|
||||
nworkers := 4
|
||||
|
||||
if len(sizes) > 0 {
|
||||
nworkers = sizes[0]
|
||||
if nworkers <=0 {
|
||||
nworkers = 4
|
||||
}
|
||||
|
||||
if len(sizes) > 1 {
|
||||
bufferSize = sizes[1]
|
||||
}
|
||||
|
||||
newIter := obiiter.MakeIBioSequence(bufferSize)
|
||||
newIter := obiiter.MakeIBioSequence()
|
||||
|
||||
newIter.Add(nworkers)
|
||||
|
||||
|
Reference in New Issue
Block a user