load_gmt: Load a GMT (Gene Matrix Transposed) file into a...

View source: R/io.R

load_gmtR Documentation

Load a GMT (Gene Matrix Transposed) file into a ['VennDataset-class']

Description

Each line is one set: 'set_name<TAB>description<TAB>item1<TAB>item2<TAB>...'. Lines with fewer than 3 tab-separated columns or empty set names are skipped.

Usage

load_gmt(path)

Arguments

path

Path to the .gmt file.

Value

A ['VennDataset-class'].

Examples

tmp <- tempfile(fileext = ".gmt")
writeLines(c("SetA\tdesc\tGENE1\tGENE2\tGENE3",
             "SetB\tdesc\tGENE2\tGENE3\tGENE4"), tmp)
ds <- load_gmt(tmp)
ds@set_names

vennDiagramLab documentation built on May 19, 2026, 1:07 a.m.