Learn R Programming

dslice (version 1.1.3)

load_gmt: Load gene set file

Description

Load gene set from .gmt file

Usage

load_gmt(file)

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.

Value

  • A list with components:
  • set_nameVector of gene set names.
  • set_descriptionVector of gene set descriptions.
  • gene_symbolList of gene symbols in each gene set.

Examples

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

filename <- "C2.gmt"
geneset <- load_gmt(filename)

Run the code above in your browser using DataLab