create_musica_from_counts | R Documentation |
This function creates a musica object from a mutation count table or matrix. The musica class stores variants information, variant-level annotations, sample-level annotations, and count tables and is used as input to the mutational signature discovery and prediction algorithms.
create_musica_from_counts(x, variant_class)
x |
A data.table, matrix, or data.frame that contains counts of mutation types for each sample, with samples as columns. |
variant_class |
Mutations are SBS, DBS, or Indel. |
Returns a musica object
data(musica)
count_table <- get_count_table(extract_count_tables(musica)$SBS96)
musica <- create_musica_from_counts(count_table, "SBS96")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.