View source: R/SampleMutations.R
sample_mutations | R Documentation |
Note: Resampling an already sampled dataset will not work and returns the original Note2: A conflict array will not be updated.
sample_mutations(dataset, num_muts_sample, min_sampling_factor = 1.5,
sampling_method = 1, sample.snvs.only = T, remove.snvs = F)
dataset |
The data set to use |
num_muts_sample |
The number of mutations to sample |
min_sampling_factor |
num_muts_sample*min_sampling_factor is the minimum number of mutations to have before sampling is applied. Use this multiplier to make sure we're not just sampling out a very low fraction of mutations (Default: 1.5) |
sampling_method |
Integer selecting a sampling method. 1 is uniform sampling, 2 takes only subclonal mutations via a proportion test (Default: 1) |
sample.snvs.only |
Boolean whether to only sample SNVs (supply TRUE) or to sample all mutation types (supply FALSE) (Default: TRUE) |
remove.snvs |
Boolean whether to remove all SNVs (for clustering runs of only indels or CNAs) (Default: FALSE) |
A dataset object with only the sampled mutations and a full.data field that contains the original dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.