spatialCrossCor: Calculates spatial cross correlation for two features

View source: R/correlationStatistics.R

spatialCrossCorR Documentation

Calculates spatial cross correlation for two features

Description

Calculates spatial cross correlation for two features

Usage

spatialCrossCor(x, y, weight)

Arguments

x

Feature 1 value

y

Feature 2 value

weight

Adjacency weight matrix

Value

Spatial cross correlation statistic

Examples

data(mOB)
pos <- mOB$pos
weight <- getSpatialNeighbors(pos)
gexp <- normalizeCounts(mOB$counts, log=FALSE, verbose=FALSE)
scc <- spatialCrossCor(gexp[1,], gexp[2,], weight)


JEFworks/MERingue documentation built on June 11, 2022, 4:16 a.m.