read.gmt: Read and write .gmt file

Description Usage Arguments Value See Also Examples

View source: R/read.gmt.R

Description

Read/write gene set collections from/to a .gmt file

Usage

1
2
read.gmt(filename)
write.gmt(obj, filename)

Arguments

filename

The name of a .gmt file. As input, it should be a tab-separated text file, with one row per gene set. Column 1 has gene set names (identifiers), column 2 has gene set descriptions, remaining columns are gene ids for genes in that gene set.

obj

a list. See Value explained below.

Value

Function read.gmt returns a list with three components:

genesets

List of gene names (identifiers) in each gene set

geneset.names

Vector of gene set names (identifiers)

geneset.descriptions

Vector of gene set descriptions

See Also

msigdb.genesets, msigdb.version

Examples

1
2
3
4
## Not run: 
x = read.gmt('c2.cp.v7.4.symbols.gmt')

## End(Not run)

mw201608/msigdb documentation built on Aug. 13, 2021, 10:42 p.m.