Signac (version 1.13.0)

ClosestFeature: Closest Feature

Description

Find the closest feature to a given set of genomic regions

Usage

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

Value

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

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

Examples

Run this code
# \donttest{
ClosestFeature(
  object = atac_small,
  regions = head(granges(atac_small))
)
# }

Run the code above in your browser using DataLab