powered by
Find the closest feature to a given set of genomic regions
ClosestFeature(regions, annotation, ...)
A set of genomic regions to query
A GRanges object containing annotation information.
Additional arguments passed to StringToGRanges
StringToGRanges
Returns a dataframe with the name of each region, the closest feature in the annotation, and the distance to the feature.
# NOT RUN { ClosestFeature( regions = head(rownames(atac_small)), annotation = StringToGRanges( head(rownames(atac_small)), sep = c(':', '-')), sep = c(":", "-") ) # }
Run the code above in your browser using DataLab