Skip to contents

Calculate cell fate similarity among all cell types

Usage

cell_type_fate_similartiy(
  data,
  idx = "celltype",
  method = "spearman",
  plot = TRUE,
  out_similar_mt = FALSE,
  ...
)

Arguments

data

data.frame, indicating lineage tracing data, first column should be lineage tracing barcodes, second column should be related cell type

idx

column name of cell type

method

character, indicating which correlation coefficient (or covariance) is to be computed. One of "pearson", "kendall", or "spearman (default)": can be abbreviated.

plot

whether plot the heatmap

...

other pheatmap parameters

Value

barcodes correlation between cell type

Examples

cell_type_fate_similartiy(fate_test)
#> Error in `[.data.frame`(data, , idx): undefined columns selected