writeGMT: writeGMT

Description Usage Arguments Value Examples

View source: R/lib_enrichment.R

Description

Created for future use and simplification of writing .gmt files from the package.

Usage

1
writeGMT(s, file = NA, link = rep("", length(s)))

Arguments

s

list of gene sets in current R session. Each entry will become a row in the GMT file.

file

file name to write to

link

default is "". This is the second column of a GMT file and is usually a hyperlink or note about the origin of the term

Value

Nothing is returned. A file is written.

Examples

1
2
3
4
5
6
7
8
# Make an example list() to show the GMT format
set <- list( term1=c('gene_name1','gene_name2'),
             term2=c('gene_name3','gene_name4','gene_name5') )
## Not run: 
# Write a GMT file for "set"
writeGMT( set, 'my_file.gmt')

## End(Not run)

RITAN documentation built on Nov. 8, 2020, 8:16 p.m.