
Calculate Intraclass Correlation Coefficient (ICC) (hierarchicell & rescueSim)
Source:R/04_metrics_batch.R
calc_intraclass_correlation.RdComputes the one-way random effects Intraclass Correlation Coefficient (ICC) per gene across donors or biological replicates to quantify hierarchical clustering.
Examples
data(example_scrna, package = "scSimEval")
calc_intraclass_correlation(example_scrna$ref, example_scrna$sim)
#> $median_icc
#> [1] 0
#>
#> $mean_icc
#> [1] 0
#>
#> $gene_icc
#> [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
#> [39] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
#>