Read a given number of sequence records from SequenceStream.
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 first sequences of a FASTA file, up to ten.
seqan::SequenceStream seqIO("in.fasta", seqan::SequenceStream::READ_BATCH);
int res = readBatch(ids, seqs, seqIO, 10);
if (res != 0)
std::cerr << "ERROR: Could not read records!\n";
SeqAn - Sequence Analysis Library - www.seqan.de