bootstrap_mut_catalogues {SigsPack} | R Documentation |
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.
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
data(cosmicSigs) reps <- bootstrap_mut_catalogues(n = 150, original = create_mut_catalogues( 10, 500)[["catalogues"]][,1])