Read all sequence records from a SequenceStream object.
The identifiers of the sequence are written here.
The sequence of the record is written here.
The qualities of the sequence is written here. Optional.
Remarks: If the sequences have no qualities, as in FASTA files, the StringSet will contain empty strings.
The SequenceStream object to read from.
0 on success, 1 on errors.
Read the sequences of a FASTA file.
seqan::SequenceStream seqIO("in.fasta", seqan::SequenceStream::READ_ALL);
int res = readAll(ids, seqs, seqIO);
if (res != 0)
std::cerr << "ERROR: Could not read records!\n";
SeqAn - Sequence Analysis Library - www.seqan.de