export_as_CSV: Export the results from ActivePathways as a comma-separated...

export_as_CSVR Documentation

Export the results from ActivePathways as a comma-separated values (CSV) file.

Description

Export the results from ActivePathways as a comma-separated values (CSV) file.

Usage

export_as_CSV(res, file_name)

Arguments

res

the data.table object with ActivePathways results.

file_name

location and name of the CSV file to write to.

Examples

    fname_scores <- system.file("extdata", "Adenocarcinoma_scores_subset.tsv", 
         package = "ActivePathways")
    fname_GMT = system.file("extdata", "hsapiens_REAC_subset.gmt",
         package = "ActivePathways")

    dat <- as.matrix(read.table(fname_scores, header = TRUE, row.names = 'Gene'))
    dat[is.na(dat)] <- 1

    res <- ActivePathways(dat, fname_GMT)

    export_as_CSV(res, "results_ActivePathways.csv")


ActivePathways documentation built on Nov. 2, 2023, 5:12 p.m.