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

gr.flattenR Documentation

Lay ranges end-to-end onto a derivate "chromosome"

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

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 June 6, 2023, 12:08 a.m.