Skip to content

Commit

Permalink
Pass additional arguments to pheatmap via plotMarkerHeatmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Nov 18, 2024
1 parent 8ee3250 commit a5d73f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions R/plotMarkerHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#' @param top Integer scalar indicating the top most interesting markers to show in the heatmap.
#' @param num.threads Integer scalar specifying the number to threads to use.
#' @param BPPARAM Deprecated, use \code{num.threads} instead.
#' @param ... Additional parameters for heatmap control passed to \code{\link[pheatmap]{pheatmap}}.
#'
#' @return
#' The output of \code{\link[pheatmap]{pheatmap}} is returned showing the heatmap on the current graphics device.
Expand Down Expand Up @@ -59,7 +60,8 @@ plotMarkerHeatmap <- function(
order.by.summary="min.rank",
top=20,
num.threads=bpnworkers(BPPARAM),
BPPARAM = SerialParam())
BPPARAM = SerialParam(),
...)
{
test <- .to_clean_matrix(test, assay.type, check.missing=FALSE)
all.markers <- metadata(results)$de.genes[[label]]
Expand Down Expand Up @@ -125,6 +127,7 @@ plotMarkerHeatmap <- function(
color=viridis::viridis(25),
annotation_col=data.frame(labels=predictions, row.names=colnames(test)),
cluster_col=FALSE,
show_colnames=FALSE
show_colnames=FALSE,
...
)
}
5 changes: 4 additions & 1 deletion man/plotMarkerHeatmap.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5d73f6

Please sign in to comment.