
Automatically Infer Lineage Tree (hclust) from scRNA-seq Counts & Cell Types
Source:R/06_metrics_trajectory.R
infer_scrna_lineage_tree.RdBuilds a hierarchical clustering lineage tree between cell-type centroids from scRNA-seq expression data.
Examples
data(example_scrna, package = "scSimEval")
infer_scrna_lineage_tree(example_scrna$ref, example_scrna$cell_types)
#>
#> Call:
#> stats::hclust(d = dist_mat, method = method)
#>
#> Cluster method : ward.D2
#> Distance : euclidean
#> Number of objects: 2
#>