get_geneSets_from_local_files: Load the gene-sets collection from local gmt files

get_geneSets_from_local_filesR Documentation

Load the gene-sets collection from local gmt files

Description

Load the gene-sets collection from local gmt files

Usage

get_geneSets_from_local_files(ffiles)

Arguments

ffiles

a character string or a list of a character pointing to local files

Value

A vector list of gene-sets

Author(s)

Stefano M. Pagnotta

See Also

get_geneSets_from_msigdbr, write_geneSets_to_gmt

Examples

library(massiveGST)

tmp <- get_geneSets_from_msigdbr(category = "H", what = "gene_symbol")

fname1 <- file.path(tempdir(), "h1.gmt")
write_geneSets_to_gmt(tmp, fileName = fname1)

fname2 <- file.path(tempdir(), "h2.gmt")
write_geneSets_to_gmt(tmp, fileName = fname2)

# getting one collection
geneSets <- get_geneSets_from_local_files(fname1)
length(geneSets)

# getting two collections
geneSets <- get_geneSets_from_local_files(c(fname1, fname2))
length(geneSets)


massiveGST documentation built on March 31, 2023, 8:59 p.m.