Closed whelena closed 1 year ago
Must at least contain the following columns
(rows = sample, columns = SNV)
hm <- create.heatmap( filename = NULL, x = heatmap.array, force.clustering = TRUE, cluster.dimensions = cls.dim, clustering.method = cls.method, rows.distance.method = dist.method, cols.distance.method = dist.method, xaxis.lab = xaxis.lab, xlab.label = xlab.label, xlab.cex = 1, xaxis.cex = 0.6, xaxis.fontface = 1, xaxis.rot = 90, yaxis.lab = colnames(hm.array), ylab.cex = 1, yaxis.cex = 0.6, yaxis.fontface = 1, colourkey.cex = 0.6, colour.scheme = col.scheme, left.padding = 1, right.padding = 1, resolution = 3000, width = 9, height = 5, colourkey.labels.at = col.labels ); cov <- create.heatmap( x = t(cls.colours[snv.order$clone.id]), input.colours = TRUE, clustering.method = 'none', grid.col = FALSE, print.colour.key = FALSE, resolution = 5000 ); legend.clone <- legend.grob( list( legend = list( title = 'Clones', labels = names(cls.colours), colours = cls.colours, border = 'black' ), legend = list( title = 'CCF', labels = c(min(arr), max(arr)), colours = if (is.null(hm.cols)) { c('white', 'blue') } else { hm.cols }, border = 'black', continuous = TRUE, size = 0.6 ) ), size = 1, title.cex = 0.75, label.cex = 0.6 ); create.multiplot( filename = file.path( save.path, generate.filename( project.stem = p, file.core = fname, extension = 'png', file.date = FALSE ) ), plot.objects = list(cov, hm), plot.layout = c(1, 2), panel.heights = c(1, 0.05), xaxis.lab = if (!is.null(xaxis.col)) { xaxis.label} else { NULL }, xaxis.cex = 0.6, xaxis.rot = 90, xaxis.fontface = 1, xaxis.tck = 0, #plot.labels.to.retrieve = 2, yaxis.lab = list(NULL, colnames(arr)), yaxis.cex = 0.6, yaxis.tck = 0, yaxis.fontface = 1, y.spacing = 0.5, left.padding = 17, print.new.legend = TRUE, legend = list(right = list( fun = legend.clone )), height = plt.height, width = plt.width );
(rows = sample, columns = clones)
Dataframe Input
Mutation-to-clone Data
Must at least contain the following columns
Heatmap input
Plot Output
CCF values for clustered data
(rows = sample, columns = SNV)
Median CCF values with SNV barplots
(rows = sample, columns = clones)