find_nearest_distance_dist: Distance-matrix implementation of 'find_nearest_distance'.

Description Usage Arguments Value See Also

View source: R/distance_funcs.R

Description

Distance-matrix implementation of find_nearest_distance.

Usage

1
find_nearest_distance_dist(csd, phenotypes = NULL, dst = NULL)

Arguments

csd

A data frame with Cell X Position, Cell Y Position and Phenotype columns, such as the result of calling read_cell_seg_data.

phenotypes

Optional list of phenotypes to include. If omitted, unique_phenotypes(csd) will be used.

dst

Optional distance matrix. If provided, this should be distance_matrix(csd).

Value

A tibble containing a Distance to <phenotype> column and Cell ID <phenotype> column for each phenotype. Columns will contain NA values where there is no other cell of the phenotype.

See Also

find_nearest_distance


akoyabio/phenoptr documentation built on Jan. 7, 2022, 5:37 p.m.