spatialCrossCorMatrix: Calculates a spatial cross correlation for all pairs

View source: R/correlationStatistics.R

spatialCrossCorMatrixR Documentation

Calculates a spatial cross correlation for all pairs

Description

Calculates a spatial cross correlation for all pairs

Usage

spatialCrossCorMatrix(mat, weight)

Arguments

mat

Matrix of feature values

weight

Adjacency weight matrix

Value

Matrix of spatial cross correlationf or all pairs

Examples

data(mOB)
pos <- mOB$pos
weight <- getSpatialNeighbors(pos)
gexp <- normalizeCounts(mOB$counts, log=FALSE, verbose=FALSE)
sccMat <- spatialCrossCorMatrix(gexp[1:5,], weight)


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