read_gmt: Read a GMT file from MSigDB

Description Usage Arguments Value Examples

View source: R/readgmt.R

Description

Reads a GMT file containing a gene set from MSigDB and returns a list of named gene sets

Usage

1
read_gmt(file, tidy = FALSE)

Arguments

file

path to the downloaded GMT file

tidy

turn into a tidy tibble with tidy_gmt

Value

returns a named list of the gene set

Examples

1
2
3
4
5
kegg_path <- system.file("extdata", "c2.cp.kegg.v6.2.symbols.gmt.txt",
                         package = "readgmt")
kegg <- read_gmt(kegg_path)
head(names(kegg))
head(kegg$KEGG_COLORECTAL_CANCER)

jhrcook/readgmt documentation built on Oct. 21, 2019, 7:51 p.m.