coloc_index | R Documentation |
Compute a co-localization index between two sets of points. Adapted from: Willems and MacGillavry, A coordinate-based co-localization index to quantify and visualize spatial associations in single-molecule localization microscopy. Sci Rep 12, 4676 (2022). https://doi.org/10.1038/s41598-022-08746-4
coloc_index(
P1,
locprec1 = NULL,
locprecz1 = NULL,
P2,
locprec2 = NULL,
locprecz2 = NULL
)
P1 |
a point set as matrix or data frame with columns x,y,z. |
locprec1 |
(optional) localization precision in x,y for P1 |
locprecz1 |
(optional) localization precision along z for P1 |
P2 |
a point set as matrix or data frame with columns x,y,z. |
locprec2 |
(optional) localization precision in x,y for P2 |
locprecz2 |
(optional) localization precision along z for P2 |
This can be seen as measuring the similarity between two spatial distributions. Co-clustering in dense structures can give values above 1.
Localization precision is optional but if used then all locprec parameters must be specified.
a list with two elements:
vector of co-localization indices for points in P1 relative to P2
vector of co-localization indices for points in P2 relative to P1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.