bootstrap_mut_catalogues: Bootstraps a given mutational catalogue

Description Usage Arguments Value Examples

View source: R/bootstrap_mut_catalogues.R

Description

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.

Usage

1
bootstrap_mut_catalogues(n, original, m = NULL)

Arguments

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)

Value

matrix containing the mutational catalogues of the replicates

Examples

1
2
3
data(cosmicSigs)
reps <- bootstrap_mut_catalogues(n = 150, original = create_mut_catalogues(
                                  10, 500)[["catalogues"]][,1])

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