Single-cell spatial-protein metric introduce by Steinhart et al in https://doi.org/10.1158/1541-7786.mcr-21-0411
interaction_variable(
mif,
mnames,
r_range = NULL,
num_permutations = 100,
keep_permutation_distribution = FALSE,
workers = 1,
overwrite = FALSE,
xloc = NULL,
yloc = NULL
)
object of class `mif`
a character vector or table with 2 columns indicating the from-to markers to assess
numeric vector of radii for which to calculate the interaction variable at
integer for how many permutations to use to derive the interaction estimate under CSR
boolean for whether or not to keep all permutation results or average them
integer for the number of CPU cores to use for permutations, markers, and spatial samples
boolean for whether to overwrite existing interaction variable results
column name in spatial files containing the x location - if left NULL will average columns XMin and XMax
column name in spatial files containing the y location - if left NULL will average columns YMin and YMax
object of class mif with the interaction variable derive slot filled