View source: R/format_signatures.R
| format_signatures | R Documentation |
Converts signature data from a data frame (with signatures as columns and genes as rows) into a list format suitable for IOBR functions. Handles NA values appropriately.
format_signatures(sig_data, save_signature = FALSE, output_path = NULL)
sig_data |
Data frame with signature names as columns and genes in rows. Use 'NA' for missing values. |
save_signature |
Logical. Whether to save the signature list as RData. Default is 'FALSE'. |
output_path |
Character. Full path (without extension) for output file. Required if 'save_signature = TRUE'. Default is 'NULL'. |
List of signatures.
Dongqiang Zeng
sig_data <- data.frame(
Signature1 = c("Gene1", "Gene2", "Gene3", NA),
Signature2 = c("Gene4", "Gene5", NA, NA)
)
format_signatures(sig_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.