Learn R Programming

GSNA (version 0.1.4.2)

write_gmt: write_gmt

Description

Takes a gene set collection (as a named list of vectors of genes), and a filename, and writes GMT format. Right now, keeping this private.

Usage

write_gmt(gsc, filename)

Value

Currently returns a NULL value, invisibly.

Arguments

gsc

A GSC (gene set collection) as a named list of character vectors of gene symbols, where the names of the list items correspond to gene set identifiers.

filename

An output file name.

Details

The function checks to see that the gsc argument is in fact a list of character vectors. If not, it fails.

Examples

Run this code
library(GSNA)
gmtfile <- tempfile()
Bai_gsc.GSC <- tmod2gsc( Bai_gsc.tmod )
write_gmt( gsc = Bai_gsc.GSC, filename = gmtfile )

Run the code above in your browser using DataLab