read_gmt: Read in a GMT file

Description Usage Arguments Value Examples

View source: R/genesignatures.R

Description

Returns a list of pathways from a GMT file.

Usage

1
read_gmt(gmtfile)

Arguments

gmtfile

A character value, containing the location of the GMT formatted file. It can also be a file found online

Value

A list of vectors, one for each pathway in the GMT file.

Examples

1
2
3
4
5
# this example reads in the freely available pathways from wikipathways
mysigs <- read_gmt(
  "http://data.wikipathways.org/20180910/gmt/wikipathways-20180910-gmt-Homo_sapiens.gmt")
head(mysigs)
# see how the gene identifiers are encoded as ENTREZ id

ideal documentation built on Nov. 8, 2020, 5:02 p.m.