read_exposure {mSigTools} | R Documentation |
Read an exposure matrix from a file.
Description
Read an exposure matrix from a file.
Usage
read_exposure(file, check.names = FALSE)
Arguments
file |
File path to a CSV file containing an exposure matrix, i.e. the numbers of mutations due to each mutational signature. Each row corresponds to a mutational signature an each column corresponds to a tumor or other biological sample. |
check.names |
Passed to |
Value
Numerical matrix of exposures, with the same
shape as the contents of file
.
Examples
file <- system.file("extdata",
"Liver-HCC.exposure.csv",
package = "mSigTools"
)
exposure <- read_exposure(file)
[Package mSigTools version 1.0.7 Index]