Skip to content

Commit b24ab80

Browse files
committed
Changed parameter name in jaccard_heatmap
1 parent f238145 commit b24ab80

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

R/QCpanel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ QCpanelServer <- function(id, expression.matrix, metadata, anno){
9393
top.annotation.ids = match(input[['jaccard.annotations']], colnames(meta)),
9494
n.abundant = input[['jaccard.n.abundant']],
9595
show.values = input[["jaccard.show.values"]],
96-
show.row.columns.names = (nrow(meta) <= 20)
96+
show.row.column.names = (nrow(meta) <= 20)
9797
)
9898
myplot
9999
})

R/QCplotFuns.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jaccard_index <- function(a, b){
2424
#' of the metadata should become heatmap annotations
2525
#' @param n.abundant number of most abundant genes to use for the JSI calculation
2626
#' @param show.values whether to show the JSI values within the heatmap squares
27-
#' @param show.row.columns.names whether to show the row and column names below
27+
#' @param show.row.column.names whether to show the row and column names below
2828
#' the heatmap; default is TRUE
2929
#' @return The JSI heatmap as detailed in the ComplexHeatmap package.
3030
#' @export
@@ -45,7 +45,7 @@ jaccard_heatmap <- function(
4545
top.annotation.ids = NULL,
4646
n.abundant = NULL,
4747
show.values = TRUE,
48-
show.row.columns.names = TRUE
48+
show.row.column.names = TRUE
4949
){
5050
n.abundant <- min(n.abundant, nrow(expression.matrix))
5151
n.samples <- ncol(expression.matrix)
@@ -57,7 +57,7 @@ jaccard_heatmap <- function(
5757
heatmat[i, j] <- heatmat[j, i] <- jaccard_index(i.gene.indices, j.gene.indices)
5858
}
5959
}
60-
if(show.row.columns.names){
60+
if(show.row.column.names){
6161
rownames(heatmat) <- colnames(heatmat) <- colnames(expression.matrix)
6262
}
6363

0 commit comments

Comments
 (0)