This function processes the spatial files in the mif object, requiring a column that distinguishes between different groups i.e. tumor and stroma
dixons_s(
mif,
mnames,
num_permutations = 1000,
type = c("Z", "C"),
workers = 1,
overwrite = FALSE,
xloc = NULL,
yloc = NULL
)
An MIF object
vector of markers corresponding to spatial columns to check Dixon's S between
Numeric value indicating the number of permutations used. Default is 1000.
a character string for the type that is wanted in the output which can be "Z" for z-statistic results or "C" for Chi-squared statistic results
Integer value for the number of workers to spawn
Logical value determining if you want the results to replace the current output (TRUE) or be to be appended (FALSE).
a string corresponding to the x coordinates. If null the average of XMin and XMax will be used
a string corresponding to the y coordinates. If null the average of YMin and YMax will be used
Returns a data frame for Z-statistic
Returns a data frame for C-statistic
#' #Create mif object
library(dplyr)
x <- create_mif(clinical_data = example_clinical %>%
mutate(deidentified_id = as.character(deidentified_id)),
sample_data = example_summary %>%
mutate(deidentified_id = as.character(deidentified_id)),
spatial_list = example_spatial,
patient_id = "deidentified_id",
sample_id = "deidentified_sample")