ClosestFeature: Closest Feature

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Find the closest feature to a given set of genomic regions

Usage

1
ClosestFeature(object, regions, annotation = NULL, ...)

Arguments

object

A Seurat object

regions

A set of genomic regions to query

annotation

A GRanges object containing annotation information. If NULL, use the annotations stored in the object.

...

Additional arguments passed to StringToGRanges

Value

Returns a dataframe with the name of each region, the closest feature in the annotation, and the distance to the feature.

Examples

1
2
3
4
ClosestFeature(
  object = atac_small,
  regions = head(granges(atac_small))
)

Signac documentation built on Dec. 11, 2021, 9:55 a.m.