read_MSigDB: Read a file in MSigDB/gmt format into a list

Description Usage Arguments Value Examples

Description

This function reads a GMT file and creates a list of gene sets.

Usage

1
read_MSigDB(gmtfile, min.size = 0, max.size = -1, simplify = TRUE)

Arguments

gmtfile

a text file in 'gmt' format. See 'parse_a_line_in_gmt' function for detail.

min.size

The minimum gene set size to read. Defaults to 0.

max.size

The maximum gene set size to read. Defaults to no limit.

simplify

Defaults to TRUE. See 'output' for detail.

Value

a list of gene set. If TRUE, the return structure is simplified to a list of genesets each of which is a list of genes and the name of each geneset is the name of gene set from MSigDB file, the first element of each line. If FALSE, it returns a list of three element list each element of which is name, url, and geneset.

Examples

1
read_MSigDB('c2.cp.biocarta.v4.0.symbols.gmt.txt')

dolchan/ssgsrt documentation built on May 15, 2019, 9:44 a.m.