These functions handle input/output of sequences in the commonly used FASTQ format,
typically used for storing DNA sequences (reads) after sequencing.
The sequences are stored in a Fastq
object. This is an extension of a data.frame
containing three text-columns named Header, Sequence and Quality. If
other columns are present, these will be ignored by writeFastq
.
The Fastq
object can be treated as a data.frame
, but the generic functions
plot.Fastq
and summary.Fastq
are defined. The data.frame
property makes it straightforward to manipulate all headers or all sequences, or to extract
or delete entries (rows), or to merge several data sets using rbind
.
A Fastq
object can also be treated as a Fasta
object. Using writeFasta
will write the Fastq
object to a file in Fasta
format.