export_as_CSV | R Documentation |
Export the results from ActivePathways as a comma-separated values (CSV) file.
export_as_CSV(res, file_name)
res |
the data.table object with ActivePathways results. |
file_name |
location and name of the CSV file to write to. |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.