Skip to contents

Function to create a nearest neighbors graph with Delaunay triangulation (which underlies the Voronoi representation). Implemented with interp

Usage

createDelaunayTriangulation.Region(
  object,
  representation = "spatial",
  name = NULL,
  dist_filter = NULL,
  ...
)

Arguments

object

A Region object.

representation

Which representation's embeddings should be used to compute the graph?

name

A custom name for the graph. By default, will be named according to the representation, method, and parameter specified (e.g. umap_knn_5, pca_frnn_50, spatial_del).

dist_filter

A distance beyond which interactions will be dropped. If using a "spatial" representation, this distance will be in pixels. Passed to nn.applyDistanceCutoff(). KNN and Delaunay triangulation graphs may extend across gaps in tissue as long as there are no cells in those gaps, so this threshold can be helpful to ensure that interactions in the NN are representative of the true biological tissue structure. Default (NULL) skips this filtering.

...

Additional arguments passed to interp::tri.mesh

Scroll to top