Write one sequence record from to a SequenceStream object.
The record is 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.
The identifier to write.
The sequence to write.
The qualities to write out.
Remarks: If the sequence has no qualities, clear is called on
The configuration for writing FASTA and FASTQ files.
0 on success, 1 on errors.
Write out two sequences to a FASTQ file.
seqan::SequenceStream seqIO("in.fasta", seqan::SequenceStream::WRITE);
for (unsigned i = 0; i < length(ids); ++i)
int res = writeRecord(seqIO, ids, seqs);
if (res != 0)
std::cerr << "ERROR: Could not write records!\n";
SeqAn - Sequence Analysis Library - www.seqan.de