dot-GetCountsByDist: GetCountsByDist Function (ModAnnot)

.GetCountsByDistR Documentation

GetCountsByDist Function (ModAnnot)

Description

Return, in a table, the counts (or proportion) of given "Positions" by distance from feature positions.

Usage

.GetCountsByDist(grangesDist, lAddCorrectedDistFrom5pTo3p = TRUE)

Arguments

grangesDist

A GRanges objects containing ranges of given "Positions" with their distance to feature positions.

lAddCorrectedDistFrom5pTo3p

If TRUE, the distance will be corrected to reflect 5' to 3' direction and will be stored in a new column (dist_5to3). Defaults to TRUE.

Value

A table objects containing "Mod" (or "Base") counts by distance to feature positions. If a "Mod" (or "Base") is within nWindowSizeAroundFeaturePos base pairs of x different feature positions: this "Mod" (or "Base") will then reported x times with the distance to each feature position.


AlexisHardy/DNAModAnnot documentation built on Feb. 27, 2023, 12:03 a.m.