These functions handle input/output of sequences in the commonly used FASTA format.
For every sequence it is presumed there is one Header-line starting with a ‘>’.
The sequences are stored in a Fasta
object. This is an extension of a data.frame
containing two text-columns named Header and Sequence. If other columns are
present, these will be ignored by writeFasta
.
The Fasta
object can be treated as a data.frame
, but the generic functions plot.Fasta
and summary.Fasta
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
.