Description Usage Arguments Value Examples
View source: R/pool_mut_matrix.R
The mutation counts of columns (samples) are added up according to the grouping variable.
1 |
mut_matrix |
Mutation count matrix (dimensions: x mutation types X n samples) |
grouping |
Grouping variable |
Mutation count matrix (dimensions: x mutation types X n groups)
1 2 3 4 5 6 | ## See the 'mut_matrix()' example for how we obtained the mutation matrix:
mut_mat <- readRDS(system.file("states/mut_mat_data.rds",
package = "MutationalPatterns"
))
grouping <- c(rep("colon", 3), rep("intestine", 3), rep("liver", 3))
pool_mut_mat(mut_mat, grouping)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.