load_gmt {dslice}R Documentation

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_name

Vector of gene set names.

set_description

Vector of gene set descriptions.

gene_symbol

List of gene symbols in each gene set.

Examples

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

## Not run: 
filename <- "C2.gmt"
geneset <- load_gmt(filename)

## End(Not run)

[Package dslice version 1.2.2 Index]