Returns the mixing score between a reference marker and a target marker. The mixing score is defined by: the number of target-reference interactions/number of reference-reference interactions within a specified radius.
compute_mixing_score(sce_object, reference_marker, target_marker, radius = 20)
sce_object | SingleCellExperiment object in the form of the output of format_image_to_sce |
---|---|
reference_marker | String specifying the reference marker |
target_marker | String specifying the target marker |
radius | Integer specifying the radius. Only cells within this radius will be considered. |
A single number is returned
#> [1] "Number of reference cells: 513" #> [1] "Number of target cells: 138" #> [1] "Number of reference-target interactions: 67" #> [1] "Number of reference-reference interactions: 412"#> [1] 0.1626214