View source: R/correlationStatistics.R
spatialCrossCor | R Documentation |
Calculates spatial cross correlation for two features
spatialCrossCor(x, y, weight)
x |
Feature 1 value |
y |
Feature 2 value |
weight |
Adjacency weight matrix |
Spatial cross correlation statistic
data(mOB) pos <- mOB$pos weight <- getSpatialNeighbors(pos) gexp <- normalizeCounts(mOB$counts, log=FALSE, verbose=FALSE) scc <- spatialCrossCor(gexp[1,], gexp[2,], weight)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.