Preprocessing the the spatial experiment data for cell-level expression matrix with mask output.

readMatrixMask_per_sample(
  cell_mat,
  cell_coord,
  cell_id,
  mask,
  method_name = "SimpleSeg"
)

Arguments

cell_mat

A gene by cell matrix indicates the segmented cell expression.

cell_coord

A matrix with 3 column indicates the x_coord, y_coord and cell_id of each cell in `cell_mat`.

cell_id

A vector indicates the cell_id for the columns of `cell_mat`.

mask

The mask results from cell segmentiation method

method_name

A string indicates the method name of the cell segmentation.