
Calculate Correlation of Geodesic Pseudotime Distances
Source:R/06_metrics_trajectory.R
calc_pseudotime_correlation.RdEvaluates whether the relative cell-to-cell ordering along a differentiation trajectory is preserved between reference and simulated data. Accepts either precomputed pseudotime vectors OR scRNA-seq expression matrices (which will be automatically inferred via PCA trajectory).
Usage
calc_pseudotime_correlation(
ref_pseudotime,
sim_pseudotime,
method = c("spearman", "pearson")
)Examples
data(example_scrna, package = "scSimEval")
calc_pseudotime_correlation(example_scrna$ref, example_scrna$sim)
#> [1] 1