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

Description Usage Arguments Examples

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    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 July 10, 2020, 1:12 a.m.