.compute_interspot_distances {BayesSpace} | R Documentation

## Estimate the distance between two neighboring spots

### Description

Fit linear models between each image pixel coordinate and its corresponding array coordinate to estimate the pixel distance between two spots along each axis. Add these distances to estimate the L1 distance between two spots, then add a small buffer.

### Usage

    .compute_interspot_distances(sce, scale.factor = 1.02)

### Arguments

`sce` | SingleCellExperiment (must include row, col, imagerow, imagecol in colData)
`scale.factor` | Scale estimated L1 difference up by this amount.

### Value

doubles xdist, ydist, radius

[Package BayesSpace version 1.2.1 Index]