mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
before big changes
This commit is contained in:
@@ -23,7 +23,7 @@ func WriterDispatcher(prototypename string,
|
||||
go func() {
|
||||
for newflux := range dispatcher.News() {
|
||||
jobDone.Add(1)
|
||||
go func(newflux string) {
|
||||
go func(newflux int) {
|
||||
data, err := dispatcher.Outputs(newflux)
|
||||
|
||||
if err != nil {
|
||||
@@ -35,7 +35,7 @@ func WriterDispatcher(prototypename string,
|
||||
options...)
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("cannot open the output file for key %s", newflux)
|
||||
log.Fatalf("cannot open the output file for key %d", newflux)
|
||||
}
|
||||
|
||||
out.Recycle()
|
||||
|
||||
@@ -24,7 +24,7 @@ func _FastseqReader(seqfile C.fast_kseq_p,
|
||||
i := 0
|
||||
ii := 0
|
||||
|
||||
slice := make(obiseq.BioSequenceSlice, 0, batch_size)
|
||||
slice := obiseq.GetBioSequenceSlice()
|
||||
|
||||
for l := int64(C.next_fast_sek(seqfile)); l > 0; l = int64(C.next_fast_sek(seqfile)) {
|
||||
|
||||
@@ -125,7 +125,7 @@ func ReadFastSeqBatchFromFile(filename string, options ...WithOption) (obiseq.IB
|
||||
|
||||
if parser != nil {
|
||||
return IParseFastSeqHeaderBatch(newIter, options...), err
|
||||
}
|
||||
}
|
||||
|
||||
return newIter, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user