Write sequence records from to a SequenceStream object.
The records are appended to the file if you have written out any previously. When writing out Dna5, qualities are automatically taken from the sequence characters.
The SequenceStream object to write to.
Identifiers to write out.
Sequences to write out.
Qualities to write out. Optional.
Remarks: Qualities are ignored if the file format does not suppor them. If none are given for FASTQ, score 40 is written out for all.
The configuration for writing FASTA and FASTQ files.
0 on success, 1 on errors.
Write out all sequences.
seqan::SequenceStream seqIO("in.fasta", seqan::SequenceStream::WRITE);
int res = writeAll(seqIO, ids, seqs);
if (res != 0)
std::cerr << "ERROR: Could not write records!\n";
SeqAn - Sequence Analysis Library - www.seqan.de