View source: R/registration_stats_enrichment.R
registration_stats_enrichment | R Documentation |
This function computes the gene enrichment t-statistics (one group > the
rest). These t-statistics are the ones typically used for spatial
registration with layer_stat_cor()
and related functions.
registration_stats_enrichment(
sce_pseudo,
block_cor,
covars = NULL,
var_registration = "registration_variable",
var_sample_id = "registration_sample_id",
gene_ensembl = NULL,
gene_name = NULL
)
sce_pseudo |
The output of |
block_cor |
A |
covars |
A |
var_registration |
A |
var_sample_id |
A |
gene_ensembl |
A |
gene_name |
A |
A data.frame()
with the enrichment statistical results. This is
similar to fetch_data("modeling_results")$enrichment
.
Other spatial registration and statistical modeling functions:
registration_block_cor()
,
registration_model()
,
registration_pseudobulk()
,
registration_stats_anova()
,
registration_stats_pairwise()
,
registration_wrapper()
example("registration_block_cor", package = "spatialLIBD")
results_enrichment <- registration_stats_enrichment(sce_pseudo,
block_cor, "age",
gene_ensembl = "ensembl", gene_name = "gene_name"
)
head(results_enrichment)
## Specifying `block_cor = NaN` then ignores the correlation structure
results_enrichment_nan <- registration_stats_enrichment(sce_pseudo,
block_cor = NaN, "age",
gene_ensembl = "ensembl", gene_name = "gene_name"
)
head(results_enrichment_nan)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.