Learn R Programming

cobindR (version 1.10.0)

write.sequences: writes the sequences of a cobindr-object into a fasta file.

Description

writes the sequences of a cobindr-object into a fasta file.

Usage

"write.sequences"(x, slotname = "sequences", file = NULL)

Arguments

x
an object of the class "cobindr", which will hold all necessary information about the sequences.
slotname
string, describing whether to use foreground sequences (default) or background sequences
file
path to file. If filename is 'NULL' a filename is generated based on the name of the object of class "cobindr".

See Also

write.bindingsites.table, write.bindingsites, write.pairs, write

Examples

Run this code
cfg <- cobindRConfiguration()
sequence_type(cfg) <- 'fasta'
sequence_source(cfg) <- system.file('extdata/example.fasta', package='cobindR')
# avoid complaint of validation mechanism 
pfm_path(cfg) <- system.file('extdata/pfms',package='cobindR')
pairs(cfg) <- '' 
runObj <- cobindr(cfg)
write.sequences(runObj, file = file.path(tempfile("example.txt",tempdir())) )

Run the code above in your browser using DataLab