Function to calculate gene signature enrichment scores per spatial position using an enrichment test.
createSpatialEnrich(...)Arguments passed on to runSpatialEnrich
gobjectGiotto object
enrich_methodmethod for gene signature enrichment calculation
sign_matrixMatrix of signature genes for each cell type / process
expression_valuesexpression values to use
reverse_log_scalereverse expression values from log scale
min_overlap_genesminimum number of overlapping genes in sign_matrix required to calculate enrichment (PAGE)
logbaselog base to use if reverse_log_scale = TRUE
p_valuecalculate p-value (default = FALSE)
n_times(page/rank) number of permutation iterations to calculate p-value
rbp_p(rank) fractional binarization threshold (default = 0.99)
num_agg(rank) number of top genes to aggregate (default = 100)
max_blocknumber of lines to process together (default = 20e6)
top_percentage(hyper) percentage of cells that will be considered to have gene expression with matrix binarization
output_enrichmenthow to return enrichment output
nameto give to spatial enrichment results, default = PAGE
verbosebe verbose
return_gobjectreturn giotto object