read_gmt: Read gene set file with GMT extension to a list

View source: R/read_gmt.R

read_gmtR Documentation

Read gene set file with GMT extension to a list

Description

Read Gene Matrix Transposed (gmt) file and return a list. The first column of the GMT are gene set names, the second are descriptions, then are genes.

Usage

read_gmt(file.path, strip.nm = "REACTOME_")

Arguments

file.path

Path to the GMT file.

strip.nm

Regular expression which is removed from gene set names. Case is ignored.

Details

There are many functions in R for reading GMT files; this one was partially adapted from gmt2list in the cogena package.

Value

List of gene sets. Each element has a gene set name, description, and genes.


jdreyf/ezlimma documentation built on Sept. 16, 2024, 2:08 a.m.