tidy_gmt: Convert the GMT to a "tidy" tibble

Description Usage Arguments Value Examples

View source: R/tidy_gmt.R

Description

Sometimes, the data is wanted in a "tidy" format with each piece of information as an individual row. tidy_gmt() converts the list output of read_gmt() to a tibble.

Usage

1
tidy_gmt(gmt)

Arguments

gmt

a gmt from read_gmt()

Value

a tibble with columns "gene_set" and "gene"

Examples

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

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