deconvolution_exposure: deconvolution_exposure

View source: R/palimpsest_plotting_2.R

deconvolution_exposureR Documentation

deconvolution_exposure

Description

Plots the exposure of signatures across the series (bargraphs of the number and proportion of each signature in each sample).

Usage

deconvolution_exposure(
  signature_contribution = signatures_exp,
  rm_samples = NA,
  signature_colours = sig_cols
)

Arguments

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.

Examples

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()

FunGeST/Palimpsest documentation built on June 2, 2024, 4:21 a.m.