bin_regions_nbins: Bin regions using a fixed number of bins

View source: R/bin_regions.R

bin_regions_nbinsR Documentation

Bin regions using a fixed number of bins

Description

Bin regions using a fixed number of bins

Usage

bin_regions_nbins(gr, n_bins = 100, n_bins_exp = 2, id_col = "peakID")

Arguments

gr

GRanges containing the regions to be divided.

n_bins

Numeric incating the number of bins to divide the regions into (including the extended coordinates).

n_bins_exp

Numeric indicating the value by which to expand the regions (width(gr)*n_bins_exp).

id_col

Numeric or character indicating the mcol number or name of the unique identifier for the regions.

Value

GRanges object with the peaks extended to width(gr)*n_bins_exp and divided into a fixed number of bins.


mireia-bioinfo/meowmics documentation built on July 29, 2023, 10 p.m.