save_as_tsv | R Documentation |
Save the data frame coming from the massiveGST function as tab-separeted value.
save_as_tsv(x, file_name = "massiveGST.tsv", sep = "\t", ...)
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 |
No return value.
Stefano M. Pagnotta
massiveGST
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
fname <- system.file("extdata", package="massiveGST")
fname <- file.path(fname, "h.all.v2024.1.Hs.symbols.gmt")
geneSets <- get_geneSets_from_local_files(fname)
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.