Read the next sequence record from SequenceStream.
The identifier of the sequence is written here.
The sequence of the record is written here.
The qualities of the sequence is written here. Optional.
Remarks: If the sequence has no qualities, clear is called on
The SequenceStream object to read from.
0 on success, 1 on errors.
Read the first sequence of a FASTA file.
seqan::SequenceStream seqIO("in.fasta", seqan::SequenceStream::READ_SINGLE);
std::cerr << "ERROR: File does not contain any sequences!\n";
int res = readRecord(id, seq, seqIO);
if (res != 0)
std::cerr << "ERROR: Could not read first record!\n";
SeqAn - Sequence Analysis Library - www.seqan.de