gr.refactor: gr.refactor

gr.refactorR Documentation

gr.refactor

Description

Takes a pile of ranges gr and new seqnames "sn" (either of length 1 or of length(gr)) and returns a gr object with the new seqnames and same widths and new start coordinates. These coordinates are determined by placing each gr on the corresponding chromosome at 1 + gap after previous gr (or at 1)

Usage

gr.refactor(gr, sn, gap = 0, rev = FALSE)

Arguments

gr

GRanges to refactor

sn

character vector of new seqnames

gap

Default 0

rev

Default FALSE


mskilab/gChain documentation built on Sept. 28, 2022, 3:45 p.m.