PairWiseJaccardSetsHeatmap: Make a Heatmap of the pairwise Jaccard distance between...

Description Usage Arguments Value

View source: R/clusterviz.R

Description

Make a Heatmap of the pairwise Jaccard distance between cluster ident of two Seurat object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
PairWiseJaccardSetsHeatmap(
  ident1,
  ident2,
  best_match = FALSE,
  title = NULL,
  col_low = "white",
  col_high = "red",
  cluster_rows = F,
  cluster_columns = F,
  show_row_dend = F,
  show_column_dend = F,
  ...
)

Arguments

ident1

a named factor vector. names are the cell names, the values are the cluster id.

ident2

a named factor vector. names are the cell names, the values are the cluster id.

best_match

Whether or not only show the best match of ident1 from ident2. if set to TRUE, the Jaccard index matrix will be subsetted using the ident2 column from the output of MatchClusters, the row order will be in order from cluster 0 to the total number of clusters, the columns will be the best match of ident1 from ident2, and the columns idents could be duplicated. e.g. single cluster from ident2 matches multiple clusters in ident1.

title

The title of the heatmap

col_low

Color for low Jaccard index.

col_high

Color for high Jaccard index.

cluster_rows

cluster row or not, default FALSE

cluster_columns

cluster columns or not, default FASLE

show_row_dend

Whether or not show row dendrogram

show_column_dend

Whether or not show column dendrogram

...

other parameters pass to Heatmap

Value

A Heatmap representing the pair-wise Jaccard correlation, rows are ident1, columns are ident2


crazyhottommy/scclusteval documentation built on Aug. 5, 2021, 3:20 p.m.