mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-10 01:24:41 +00:00
Big change iin the data model, and a first version of obiuniq
This commit is contained in:
1 parent
9737f97084
commit
2e7c1834b0
43 files changed
+664
-440
No files matched your search
@@ -58,7 +58,7 @@ func ISequenceChunkOnDisk(iterator obiseq.IBioSequenceBatch,
|
||||
}()
|
||||
|
||||
newIter.Wait()
|
||||
close(newIter.Channel())
|
||||
newIter.Close()
|
||||
}()
|
||||
|
||||
obiformats.WriterDispatcher(dir+"/chunk_%s.fastx",
|
||||
@@ -78,14 +78,15 @@ func ISequenceChunkOnDisk(iterator obiseq.IBioSequenceBatch,
|
||||
panic(err)
|
||||
}
|
||||
|
||||
chunck := make(obiseq.BioSequenceSlice, 0, 10000)
|
||||
|
||||
//chunck := make(obiseq.BioSequenceSlice, 0, 10000)
|
||||
chunck := obiseq.MakeBioSequenceSlice()
|
||||
for iseq.Next() {
|
||||
b := iseq.Get()
|
||||
chunck = append(chunck, b.Slice()...)
|
||||
b.Recycle()
|
||||
}
|
||||
|
||||
newIter.Channel() <- obiseq.MakeBioSequenceBatch(order, chunck...)
|
||||
newIter.Push(obiseq.MakeBioSequenceBatch(order, chunck))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user