bin_granges: Take input of a GRanges object, and use that seqinfo to bin...

bin_grangesR Documentation

Take input of a GRanges object, and use that seqinfo to bin by bin_size

Description

Take input of a GRanges object, and use that seqinfo to bin by bin_size

Usage

bin_granges(
  gr,
  genome = NULL,
  bin_size = NULL,
  mcol_in,
  mcol_in_lim = NULL,
  one_to_x = TRUE
)

Arguments

gr

GRanges object with seqinfo used to make bins

genome

use this to add seqinfo if none extant (e.g. "hg19", "hg38")

bin_size

base pairs by which to bin

mcol_in

string naming mcols to use for binning (one only)

mcol_in_lim

numeric on which to screen mcol_in column; if length>1, take all outside the range suplied

one_to_x

logical indicating whether to use chr1..chrX for bin, as opposed to what is in input GRanges

Value

GRanges binned on mcol_in


brucemoran/somenone documentation built on Nov. 1, 2022, 3:56 p.m.