write_geneSets_to_gmt {massiveGST} | R Documentation |
Save a collection of gene-sets in a .gmt file format.
Description
Write a collection of gene sets as arranged in this package in a gmt file format.
Usage
write_geneSets_to_gmt(gs, fileName)
Arguments
gs |
a character vector of gene-sets |
fileName |
a character value; "gene_sets.gmt" (default) |
Value
No return value.
Author(s)
Stefano M. Pagnotta
See Also
get_geneSets_from_msigdbr, get_geneSets_from_local_files
Examples
library(massiveGST)
# get the gene-sets
geneSets <- get_geneSets_from_msigdbr(category = "H", what = "gene_symbol")
# save the gene-sets
fname <- file.path(tempdir(), "hallmarks.gmt")
write_geneSets_to_gmt(geneSets, fileName = fname)
[Package massiveGST version 1.2.3 Index]