Creates random combinations of phenotypes by shuffling markers and calculates the enrichment and depletion p values

marker_permutation(sce_object, num_iter)

Arguments

sce_object

SingleCellExperiment object in the form of output from format_image_to_sce

num_iter

Integer specifying the number of iterations for bootstrapping

Value

A plot is returned

Examples

sig <- marker_permutation(SPIAT::formatted_image, num_iter = 100)