This function visualizes copy number alteration (CNA) segments across
clusters based on data stored in a muscadet
object. It displays
CNAs for each clusters and scales the y-axis based on the proportion of cells
in each cluster.
Usage
plotCNA(
x,
title = NULL,
cna.colors = c(gain = "#EF6F6AFF", loss = "#6699CCFF", cnloh = "#44AA99FF")
)
Arguments
- x
A
muscadet
object containing CNA calling data to be visualized (generated usingcnaCalling()
).- title
An optional title for the plot. Default is
NULL
.- cna.colors
A vector of 3 colors for CNA states: gain, loss, and cnloh (or named vector where names are "gain", "loss", and "cnloh" and the values are their respective colors). Default is
c("gain" = "#EF6F6AFF", "loss" = "#6699CCFF", "cnloh" = "#44AA99FF")
.