runHyperGeometricEnrich
¶
runHyperGeometricEnrich
Description¶
Function to calculate gene signature enrichment scores per spatial position using a hypergeometric test.
Usage¶
runHyperGeometricEnrich(
gobject,
spat_unit = NULL,
feat_type = NULL,
sign_matrix,
expression_values = c("normalized", "scaled", "custom"),
reverse_log_scale = TRUE,
logbase = 2,
top_percentage = 5,
output_enrichment = c("original", "zscore"),
p_value = FALSE,
name = NULL,
return_gobject = TRUE
)
Arguments¶
Argument |
Description |
---|---|
|
Giotto object |
|
spatial unit |
|
feature type |
|
Matrix of signature genes for each cell type / process |
|
expression values to use |
|
reverse expression values from log scale |
|
log base to use if reverse_log_scale = TRUE |
|
percentage of cells that will be considered to have gene expression with matrix binarization |
|
how to return enrichment output |
|
calculate p-values (boolean, default = FALSE) |
|
to give to spatial enrichment results, default = rank |
|
return giotto object |
Details¶
- The enrichment score is calculated based on the p-value from the
hypergeometric test, -log10(p-value).
Value¶
data.table with enrichment results