calc_mean_cov: Collapse bigwig files into a mean coverage

Description Usage Arguments Value

View source: R/generate_ERs.R

Description

calc_mean_cov takes as input a set of bws. Then uses the total AUC to normalise coverage per sample and finally collapses the coverage for each sample into a mean coverage.

Usage

1
calc_mean_cov(bw_paths, aucs, target_auc, chr_to_filter)

Arguments

bw_paths

paths to bigwig files.

aucs

vector containing aucs matching the order of bigwig paths.

target_auc

total auc to normalise all samples to. E.g. 40e6 * 100 would be the estimated total auc for sample sequenced to 40 million reads of 100bp in length.

chr_to_filter

chrs to obtain mean coverage for.

Value

list of Rle objects. Each containing the mean coverage for an entire chromosome.


dzhang32/ODER documentation built on April 23, 2021, 11:21 p.m.