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() {
|
func main() {
|
||||||
|
obioptions.SetStrictReadWorker(2)
|
||||||
|
obioptions.SetStrictWriteWorker(2)
|
||||||
|
|
||||||
optionParser := obioptions.GenerateOptionParser(obiconvert.OptionSet)
|
optionParser := obioptions.GenerateOptionParser(obiconvert.OptionSet)
|
||||||
|
|
||||||
_, args := optionParser(os.Args)
|
_, args := optionParser(os.Args)
|
||||||
|
@ -66,7 +66,9 @@ func FormatFastqBatch(batch obiiter.BioSequenceBatch,
|
|||||||
_formatFastq(&bs, seq, formater)
|
_formatFastq(&bs, seq, formater)
|
||||||
|
|
||||||
if first {
|
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
|
first = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
// TODO: The version number is extracted from git. This induces that the version
|
// 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
|
// corresponds to the last commit, and not the one when the file will be
|
||||||
// commited
|
// commited
|
||||||
var _Commit = "5073957"
|
var _Commit = "d208ff8"
|
||||||
var _Version = "Release 4.2.0"
|
var _Version = "Release 4.2.0"
|
||||||
|
|
||||||
// Version returns the version of the obitools package.
|
// Version returns the version of the obitools package.
|
||||||
|
Reference in New Issue
Block a user