Function to calculate gene signature enrichment scores per spatial position using a rank based approach.
rankEnrich(...)Arguments passed on to runRankEnrich
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
output_enrichmenthow to return enrichment output
ties_methodhow to handle rank ties
p_valuecalculate p-values (boolean, default = FALSE)
n_timesnumber of permutations to calculate for p_value
rbp_pfractional binarization threshold (default = 0.99)
num_aggnumber of top genes to aggregate (default = 100)
nameto give to spatial enrichment results, default = rank
return_gobjectreturn giotto object