sort_exposure: Sort columns of an exposure matrix based on the number of mutations in each sample (column).
Description
Sort columns of an exposure matrix based on the number of mutations in each sample (column).
Usage
sort_exposure(exposure, decreasing = TRUE)
Value
The original exposure with columns sorted.
Arguments
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.