annotate_mutational_matrix | R Documentation |
Given M mutational matrix, add samples as row names, and genes as column names. If there are repetitions in row names, these are solved by adding a sequential identifier to the names.
annotate_mutational_matrix(M, samples, genes)
M |
mutational matrix |
samples |
list of sample names |
genes |
list of gene names |
N with the set row and column names
require(Matrix) genes <- c("A", "B", "C") samples <- c("S1", "S2", "S2") M <- Matrix(c(0,0,1,0,0,1,0,1,1), ncol=3, sparse=TRUE, byrow = TRUE) annotate_mutational_matrix(M, samples, genes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.