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
Examples
library(massiveGST)
# get the gene-sets
fname <- system.file("extdata", package="massiveGST")
fname <- file.path(fname, "h.all.v2024.1.Hs.symbols.gmt")
geneSets <- get_geneSets_from_local_files(fname)
# save the gene-sets
fname <- file.path(tempdir(), "hallmarks.gmt")
write_geneSets_to_gmt(geneSets, fileName = fname)
[Package massiveGST version 1.2.4 Index]