Compute nearest distance to each phenotype for each cell in a (possibly merged) inForm cell seg table. Add Distance to <phenotype> columns. Write the result to a new file.

compute_all_nearest_distance(cell_table_path = NULL, out_path = NULL)



Path to an inForm cell seg data file, or NULL to prompt for the path.


Path to the output file, or NULL to create a path from the input file path.


NOTE: The input file is read using read_cell_seg_data so the conversions and cleanup it does will be applied to the output data.

See also

find_nearest_distance which performs the distance calculation.

Other distance functions: count_touching_cells, count_within_batch, count_within, distance_matrix, find_nearest_distance, spatial_distribution_report, subset_distance_matrix