View source: R/palimpsest_plotting_2.R
deconvolution_exposure | R Documentation |
Plots the exposure of signatures across the series (bargraphs of the number and proportion of each signature in each sample).
deconvolution_exposure(
signature_contribution = signatures_exp,
rm_samples = NA,
signature_colours = sig_cols
)
signature_contribution |
List of signatures exposure numbers and proportions matrices (output from deconvolution_fit function). |
rm_samples |
List of names of samples to remove (if any). Once the signature contribution of hypermutated samples is known e.g CHC892T in the example dataset), removing these from the grpahical output of this function can make the comparison of the rest of the samples easier. |
signature_colours |
Character vector of R-compatable colours representing each signature to be used graphical outputs. Each signature in input_signatures must have named colour in this vector for grpahical outputs to work. |
pdf(file.path(resdir.,"signature_content_plot.pdf"),width=12,height=7)
signature_content_plot <- deconvolution_exposure(signature_contribution = SBS_signatures_exp, rm_samples = "CHC892T", signature_colours = sig_cols)
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.