convertGRtoRelCoord: Convert Genomic Ranges to relative cooridnates

View source: R/methMatrixManipulation.R

convertGRtoRelCoordR Documentation

Convert Genomic Ranges to relative cooridnates

Description

Convert a normal genomic ranges to one 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). The original start end and strand are stored in the metadata.

Usage

convertGRtoRelCoord(grs, winSize, anchorPoint = "middle")

Arguments

grs

A GenomicRanges object to be converted to relative coordinates

winSize

The size of the window you wish to create

anchorPoint

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

Value

A GenomicRanges object with relative coordinate numbering


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