Learn R Programming

peplib (version 1.5.1)

write.sequences: Write out the sequences as a sequence file

Description

Write out the given sequences as a sequence file

Usage

write.sequences(seqs, motifModel = NULL, file = "", append = FALSE)

Arguments

seqs
Sequences object containing sequences to be written
motifModel
An optional MotifModel fit to the Sequences. This make it so that only the motifs are output!
file
Path to file where sequences will be written
append
logical. Only relevant if file is a character string. If TRUE, the output is appended to the file. If FALSE, any existing file of the name is destroyed.

Details

If a MotifModel is passed, then the motifs are extracted from the sequences and only those are output. Otherwise, the complete sequences are written. The format used is one sequence per line.

See Also

Sequences, MotifModel, write.sequences.