exvar.point.density | R Documentation |
This explanatory variable can be used with CSIDE to detect DE in the proximity of these points. Density is computing using an exponentially-decaying filter.
exvar.point.density(myRCTD, barcodes, points, radius = 50)
myRCTD |
an |
barcodes |
the barcodes, or pixel names, of the |
points |
a N by 2 matrix containing the locations of the points to be used for computing density. The first column should be the x coordinates while the second column should be the y coordinate. |
radius |
(default 50) the radius of the exponential filter. Approximately, the distance considered to be a relevant interaction. |
explanatory.variable a named numeric vector representing the explanatory variable used for explaining differential expression in CSIDE. Names of the variable
are the SpatialRNA
pixel names, and values are standardized between 0 and 1. This variable represents density of the given point set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.