Closest Feature
Find the closest feature to a given set of genomic regions
ClosestFeature(object, regions, annotation = NULL, ...)
object
: A Seurat objectregions
: A set of genomic regions to queryannotation
: A GRanges object containing annotation information. If NULL, use the annotations stored in the object....
: Additional arguments passed to StringToGRanges
Returns a dataframe with the name of each region, the closest feature in the annotation, and the distance to the feature.
ClosestFeature( object = atac_small, regions = head(granges(atac_small)) )
Useful links