scSLAT.metrics

Align metrics

Functions

edge_score

Calculate edge score in two aligned graph (higher means better)

euclidean_dis

Calculate euclidean distance between two datasets with ground truth (lower means better)

global_score

Calculate global score, which consider celltype and histology, in two aligned graph (higher means better)

hit_celltype

Statistics of cell type correct mapping ratio

hit_k

Calculate first and top k-th hit ratio of matching

region_statistics

Print the region statistic results

rotation_angle

Finds and applies optimal rotation between spatial coordinates of two layers (may also do a reflection).