gr.flatten: Lay ranges end-to-end onto a derivate "chromosome"

Description Usage Arguments Value

View source: R/gUtils.R

Description

Takes pile of GRanges and returns into a data.frame with nrow = length(gr) with each representing the corresponding input range superimposed onto a single "flattened" chromosome, with ranges laid end-to-end

Usage

1
gr.flatten(gr, gap = 0)

Arguments

gr

GRanges to flatten

gap

integer Number of bases between ranges on the new chromosome (default = 0)

Value

data.frame with start and end coordinates, and all of the original metadata


mskilab/gUtils documentation built on Sept. 1, 2018, 8:21 p.m.