heatmapAneuploidies {AneuFinder} | R Documentation |
Plot a heatmap of aneuploidy state for multiple samples. Samples can be clustered and the output can be returned as data.frame.
heatmapAneuploidies(hmms, ylabels = NULL, cluster = TRUE, as.data.frame = FALSE)
hmms |
A list of |
ylabels |
A vector with labels for the y-axis. The vector must have the same length as |
cluster |
If |
as.data.frame |
If |
A ggplot
object or a data.frame, depending on option as.data.frame
.
Aaron Taudt
## Get results from a small-cell-lung-cancer folder <- system.file("extdata", "primary-lung", "hmms", package="AneuFinderData") files <- list.files(folder, full.names=TRUE) ## Plot the ploidy state per chromosome heatmapAneuploidies(files, cluster=FALSE) ## Return the ploidy state as data.frame df <- heatmapAneuploidies(files, cluster=FALSE, as.data.frame=TRUE) head(df)