spatial_cor: Calculate spatially expression correlation

View source: R/spatial_cor.R

spatial_corR Documentation

Calculate spatially expression correlation

Description

Calculate spatially expression correlation between two objects. This function can be used to validation the performance of inferred data.

Usage

spatial_cor(
  obj1,
  assay1,
  obj2,
  assay2,
  feature = NA,
  bin = 20,
  cor.method = "pearson",
  n.core = 10,
  n.sample = 300
)

Arguments

obj1

seurat object 1

assay1

choose assay for obj1

obj2

seurat object 2

assay2

choose assay for obj2

feature

select features to calulate

bin

number of bins used to segregate the image

cor.method

method use for correlation

n.core

number of cores to use

n.sample

how many times for sampling regions

Value

Spatial expression correlation of each gene


Czh3/iSpatial documentation built on Sept. 15, 2022, 10:32 p.m.