getOverlapWeights: Get the binning factors for one set of GRanges into another

Description Usage Arguments Value Examples

View source: R/deltaCaptureC.R

Description

This function takes two GRanges, one representing a set of bins and the other representing data to be pro-rated over those bins and returns a data frame giving the overlaps, various widths and the fractions for pro-rating scores

Usage

1
getOverlapWeights(bins, gr, checkDisjoint = FALSE)

Arguments

bins

a set of GRanges to be used for binning data.

gr

the GRanges of the data to be binned

checkDisjoint

= FALSE if this is TRUE it will check to see that the ranges in each of bins and gr are disjoint

Value

A data frame giving index pairs for the intersections, widths of the intersections and the fraction of each gr range meeting each bin

Examples

1

deltaCaptureC documentation built on Nov. 8, 2020, 5:31 p.m.