subsample | R Documentation |
This functions randoly subsample mutations, retaining all the simple clonal CNAs; subclonal CNAs are dropped. If data contains driver mutation annotations, these can be forced to remain.
subsample(x, N = 15000, keep_drivers = TRUE)
x |
A new CNAqc object with subset data. |
N |
The maximum number of mutations to retain. |
keep_drivers |
If |
data('example_dataset_CNAqc', package = 'CNAqc')
x = init(mutations = example_dataset_CNAqc$mutations, cna = example_dataset_CNAqc$cna, purity = example_dataset_CNAqc$purity)
# Example runs
subsample(x, N = 100)
subsample(x, N = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.