View source: R/registration_block_cor.R
registration_block_cor | R Documentation |
This function computes the block correlation using the sample ID as the blocking factor. This takes into account that cells in scRNA-seq data or spots in spatially-resolved transcriptomics data from Visium (or similar) have a sample ID batch effect.
registration_block_cor(
sce_pseudo,
registration_model,
var_sample_id = "registration_sample_id"
)
sce_pseudo |
The output of |
registration_model |
The output from |
var_sample_id |
A |
A numeric(1)
with the block correlation at the sample ID level.
Other spatial registration and statistical modeling functions:
registration_model()
,
registration_pseudobulk()
,
registration_stats_anova()
,
registration_stats_enrichment()
,
registration_stats_pairwise()
,
registration_wrapper()
example("registration_model", package = "spatialLIBD")
block_cor <- registration_block_cor(sce_pseudo, registration_mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.