Patch a bug for multiple amplicon per sequence.

Former-commit-id: b252d2de8e1a85d65c2951aa1958ee038e35741d
This commit is contained in:
2023-03-31 15:10:25 +02:00
parent 84b3e4d097
commit 3f69fa41d6
4 changed files with 42 additions and 33 deletions

View File

@ -18,7 +18,7 @@ import (
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obiutils"
)
var _FileChunkSize = 1 << 26
var _FileChunkSize = 1 << 28
type _FileChunk struct {
raw io.Reader
@ -197,7 +197,7 @@ func _ReadFlatFileChunk(reader io.Reader, readers chan _FileChunk) {
}
// Create an extended buffer to read from if the end of the last entry is not found in the current buffer
extbuff := make([]byte, 1<<20)
extbuff := make([]byte, 1<<22)
buff = buff[:l]
end := 0
ic := 0
@ -260,7 +260,7 @@ func ReadEMBL(reader io.Reader, options ...WithOption) obiiter.IBioSequence {
// for j := 0; j < opt.ParallelWorkers(); j++ {
for j := 0; j < nworkers; j++ {
go _ParseEmblFile(opt.Source(),entry_channel, newIter)
go _ParseEmblFile(opt.Source(), entry_channel, newIter)
}
go _ReadFlatFileChunk(reader, entry_channel)