Preprocessing the the spatial experiment data for SimpleSeg output (per sample).

readSimpleSeg_per_sample(
  spe,
  mask,
  method_name = "SimpleSeg",
  cell_id = "cell_id"
)

Arguments

spe

A Spatial Experiment object for only one image ID.

mask

The mask results from simpleSeg.

method_name

A string indicates the method name of the cell segmentation.

cell_id

A string indicates the cell ID column in SpatialExperiment object.