summarize_exposures: Signature exposure analysis of a mutational catalogue

Description Usage Arguments Value Examples

View source: R/summarize_exposures.R

Description

Bootstrapps a mutational catalogue and details the results about the signature estimation in a table and a boxplot

Usage

1
2
summarize_exposures(mut_cat, P = get(utils::data("cosmicSigs", package =
  "SigsPack")), plotting = TRUE, m = NULL)

Arguments

mut_cat

mutational catalogue (96 by 1)

P

Matrix (f x k) containing the signature profiles of k signatures whose exposure is to be found k is the amount of signature profiles that P contains f is the amount of features that the profiles are defined on (default: COSMIC signature matrix 96 by 30)

plotting

boolean, TRUE by default, if True, a boxplot showing the distribution of estimated signature exposure for all the re-samples, highlighting the one of the original mutational catalogue, thus providing insights on the reliability of the estimates

m

numeric, amount of mutations in the profile (needed for bootstrapping in case mut_cat doesn't contain absolute counts.)

Value

table (k by 6) containing statistics for each signature about the estimated exposure over 1000 bootstrapped resamples - original exposure estimated exposure of the original mutational profile - min minimum estimated exposure to this signature - 1. quartile - median - 3. quartile - max maximum estimated exposure to this signature

if the plotting option is chosen, a boxplot will also be displayed

Examples

1
summarize_exposures(create_mut_catalogues(10,500)[['catalogues']][,1], plotting=FALSE)

SigsPack documentation built on Nov. 8, 2020, 6:57 p.m.