read_gmt_dataframe: Read gene-sets in a GMT file into a data.frame

View source: R/read_gmt.R

read_gmt_dataframeR Documentation

Read gene-sets in a GMT file into a data.frame

Description

Read gene-sets in a GMT file into a data.frame

Usage

read_gmt_dataframe(gmt.file, description = FALSE)

Arguments

gmt.file

Character, name of one gmt-format file

description

Logical, whether the result should contain descriptions of gene-sets as a column.

Value

A data.frame. If description is set to FALSE, the data.frame contains two columns: geneset and gene; otherwise, it contains three columns: geneset, description, and gene.

Examples


idir <- system.file("extdata", package="ribiosIO")
sample.gmt.file <- file.path(idir, "test.gmt")

testGmtDataframe <- read_gmt_dataframe(sample.gmt.file)


ribiosIO documentation built on Feb. 20, 2026, 5:09 p.m.