getNearestFeatureIndicesAndDistances: getNearestFeatureIndicesAndDistances

View source: R/getNearestFeatureIndicesAndDistances.R

getNearestFeatureIndicesAndDistancesR Documentation

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


YuLab-SMU/ChIPseeker documentation built on Nov. 2, 2024, 1:45 p.m.