mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Same bug but for fastq sequence writing only
Former-commit-id: 86d208fe66828da9943c559df80ff095b07eaf7a
This commit is contained in:
@ -12,6 +12,9 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
obioptions.SetStrictReadWorker(2)
|
||||
obioptions.SetStrictWriteWorker(2)
|
||||
|
||||
optionParser := obioptions.GenerateOptionParser(obiconvert.OptionSet)
|
||||
|
||||
_, args := optionParser(os.Args)
|
||||
|
@ -66,7 +66,9 @@ func FormatFastqBatch(batch obiiter.BioSequenceBatch,
|
||||
_formatFastq(&bs, seq, formater)
|
||||
|
||||
if first {
|
||||
bs.Grow(lt + (len(bs.Bytes())-seq.Len())*batch.Len()*5/4)
|
||||
growing := lt + (len(bs.Bytes())-2*seq.Len())*batch.Len()*5/4
|
||||
log.Debugf("Grow Fastq block of %d", growing)
|
||||
bs.Grow(growing)
|
||||
first = false
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
// TODO: The version number is extracted from git. This induces that the version
|
||||
// corresponds to the last commit, and not the one when the file will be
|
||||
// commited
|
||||
var _Commit = "5073957"
|
||||
var _Commit = "d208ff8"
|
||||
var _Version = "Release 4.2.0"
|
||||
|
||||
// Version returns the version of the obitools package.
|
||||
|
Reference in New Issue
Block a user