R/average_nearest_neighbor_index.R
average_nearest_neighbor_index.RdCalculate the the ANN index of a specified type of cells. Return a list that contains the pattern of cells ("Clustered", "Dispersed", or "Random")
average_nearest_neighbor_index(sce_object, reference_cell, column)
| sce_object | SingleCellExperiment object in the form of the output of format_image_to_sce |
|---|---|
| reference_cell | Cells positive for this marker will be used as reference |
| column | String specify the selected column for reference_cell |