createCNmatrix.RdCreate copy number matrix for heatmap visualization
createCNmatrix(
CNbins,
field = "state",
maxval = 11,
na.rm = FALSE,
fillna = FALSE,
fillnaplot = FALSE,
wholegenome = FALSE,
genome = "hg19",
centromere = FALSE,
plotallbins = FALSE
)Copy number data frame with chr, start, end, cell_id columns
Column to use for values in matrix
Maximum value to cap state at
Remove rows with NA values
Fill NA values by propagating neighboring values
Fill NA values while preserving centromeric gaps
Expand to all genomic bins (deprecated, use plotallbins)
Genome assembly ("hg19" or "hg38")
Mark centromeric regions as NA after filling
Include all genomic bins, marking centromeres with sentinel value