ConstructNNMat: Construct nearest neighbor matrix from nn.idx

View source: R/seurat_anchor_correction.R

ConstructNNMatR Documentation

Construct nearest neighbor matrix from nn.idx

Description

Construct nearest neighbor matrix from nn.idx

Usage

ConstructNNMat(nn.idx, offset1, offset2, dims)

Arguments

nn.idx

Nearest neighbor index matrix (nn.idx from RANN)

offset1

Offsets for the first neighbor

offset2

Offsets for the second neighbor

Value

returns a sparse matrix representing the NN matrix


CamaraLab/STvEA documentation built on April 2, 2024, 6:07 a.m.