runSpatialEnrich
¶
runSpatialEnrich
Description¶
Function to calculate gene signature enrichment scores per spatial position using an enrichment test.
Usage¶
runSpatialEnrich(
gobject,
spat_unit = NULL,
feat_type = NULL,
enrich_method = c("PAGE", "rank", "hypergeometric"),
sign_matrix,
expression_values = c("normalized", "scaled", "custom"),
min_overlap_genes = 5,
reverse_log_scale = TRUE,
logbase = 2,
p_value = FALSE,
n_times = 1000,
rbp_p = 0.99,
num_agg = 100,
max_block = 2e+07,
top_percentage = 5,
output_enrichment = c("original", "zscore"),
name = NULL,
verbose = TRUE,
return_gobject = TRUE
)
Arguments¶
Argument |
Description |
---|---|
|
Giotto object |
|
spatial unit |
|
feature type |
|
method for gene signature enrichment calculation |
|
Matrix of signature genes for each cell type / process |
|
expression values to use |
|
minimum number of overlapping genes in sign_matrix required to calculate enrichment (PAGE) |
|
reverse expression values from log scale |
|
log base to use if reverse_log_scale = TRUE |
|
calculate p-value (default = FALSE) |
|
(page/rank) number of permutation iterations to calculate p-value |
|
(rank) fractional binarization threshold (default = 0.99) |
|
(rank) number of top genes to aggregate (default = 100) |
|
number of lines to process together (default = 20e6) |
|
(hyper) percentage of cells that will be considered to have gene expression with matrix binarization |
|
how to return enrichment output |
|
to give to spatial enrichment results, default = PAGE |
|
be verbose |
|
return giotto object |
Details¶
For details see the individual functions:
PAGE: list(list(“runPAGEEnrich”))
Rank: list(list(“runRankEnrich”))
Hypergeometric: list(list(“runHyperGeometricEnrich”))
Value¶
Giotto object or enrichment results if return_gobject = FALSE