load_gmt: Load gene set file

Description Usage Arguments Value Examples

View source: R/load_gmt.R

Description

Load gene set from .gmt file

Usage

1

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

1
2
3
4
5
6
7
8
# 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)

dslice documentation built on May 29, 2017, 8:03 p.m.