write_gmt {cmapR} | R Documentation

## Write a nested list to a GMT file

### Description

Write a nested list to a GMT file

### Usage

    write_gmt(lst, fname)

### Arguments

`lst` | the nested list to write. See `details`.
`fname` | the desired file name

### Details

`lst` needs to be a nested list where each sub-list is itself a list with the following fields: - `head`: the name of the data - `desc`: description of the corresponding data - `len`: the number of data items - `entry`: a vector of the data items

### Value

silently returns NULL

### See Also

Visit http://clue.io/help for details on the GMT file format

Other CMap parsing functions: `lxb2mat()`, `parse.gmt()`, `parse.gmx()`, `parse.grp()`, `write_grp()`

### Examples

    ## Not run:
    write_gmt(gene_set, "gene_set.gmt")

    ## End(Not run)

[Package cmapR version 1.2.1 Index]