
Absolute Copy-Number Diversity Heatmap
ACNDiversityPlot.Rd
A whole genome heatmap of copy-number changes. It expects absolute copy-numbers.
Default behaviour is to perform hierarchical clustering of the samples and plot the heatmap in that order.
Setting the order
parameter overrules this behaviour.
Usage
ACNDiversityPlot(
long_segments = data.frame(),
order = TRUE,
ret_order = FALSE,
save_path = FALSE,
rmblacklist = NULL,
addtitle = NULL,
sample_labels = FALSE,
ann_df = NULL,
obj_name = "version1"
)
Arguments
- long_segments
A dataframe. This should be in long format with the same number of rows (bins) for each sample.
If using the output from theCalculateACNs
function then first runSegmentsToCopyNumber
to convert to long.
Expects the following columns:
c("chromosome", "start", "end", "state", "sample_id")- order
(optional) Character vector. Defines the order in which samples will be plotted.
This is particularly useful when plotting more than 1 heatmap next to one another.
Allows samples to line-up horizontally. Example:c("CC-CHM-1341", "CC-CHM-1347", "CC-CHM-1355", CC-CHM-1361", "CC-HAM-0369", "CC-HAM-0374", "CC-HAM-0379", "CC-HAM-0383", "CC-HAM-0385")
- ret_order
(optional) Logical. If set to TRUE the function returns the order in which samples were plotted.
- save_path
(optional) String. Expects a path to a directory where the plot should be saved. (png)
- rmblacklist
optional NULL or character vector. Filter the plot of blacklist regions from this genome. ex. 'hg19'
- addtitle
(optional) Logical. If set to TRUE add a basic title to the plot.
- sample_labels
(optional) Logical. If set to TRUE, display sample names and y-axis ticks.
- ann_df
(optional) Dataframe. Expects the same sample ids as passed to long_segments param.
See the roxygen docs forPlotAnnotationBars()
for more details.- obj_name
(optional) String. Adds a tag to the end of the filename if saving the image.
Only used if the save_path parameter is also set.