get_nearest_neighbors {IrisSpatialFeatures} | R Documentation

## Get the nearest neighbor for a specified cell-type

### Description

Get the nearest neighbor for a specified cell-type

### Usage

    get_nearest_neighbors(x, ...)

    ## S4 method for signature 'ImageSet'
    get_nearest_neighbors(x, marker)

### Arguments

`x` | An IrisSpatialFeatures ImageSet object
`...` | Additional arguments
`marker` | Cell type for which the nearest neighbor should be calculated

### Value

nearest neighbors for the specified cell-type

### Examples

    #' #loading pre-read dataset
    dataset <- IrisSpatialFeatures_data
    dataset <- extract_nearest_neighbor(dataset,min_num_cells=2)
    get_nearest_neighbors(dataset,"SOX10+ PDL1+")

[Package IrisSpatialFeatures version 1.3.0 Index]