Patch a bug on the reading of each last sequence of a chunck in the fasta reader

Former-commit-id: eacf64112582befa4751f66352999a28abf349f7
This commit is contained in:
Eric Coissac
2024-05-27 10:17:17 +02:00
parent d249902073
commit 98b3bc2a8c
3 changed files with 20 additions and 6 deletions

View File

@@ -153,6 +153,12 @@ func _ParseFastaFile(source string,
}
}
if state == 6 {
s := obiseq.NewBioSequence(identifier, slices.Clone(seqBytes.Bytes()), definition)
s.SetSource(source)
sequences = append(sequences, s)
}
if len(sequences) > 0 {
if no_order {
out.Push(obiiter.MakeBioSequenceBatch(chunck_order(), sequences))