gr.flatmap: gr.flatmap

gr.flatmapR Documentation

gr.flatmap

Description

Takes GRanges pile and maps onto a flattened coordinate system defined by windows (GRanges object) a provided "gap" (in sequence units). If squeeze == TRUE then will additionally squeeze ranges into xlim.

Usage

gr.flatmap(
  gr,
  windows,
  gap = 0,
  strand.agnostic = TRUE,
  squeeze = FALSE,
  xlim = c(0, 1)
)

Arguments

gr

GRanges pile to flatten

windows

GRanges pile of windows defining the coordinate system

gap

TODO

strand.agnostic

TODO

squeeze

TODO

xlim

TODO

Details

output is list with two fields corresponding to data frames: $grl.segs = data frame of input gr's "lifted" onto new flattened coordinate space (NOTE: nrow of this not necessarily equal to length(gr)) $window.segs = the coordinates of input windows in the new flattened (and squeezed) space

Value

TODO


mskilab/gTrack documentation built on March 28, 2024, 6:18 p.m.