knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of 'readgmt' is to easily import a GMT file from MSigDB as a list of gene sets.
See the full documentation here: jhrcook.github.io/readgmt
This package is not available on CRAN (it is much too simple for that), so it must be installed from GitHub with
devtools::install_github("jhrcook/readgmt")
Here is an example of reading in the KEGG gene set (downloaded on 2019/04/01).
library(readgmt) kegg_path <- system.file("extdata", "c2.cp.kegg.v6.2.symbols.gmt.txt", package = "readgmt") kegg <- read_gmt(kegg_path) head(names(kegg)) head(kegg$KEGG_COLORECTAL_CANCER)
This can also be read in as a "tidy" tibble, or converted after the reading it in as a list.
# read in as a tibble read_gmt(kegg_path, tidy = TRUE) # convert from list format to tibble tidy_gmt(kegg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.