visiumSpotDistances | R Documentation |
This function calculates the pairwise distances between specified Visium spots based on their x and y coordinates.
visiumSpotDistances(
type = c("small", "large"),
bcs_o = NULL,
bcs_n = NULL,
nnn = NULL
)
type |
A character vector specifying the type of Visium platform. One of "small" or "large". Default is "small". |
bcs_o |
A character vector of barcodes specifying the origin spots. If NULL (default), all barcodes from the specified type are used. |
bcs_n |
A character vector of barcodes specifying the neighbor spots. If NULL (default), all barcodes from the specified type are used. |
nnn |
A numeric value specifying the number of nearest neighbors to consider. If NULL (default), all neighbors are considered. |
A data frame containing the pairwise distances between the specified Visium spots. The data frame contains the following variables:
bcs_o: Barcode of the origin spot.
bcs_n: Barcode of the neighbor spot.
xo: x-coordinate of the origin spot.
yo: y-coordinate of the origin spot.
xn: x-coordinate of the neighbor spot.
yn: y-coordinate of the neighbor spot.
distance: Calculated distance between the origin and neighbor spots.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.