mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Same bug but for fastq sequence writing only
Former-commit-id: 86d208fe66828da9943c559df80ff095b07eaf7a
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user