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

View source: R/deltaCaptureC.R

getOverlapWeightsR Documentation

Get the binning factors for one set of GRanges into another

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

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

overlapWeights = getOverlapWeights(weightsExampleBins,weightsExampleGr)

michaeldshapiro/deltaCaptureC documentation built on April 21, 2023, 8:18 a.m.