plotMutationSpectrum {h5vc} | R Documentation |
This function generates a mutation spectrum plot from a mutation spectrum returned by a call to mutationSPectrum
plotMutationSpectrum( ms, plotCounts = TRUE )
ms |
A mutation spectrum as returned by |
plotCounts |
Boolean flag specifying whether |
The plot is inspired by the one shown in figure 1b of Signatures of mutational processes in human cancer -- Alexandrov et. al.
A ggplot object containing the mutation spectrum plot
Paul Pyl
library(h5vc) tallyFile <- system.file( "extdata", "example.tally.hfs5", package = "h5vcData" ) data( "example.variants", package = "h5vcData" ) plotMutationSpectrum( mutationSpectrum( variantCalls, tallyFile, "/ExampleStudy" ) )