Read cellular position and annotation data into a list object.
Source:R/read_data.R
readHoodData.Rd
Read cellular position and annotation data into a list object.
Arguments
- spe
SpatialExperiment object.
- anno_col
Character. The column name of the annotation to be used in the following neighbourhood analysis.
- cell_pos_dat
data.frame object contains the cellular positions.
- cell_anno_dat
data.frame object contains the cell annotations.
- pos_col
Character. If the x and y are in the colData instead of in the SpatialCoords of spe, can specify this parameter.
Examples
data("spe_test")
spe <- readHoodData(spe, anno_col = "celltypes")