Skip to contents

Creates random combinations of phenotypes by shuffling markers. and calculates the enrichment and depletion p values. -- p values based on what hypothesis? Does this need an explanation of what context you would use this in?(?)

Usage

marker_permutation(sce_object, num_iter)

Arguments

sce_object

SingleCellExperiment object in the form of the output of format_image_to_sce.

num_iter

Integer specifying the number of iterations for bootstrapping.

Value

A plot is returned

Examples

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