getPairwise {spicyR} | R Documentation

## Get statistic from pairwise L curve of a single image.

### Description

Get statistic from pairwise L curve of a single image.

### Usage

    getPairwise(
      cells,
      from = unique(cellType(cells)),
      to = unique(cellType(cells)),
      dist = NULL,
      window = "convex",
      window.length = NULL,
      Rs = c(20, 50, 100),
      sigma = NULL,
      minLambda = 0.05,
      fast = TRUE,
      edgeCorrect = TRUE,
      BPPARAM = BiocParallel::SerialParam()
    )

### Arguments

`cells` | A SegmentedCells or data frame that contains at least the variables x and y, giving the location coordinates of each cell, and cellType.
`from` | The 'from' cellType for generating the L curve.
`to` | The 'to' cellType for generating the L curve.
`dist` | The distance at which the statistic is obtained.
`window` | Should the window around the regions be 'square', 'convex' or 'concave'.
`window.length` | A tuning parameter for controlling the level of concavity when estimating concave windows.
`Rs` | A vector of the radii that the measures of association should be calculated.
`sigma` | A numeric variable used for scaling when fitting inhomogeneous L-curves.
`minLambda` | Minimum value for density for scaling when fitting inhomogeneous L-curves.
`fast` | A logical describing whether to use a fast approximation of the inhomogeneous L-curves.
`edgeCorrect` | A logical indicating whether to perform edge correction.
`BPPARAM` | A BiocParallelParam object.

### Value

Statistic from pairwise L curve of a single image.

### Examples

    data("diabetesData")
    pairAssoc <- getPairwise(diabetesData)

[Package spicyR version 1.6.0 Index]