save_as_tsv: Save the results in tab-separeted value file

View source: R/save_as_tsv.R

save_as_tsvR Documentation

Save the results in tab-separeted value file

Description

Save the data frame coming from the massiveGST function as tab-separeted value.

Usage

save_as_tsv(x, file_name = "massiveGST.tsv", sep = "\t", ...)

Arguments

x

a data frame of "mGST" class coming from massiveGST function.

file_name

a character value ("massiveGST.tsv" as default)

sep

a character value

...

Arguments to be passed to methods

Value

No return value.

Author(s)

Stefano M. Pagnotta

See Also

massiveGST

Examples


library(massiveGST)

# get the gene profile
fname <- system.file("extdata", package="massiveGST")
fname <- file.path(fname, "pre_ranked_list.txt")
geneProfile <- get_geneProfile(fname)

# get the gene-sets
geneSets <- get_geneSets_from_msigdbr(category = "H", what = "gene_symbol")

# run the function
ans <- massiveGST(geneProfile, geneSets, alternative = "two.sided")

# save the results
fname <- file.path(tempdir(), "massiveGST_results.tsv")
save_as_tsv(ans, file_name = fname)


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