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