Function to calculate gene signature enrichment scores per spatial position using a hypergeometric test.
hyperGeometricEnrich(...)Arguments passed on to runHyperGeometricEnrich
gobjectGiotto object
sign_matrixMatrix of signature genes for each cell type / process
expression_valuesexpression values to use
reverse_log_scalereverse expression values from log scale
logbaselog base to use if reverse_log_scale = TRUE
top_percentagepercentage of cells that will be considered to have gene expression with matrix binarization
output_enrichmenthow to return enrichment output
p_valuecalculate p-values (boolean, default = FALSE)
nameto give to spatial enrichment results, default = rank
return_gobjectreturn giotto object