View source: R/correlationStatistics.R
spatialCrossCorTorTest | R Documentation |
Tests for significance of spatial cross correlation for two features using toroidal shift null model
spatialCrossCorTorTest( x, y, pos, k = 4, n = 1000, ncores = 1, plot = FALSE, ... )
x |
Feature 1 value |
y |
Feature 2 value |
pos |
Position |
k |
Toroidal shift boxes |
n |
Permutation iterations |
ncores |
Number of cores for parallel processing |
plot |
Plot permutated distribution |
... |
Additional parameters to pass to histogram plotting |
P-value
## Not run: data(mOB) pos <- mOB$pos gexp <- normalizeCounts(mOB$counts, log=FALSE, verbose=FALSE) pv1 <- spatialCrossCorTorTest(gexp['Gpsm1',], gexp['Nrgn',], pos) pv2 <- spatialCrossCorTorTest(gexp['Gpsm1',], gexp['Glul',], pos) pv3 <- spatialCrossCorTorTest(gexp[1,], gexp[2,], pos) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.