mitoPlot: Plot clone-specific variants in circular plots

View source: R/clustering.R

mitoPlotR Documentation

Plot clone-specific variants in circular plots

Description

Plot clone-specific variants in circular plots

Usage

mitoPlot(
  variants,
  patient = NULL,
  genome = "hg38",
  showLegend = TRUE,
  showLabel = TRUE
)

Arguments

variants

Character vector of variants to plot in format 5643G>T or 5643 G>T.

patient

Characet vector identifying which variant belongs to what clone. The order should match that of the 'vars' parameter and shoul dbe of identical length. If none is provided, the function assumes all variants are from one single sample which will be named "Main Clone". Default: NULL.

genome

The mitochondrial genome of the sample being investigated. Please note that this is the UCSC standard chromosome sequence. Default: hg38.

showLegend

Boolean for whether or not the gene legend should be present in the final output plot. Default: TRUE.

showLabel

Boolean for whether or not the name of the variant should be shown as a label in the final output plot. Default: TRUE.

Value

A ggplot object illustrating the clone specific mutations.

Examples

known.variants <- c("9001 T>C","12345 G>A","1337 G>A")
mitoPlot(known.variants)

benstory/mitoClone2 documentation built on Oct. 30, 2024, 3:20 p.m.