read_gmt_list: Calling C routine to read GMT file into a list

View source: R/read_gmt.R

read_gmt_listR Documentation

Calling C routine to read GMT file into a list

Description

The function read_gmt_list calls the C routine read_gmt to read GMT file into a list.

Usage

read_gmt_list(gmt.file)

Arguments

gmt.file

Character, name of one gmt-format file

Details

Empty lines or lines without genes are omitted.Empty fields in “genes” are omitted as well.

Value

A list, the length of which equals the number of genesets. Each list contains three items:

name

Character, gene set name

description

Character, gene set description

genes

Character vector, genes in the set

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples


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

test.gmt <- read_gmt_list(sample.gmt.file)


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