Skip to contents

Plots SNV mutation characteristics.

Usage

sig_plot_snv(gr_snv, snv_counts, ref_genome)

Arguments

gr_snv

GRanges containing SNVs from a single sample.

snv_counts

A matrix with counts of SNV contexts.

ref_genome

The BSGenome reference genome to use.

Value

A list with four ggplot2 objects:

  • p_heatmap: a SNV mutation matrix as a heatmap. This is especially usefull when looking at a wide mutational context.

  • p_river: a SNV mutation matrix as a riverplot. This is especially usefull when looking at a wide mutational context.

  • p_96_profile: relative contribution of 96 trinucleotides.

  • p_spectrum: point mutation spectrum.