x <- spatialTIME::create_mif(clinical_data =spatialTIME::example_clinical %>%
dplyr::mutate(deidentified_id = as.character(deidentified_id)),
sample_data = spatialTIME::example_summary %>%
dplyr::mutate(deidentified_id = as.character(deidentified_id)),
spatial_list = spatialTIME::example_spatial,
patient_id = "deidentified_id",
sample_id = "deidentified_sample")
mnames = x$spatial[[1]] %>%
colnames() %>%
grep("Pos|CD", ., value =TRUE) %>%
grep("Cyto|Nucle", ., value =TRUE, invert =TRUE)
x2 = ripleys_k(mif = x,
mnames = mnames[1],
r_range = seq(0, 100, 1),
num_permutations = 100,
edge_correction = "translation",
method = "K",
permute = FALSE,
keep_permutation_distribution =FALSE,
workers = 1,
overwrite =TRUE)
Run the code above in your browser using DataLab