| output_sig | R Documentation |
Saves signature data to a specified file format, supporting CSV or RData. Handles single signatures or lists of signatures, converting them to a data frame for storage.
output_sig(signatures, format = c("csv", "rdata"), file.name)
signatures |
Signature data: a list or single string of signatures. |
format |
Character. Output format: "csv" or "rdata". Default is "csv". |
file.name |
Character. Name of the output file without extension. |
Data frame containing the processed signature data, also saved to the specified file.
Dongqiang Zeng
# Simulate signatures
set.seed(123)
sim_sigs <- list(
Signature1 = paste0("Gene", 1:50),
Signature2 = paste0("Gene", 51:100),
Signature3 = paste0("Gene", 101:150)
)
tmpfile <- tempfile(fileext = ".csv")
output_sig(
signatures = sim_sigs, format = "csv",
file.name = tools::file_path_sans_ext(tmpfile)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.