R/save_as_tsv.R

save_as_tsv <-
function (x, file_name = "massiveGST.tsv", sep = "\t", ...) 
{
    x$gene_set <- rownames(x)
    x <- cbind(x[, ncol(x)], x[, -ncol(x)])
    colnames(x)[1] <- "gene set"
    write.table(x, file = file_name, sep = sep, quote = FALSE, 
        row.names = FALSE)
    invisible(NULL)
}

Try the massiveGST package in your browser

Any scripts or data that you put into this service are public.

massiveGST documentation built on April 3, 2025, 10:57 p.m.