View source: R/preprocessing.R
| select_samples_on_mutations | R Documentation |
Dataset filtering on samples, based on their mutation count
select_samples_on_mutations(mutmatrix, n, desc = TRUE)
mutmatrix |
input dataset (mutational matrix) to be reduced |
n |
number of samples to be kept |
desc |
T: select the n least mutated samples, F: select the n most mutated samples |
the modified dataset (mutational matrix)
require(dplyr)
# keep information on the 5 most mutated samples
select_samples_on_mutations(example_dataset(), 5)
# keep information on the 5 least mutated samples
select_samples_on_mutations(example_dataset(), 5, desc = FALSE)
# combine selections
select_samples_on_mutations(example_dataset() , 5, desc = FALSE) %>%
select_genes_on_mutations(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.