transformGRangesForEvenSpace: Transform GRanges with New Coordinates

Description Usage Arguments Details Value Author(s) Examples

View source: R/transform.R

Description

For graphics, like linked plot, e.g. generated by qplotRangesLinkedToData function in package ggbio. we need to generate a new set of coordinates which is used for even spaced statistics track.

Usage

1

Arguments

gr

A GRanges object.

Details

Most used internally for special graphics, like qplotRangesLinkedToData function in package ggbio.

Value

A GRanges object as passed in, with new column x.new which indicate the static track coordinates, in this way, we could map the new coordinates with the old one.

Author(s)

Tengfei Yin

Examples

1
2
3
4
library(GenomicRanges)
gr <- GRanges("chr1", IRanges(seq(1,100, length.out = 10), width = 5))
library(biovizBase)
transformGRangesForEvenSpace(gr)

biovizBase documentation built on Nov. 8, 2020, 8:01 p.m.