Skip to contents

Create comut plots in R! Built on top of ComplexHeatmap ComplexHeatmap Heavily inspired by the python package comut: comut

Major features include:

  • By default in works with MAF (Mutation Annotation Format) style input data!
  • Ability to add text annotations on top of the boxes
  • Allows for missing information to be made explicit

Installation

You can install the development version of ComutR from GitHub with:

# install.packages("devtools")
devtools::install_github("taprati/ComutR")

Example

The most basic comut plot takes a maf type data frame and generates a heatmap:

library(ComutR)

input_maf <- data.frame(
  Tumor_Sample_Barcode = c("1", "1", "1", "2", "3", "4", "4"),
  Hugo_Symbol = c("A", "B", "C", "C", "A", "A", "B"),
  Variant_Classification = c("Missense_Mutation", "Nonsense_Mutation", "In_Frame_Del", "In_Frame_Del", "Missense_Mutation", "Nonsense_Mutation", "Nonsense_Mutation")
)

comut(data = input_maf)