getRelativeCoord: Convert C position numbering from genomic to relative...

View source: R/methMatrixManipulation.R

getRelativeCoordR Documentation

Convert C position numbering from genomic to relative coordinates

Description

Convert C position numbering from genomic to relative coordinates

Usage

getRelativeCoord(mat, regionGR, invert = F)

Arguments

mat

A methylation matrix

regionGR

A genomicRanges object of the region relative to which the new coordinates are caclulated

invert

A logical variable to indicate if the region should be inverted (e.g. if it is on the negative strand). Default: FALSE

Value

A methylation matrix in which the column names have been changed from absolute genomic positions to relative positions within the genomicRange regionGR


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