View source: R/SignatureFitLib.R
exposureDistributionBarplot | R Documentation |
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.
exposureDistributionBarplot(fileout = NULL, catalogue, exposures)
fileout |
if specified, generate a plot, otherwise no plot is generated, use extension png or jpg |
catalogue |
original catalogue, channels as rows and samples as columns |
exposures |
exposures/activities of signatures in each sample. Signatures as rows, samples as columns |
list with to objects: the matrix of the distribution of the signatures in the samples and the hierarchical clustering object
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.