write_gmt: Write a nested list to a GMT file

Description Usage Arguments Details Value See Also Examples

View source: R/io.R

Description

Write a nested list to a GMT file

Usage

1
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

1
2
3
4
## Not run: 
write_gmt(gene_set, "gene_set.gmt")

## End(Not run)

cmapR documentation built on Dec. 12, 2020, 2 a.m.