Subset the rows and columns of a distance matrix.

subset_distance_matrix(csd, dst, row_selection, col_selection)

Arguments

csd

A data frame containing cell segmentation data, such as the result of read_cell_seg_data.

dst

The distance matrix corresponding to csd, produced by calling distance_matrix.

row_selection, col_selection

Selection criteria for the rows and columns. Accepts all formats accepted by select_rows.

Value

The input matrix dst subsetted to include only the rows corresponding to row_selection and columns corresponding to col_selection.