View source: R/performanceEvaluationLib.R
evaluatePerformanceExposures | R Documentation |
Compare two exposure matrices, one with the true exposures and one with estimated exposures, and compute various metrics to determine how well the estimated exposures match the true exposures. If the names of common and/or rare mutational signatures are provided, then the metrics are calculated separately for common and rare signatures. Results are plotted to a file if outfile is specified.
evaluatePerformanceExposures(
true_exposures,
estimated_exposures,
commonNames = NULL,
rareNames = NULL,
outfile = NULL
)
true_exposures |
matrix of true exposures, for example obtained using simulations, with mutational signatures names as colnames and sample names as rownames |
estimated_exposures |
matrix of estimated exposures, for example obtained using a signature extraction or fit algorithm on a simulated dataset, with mutational signatures names as colnames and sample names as rownames |
commonNames |
names of common mutational signatures. If NULL, all signatures in the colnames of true_exposures and estimated_exposures will be used |
rareNames |
names of rare mutational signatures. If NULL, rare signatures metrics will not be computed. This is ok if the simulated data didn't have any rare signatures. |
outfile |
file name for plotting, please use .pdf file name extension. Can be omitted. |
performance metrics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.