Learn R Programming

spots (version 0.1.0)

VisiumHnn: 10x Genomics Visium hexagonal nearest neighbor

Description

Get hexagonal nearest neighbor distance between 10x Visium spatial barcodes.

Usage

VisiumHnn(path, barcodes)

Arguments

path

Path to the directory contains or to download the HNN distance for Visium barcodes, i.e. "~/Downloads".

barcodes

10x Visium whitelisted spatial barcodes.

Value

A hexagonal distance matrix for selected barcodes.

See Also

available.data LoadData.

Examples

Run this code
# NOT RUN {
barcodes <- c("AAACAACGAATAGTTC-1", "AAACTTAATTGCACGC-1")
VisiumHnn("~/Downloads/", barcodes)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab