View source: R/generateCOSMICSignaturePlot.R
generateCOSMICMutSigSimHeatmap | R Documentation |
This function computes and plot the cosine similarity of each individual signature is computed against each COSMIC signature from COMIC V3.2. The cosine similarity is a value between 0 (distinct) and 1 (identical) and indicates how much two vectors are alike.
generateCOSMICMutSigSimHeatmap( mymaf, use_silent_mutations = FALSE, full_output = FALSE, show_broad_categories = TRUE, clin_data = NULL, clin_data_colors = NULL, add_sample_names = NULL, savename = NULL, fig_height = NULL, fig_width = NULL )
mymaf |
mutation count matrix (dimensions: a mutation features X n samples) |
use_silent_mutations |
96 mutation count matrix (dimensions: a mutation features X m samples) |
full_output |
return full output including the etiology matrix and plot data |
show_broad_categories |
To show broad etiology categories |
clin_data |
Clinical data to be plotted in the heatmap |
clin_data_colors |
Clinical data colors |
add_sample_names |
Whether or not to add column labels; if set to NULL, will add labels only if # samples less than 10 |
savename |
file name of the plot |
fig_height |
Output height (inches); set to NULL to size automatically; only used if savename is set. |
fig_width |
Output width (inches); set to NULL to size automatically; only used if savename is set. |
Complex Heatmap object. If full_output is TRUE it will consist of a list including heatmap object, etiology matrix and plot data.
library(MAFDash) library(maftools) library(ComplexHeatmap) maf <- system.file("extdata", "test.mutect2.maf.gz", package = "MAFDash") val<-generateCOSMICMutSigSimHeatmap(read.maf(maf));draw(val)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.