Skip to contents

Reads a .gmt gene set file and returns a named list, where each list element is a gene set.

Usage

gmt2list(file, verbose = TRUE)

Arguments

file

Character. Path to a .gmt file.

verbose

Logical. Whether to print message. Default is TRUE.

Value

A named list where each element is a character vector of gene symbols.

Examples

# Basic usage (commented to avoid file I/O):
# gmt_file <- "path/to/geneset.gmt"
# gene_sets <- gmt2list(gmt_file)
# length(gene_sets)
# names(gene_sets)[1:3]