GetGposCenterFromGRanges: GetGposCenterFromGRanges Function (DaLoad)

View source: R/DaLoad.R

GetGposCenterFromGRangesR Documentation

GetGposCenterFromGRanges Function (DaLoad)

Description

Retrieve, in a GPos object, the positions of the center of the ranges from a GRanges object.

Usage

GetGposCenterFromGRanges(grangesData)

Arguments

grangesData

A GRanges object to be converted as a GPos object. The center of each range will be processed in the GPos object output.

Examples

myRanges <- as(c("chrI:300-500:+", "chrI:308-680:+", "chrII:30-550:-"), "GRanges")
myCenterPos <- GetGposCenterFromGRanges(grangesData = myRanges)
myCenterPos

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