Learn R Programming

dslice (version 1.2.2)

load_gmt: Load gene set file

Description

Load gene set from .gmt file

Usage

load_gmt(file)

Value

A list with components:

set_name

Vector of gene set names.

set_description

Vector of gene set descriptions.

gene_symbol

List of gene symbols in each gene set.

Arguments

file

Name of .gmt file which contains gene sets. Should be a tab-separated text file. Each row is a gene set. The first column is gene set name and the second is its description. Remaining columns are gene symbols of genes in this set.

Examples

Run this code
# Gene set files are available after registration at Broad institute GSEA website
# http://www.broadinstitute.org/gsea

if (FALSE) {
filename <- "C2.gmt"
geneset <- load_gmt(filename)
}

Run the code above in your browser using DataLab