read_msigdb: Read MSigDB GMT file into a nested list of databases and...

View source: R/read_msigdb.R

read_msigdbR Documentation

Read MSigDB GMT file into a nested list of databases and genes sets

Description

Reads MSigDB GMT files from http://software.broadinstitute.org/gsea/msigdb/collections.jsp

Usage

read_msigdb(gmt)

Arguments

gmt

a GMT file from MSigDB

Value

A nested list of databases and genes sets (if only one database in GMT file, then a list of gene sets only)

Author(s)

Chris Stubben

Examples

 gmt <- system.file("extdata", "c2.cp.v2023.2.Hs.symbols.gmt", package = "hciRdata")
 msig_path <- read_msigdb(gmt)
 # a list with 9 pathways dbs
 sapply(msig_path, length)
 msig_path$KEGG[1:3]

HuntsmanCancerInstitute/hciRdata documentation built on June 28, 2024, 8:46 p.m.