Methods

February 7, 2023 · View on GitHub

We benchmark with following methods:

MethodGraph basedSpatial awareCross platform
SLATyesyesyes
PASTEnoyesno
STAGATEyesyesno
Seuratnonoyes
Harmonynonoyes

Metric

Due to we can not know ground truth between real spatial datasets, we newly design CRI (Celltype and Region matching Index) metric to measure the performance of spatial alignment. CRI checks how much alignment method recover corresponding celltype and histology region simultaneously.

CRI=1Mvi,vjMI(i,j),f(x)={1, c1i=c2j and r1i=r2j0, otherwise,CRI= \frac{1}{M} \sum_{v_i,v_j \in M} I(i,j),\\ f(x)=\left\lbrace \begin{aligned} 1 &,\ c_1^{i}=c_2^{j} \ \mathbf{and} \ r_1^{i}=r_2^{j} \\ 0 &,\ otherwise, \\ \end{aligned} \right.

We also use Euclidean distance to measure the performance of spatial alignment:

Euclidean distance=1Mvi,vjMsisjF2Euclidean\ distance = \frac{1}{M} \sum_{v_i,v_j \in M} ||\mathbf{s_i} - \mathbf{s_j}||_F^2

Datasets

Note Dataset download links are available at here

We do benchmark on following datasets:

IndexPaperSpeciesTissueTechnologyResolutionCells/SpotsGenesDownload
1Kristen et al.HumanBrain(dorsolateral prefrontal cortex, DLPFC)10x Visium50μm~3500>20,000website
2Jeffrey et al.MouseBrain(hypothalamic preoptic)MERFISHsubcellular~6,500151website
3Chen et al.MouseWhole embryoStereo-seq0.2μm5000-100,000>20,000website

Run benchmark pipeline

Note You need install extra dependencies following env/README.md.

To repeat our benchmark, just run:

snakemake --profile profiles/local -p