Description Usage Arguments Value Examples
View source: R/bootstrap_mut_catalogues.R
Bootstraps a given mutational catalogue by replicating samples from the original catalogue's distribution of mutational features. The output can be input to signature_exposure.
1 | bootstrap_mut_catalogues(n, original, m = NULL)
|
n |
Amount of bootstrapped replicates that are created (they will by default have the same amount of mutations as the original catalogue) |
original |
Mutational catalogue (matrix) of a sample that is taken as the distribution from which the replicates are sampled |
m |
Amount of mutations the replicates are supposed to have (e.g. if this differs from the original or if the original is provided as probabilities instead of total counts) |
matrix containing the mutational catalogues of the replicates
1 2 3 | data(cosmicSigs)
reps <- bootstrap_mut_catalogues(n = 150, original = create_mut_catalogues(
10, 500)[["catalogues"]][,1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.