defineJunction: Annotate spots on border between two features

View source: R/tissue.in.depth.R

defineJunctionR Documentation

Annotate spots on border between two features

Description

find spots that belongs to one feature but contact with another

Usage

defineJunction(
  v,
  ann.column,
  which,
  contactTo,
  image.name = NULL,
  dist.thr = 1.2
)

Arguments

v

Seurat visium object

ann.column

name of meta.data column that holds feature annotation

which

name if feature border spots should belong to

contactTo

name if feature border spots should contact with

image.name

image to use, specify if object contains more than one sample

dist.thr

maximal distance (in distances between spots) to consider spots as neighbors

Value

data.frame with two columns logical 'junction' that specifies whether spot belongs to junction and numerical 'dist2junction' expressed in inter-spot distances


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.