mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Patch for some lost of data during sequence writing
This commit is contained in:
@ -61,6 +61,7 @@ func WriteFastq(iterator obiiter.IBioSequence,
|
||||
|
||||
nwriters := opt.ParallelWorkers()
|
||||
|
||||
obiiter.RegisterAPipe()
|
||||
chunkchan := make(chan FileChunck)
|
||||
|
||||
header_format := opt.FormatFastSeqHeader()
|
||||
@ -74,6 +75,7 @@ func WriteFastq(iterator obiiter.IBioSequence,
|
||||
time.Sleep(time.Millisecond)
|
||||
}
|
||||
close(chunkchan)
|
||||
obiiter.UnregisterPipe()
|
||||
log.Debugln("End of the fastq file writing")
|
||||
}()
|
||||
|
||||
@ -123,7 +125,6 @@ func WriteFastq(iterator obiiter.IBioSequence,
|
||||
file.Close()
|
||||
}
|
||||
}
|
||||
|
||||
}()
|
||||
|
||||
return newIter, nil
|
||||
|
Reference in New Issue
Block a user