Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getNearestFeatureIndicesAndDistances

getNearestFeatureIndicesAndDistances


Description

get index of features that closest to peak and calculate distance

Usage

getNearestFeatureIndicesAndDistances(
  peaks,
  features,
  sameStrand = FALSE,
  ignoreOverlap = FALSE,
  ignoreUpstream = FALSE,
  ignoreDownstream = FALSE,
  overlap = "TSS"
)

Arguments

peaks

peak in GRanges

features

features in GRanges

sameStrand

logical, whether find nearest gene in the same strand

ignoreOverlap

logical, whether ignore overlap of TSS with peak

ignoreUpstream

logical, if True only annotate gene at the 3' of the peak.

ignoreDownstream

logical, if True only annotate gene at the 5' of the peak.

overlap

one of "TSS" or "all"

Value

list

Author(s)

G Yu


ChIPseeker

ChIPseeker for ChIP peak Annotation, Comparison, and Visualization

v1.26.2
Artistic-2.0
Authors
Guangchuang Yu [aut, cre] (<https://orcid.org/0000-0002-6485-8781>), Yun Yan [ctb], Hervé Pagès [ctb], Michael Kluge [ctb], Thomas Schwarzl [ctb], Zhougeng Xu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.