write_exposure {mSigTools} | R Documentation |
Write an exposure matrix to a file.
write_exposure(exposure, file, row.names = TRUE)
exposure |
Exposures as a numerical matrix (or data.frame) with signatures in rows and samples in columns. Rownames are taken as the signature names and column names are taken as the sample IDs. |
file |
File to which to write the exposure matrix (as a CSV file). |
row.names |
Either a logical value indicating whether the row names of
|
No return value, called for side effects.
file <- system.file("extdata",
"Liver-HCC.exposure.csv",
package = "mSigTools"
)
exposure <- read_exposure(file)
write_exposure(exposure, file = file.path(tempdir(), "Liver-HCC.exposure.csv"))