exposureDistributionBarplot: Distribution of Signatures in Samples

Description Usage Arguments Value Examples

View source: R/SignatureFitLib.R

Description

Given a catalogue of samples and an exposures table, compute the relative amount of each signature in each sample and the unassigned mutations. Also cluster the samples with hierarchical clustering with average linkage and order the samples according to the clustering. Optionally, plot to file.

Usage

1
exposureDistributionBarplot(fileout = NULL, catalogue, exposures)

Arguments

fileout

if specified, generate a plot, otherwise no plot is generated

catalogue

original catalogue, channels as rows and samples as columns

exposures

exposures/activities of signatures in each sample. Signatures as rows, samples as columns

Value

list with to objects: the matrix of the distribution of the signatures in the samples and the hierachical clustering object

Examples

1
2
3
4
5
6
7
res <- SignatureFit_withBootstrap(cat = catalogue,
                  signature_data_matrix = cosmic30,
                  nboot = 5,
                  threshold_percent = 0.1,
                  threshold_p.value = 0.1)
distribution_object <- exposureDistributionBarplot(catalogue=catalogue,
                  exposures=res$E_median_filtered)

pdiakumis/hrdetect documentation built on May 17, 2020, 5:30 p.m.