Skip to contents

Test

Every pair of cell types, between conditions or with survival.

SpicyResults-class SpicyResults
The results of spicy()
bind()
The per-image values of every pair, or of one pair, as a data frame
calibrationCheck() summary(<spicyCalibration>) plot(<spicyCalibration>)
Check that spicy() is calibrated on your data by shuffling the condition
spicy()
Test for changes in the co-localisation of cell types between conditions
testCorrelation()
The correlation between the tests of a spicy() result
topFollowUps()
The follow-up comparisons of two levels, for more than two conditions
topPairs()
The most significant pairs, or the results of chosen pairs

Plot

imageCrossPlot()
Pairwise cross-plot of spatial associations
plotImage()
Plot images, showing their cell types or the from and to cells of a pair
radiusPlot()
The evidence for pairs at each radius
signifPlot()
Plots result of signifPlot.
spicyBoxPlot()
Box plot of one pair, with a point per image

Per-image statistics (image method)

Inputs and helpers for spicy(method = "image"), the original spicyR test.

buildKnnGraph()
Build a k-nearest-neighbour graph between cells
colTest()
Perform a simple wilcoxon-rank-sum test or t-test on the columns of a data frame
convPairs()
Converts colPairs object into an abundance matrix based on number of nearby interactions for every cell type.
getPairwise()
Get statistic from pairwise L curve of a single image.
getPairwiseProp()
Observed/expected proportion ratio for a fixed-k neighbourhood
getProp()
Get proportions from a SummarizedExperiment.

Large data sets

Cells stored on disk as a SpatialData Zarr store, which spicy() reads image by image.

writeCellStore()
Write cells as a SpatialData Zarr store

Data

diabetesData
Imaging mass cytometry of human pancreas in type 1 diabetes (Damond et al. 2019)
spicyTest
Results of the image-level test on diabetesData