API#
Core#
|
Cellina model with dual encoders for counts and spatial data. |
|
Cellina model with dual encoders for counts (MLP) and spatial context (GCN). |
Utilities#
|
Compute spatial neighbourhood features and store them in |
|
Create a counterfactual AnnData keeping everything from the original except .obsm[spatial_column], which is replaced with counterfactual spatial neighbourhood features. |
|
Apply Node perturbations to neighbour expression and re-aggregate. |
|
Apply Node perturbations to counts and store the result as a layer. |
|
Generate spatial connectivity weights using Euclidean distance. |