save_as_tsv {massiveGST} | R 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
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)
[Package massiveGST version 1.2.3 Index]