Learn R Programming

MotifDb (version 1.14.0)

export: export

Description

Writes all matrices in the supplied list, in the specified format, to the specified connection.

Usage

"export"(object, con, format, ...) "export"(object, con, format, ...) "export"(object, con, format, ...)

Arguments

object
a MotifList object.
con
either a file connection or a filename or missing, implying stdout.
format
a character string, currently only 'meme' and 'transfac', which both produce the same result
...
ignore this

Value

The matrices list is written to the specified connection in the specified format.

See Also

MotifDb, query, subset, flyFactorSurvey, hPDI, jaspar, ScerTF, uniprobe

Examples

Run this code
  library (MotifDb)
    # identify all the SOX genes
  sox.indices = grep ('^sox', values (MotifDb)$geneSymbol, ignore.case=TRUE)
  matrices = MotifDb [sox.indices]
  export (matrices, con='SoxGenes-meme.txt', format='meme')

Run the code above in your browser using DataLab