Skip to contents

Reads a .gmt gene set file and returns a long-format data frame with one row per gene, including the gene set name and optional description.

Usage

gmt2df(file, verbose = TRUE)

Arguments

file

Path to a .gmt file (supports .gmt or .gmt.gz).

verbose

Logical. Whether to show progress message. Default = TRUE.

Value

A tibble with columns: term, description, and gene.

Examples

# gmt_file <- system.file("extdata", "h.all.v2024.1.Hs.symbols.gmt", package = "evanverse")
# gmt2df(gmt_file)