rebin_cov: Re-bin coverage data

View source: R/rebin_cov.R

rebin_covR Documentation

Re-bin coverage data

Description

The new bins are overlapped with the regions in cov_df to compute a weight. The coverage in the new bin is the weighted sum of the coverage in overlapping regions of cov_df.

Usage

rebin_cov(cov_df, bins)

Arguments

cov_df

a data.frame with coverage information.

bins

a data.frame or GRanges object with the new bins.

Details

Coordinates in data.frame are expected to be defined by columns names 'chr', 'start' and 'end'.

Value

a data.frame with new bins

Author(s)

Jean Monlong


jmonlong/scCNAutils documentation built on May 3, 2022, 4:34 a.m.