export {MotifDb} | R Documentation

## export

### Description

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

### Usage

    ## S4 method for signature 'MotifList,connection,character'
    export(object, con, format, ...)
    ## S4 method for signature 'MotifList,character,character'
    export(object, con, format, ...)
    ## S4 method for signature 'MotifList,missing,character'
    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.

### Author(s)

Paul Shannon

### See Also

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

### Examples

      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')

[Package MotifDb version 1.36.0 Index]