convertRelCoordtoGR: Convert relative cooridnates to absolute genomic position

View source: R/methMatrixManipulation.R

convertRelCoordtoGRR Documentation

Convert relative cooridnates to absolute genomic position

Description

Convert genomic ranges where the start and end are relative to some anchor point - either the middle or the start of the genomic ranges (e.g. -250 to 250, or 0 to 500) to a normal Genomic Ranges with absolute genomic positions.

Usage

convertRelCoordtoGR(grsRelCoord, regionGR, anchorPoint = "middle")

Arguments

grsRelCoord

A GenomicRanges object with one or more relative coordinate ranges to be converted to absolute genomic positions.

regionGR

A GenomicRanges object for the whole region to which the grsRelCoord are relative to.

anchorPoint

One of "middle" or "start": the position from which numbering starts

Value

A GenomicRanges object with absolute genomic position


jsemple19/methMatrix documentation built on Aug. 19, 2022, 3:57 p.m.