get_nearest_neighbors {IrisSpatialFeatures} | R Documentation |
Get the nearest neighbor for a specified cell-type
get_nearest_neighbors(x, ...) ## S4 method for signature 'ImageSet' get_nearest_neighbors(x, marker)
x |
An IrisSpatialFeatures ImageSet object |
... |
Additional arguments |
marker |
Cell type for which the nearest neighbor should be calculated |
nearest neighbors for the specified cell-type
#' #loading pre-read dataset dataset <- IrisSpatialFeatures_data dataset <- extract_nearest_neighbor(dataset,min_num_cells=2) get_nearest_neighbors(dataset,"SOX10+ PDL1+")