Calculates the ratio of the tumour border cell count and the
total tumour cell count in an image. The tumour border cells are detected
by the default identify_bordering_cells
function. If the
ratio is high, it means that most tumour cells are identified as bordering
cells. This means there is no clear tumour clusters.
Arguments
- sce_object
SingleCellExperiment object generated by
format_image_to_sce
.- cell_type_of_interest
String. The cell type that the user wants to determine a cluster of.
- feature_colname
String. The column that contains the cell type of interest.
Examples
R_BT(SPIAT::defined_image, cell_type_of_interest = "Tumour", "Cell.Type")
#> [1] 0.2014652