getCoverage: get the coverage based on a given GRanges object

Description Usage Arguments Value Author(s)

View source: R/methyl-seq.R

Description

calculate the average coverage on each element of a given GRanges object

Usage

1
getCoverage(grange, coverage, startOnly = FALSE, as.GRanges = FALSE)

Arguments

grange

GRanges object specify the genome locations to get coverage

coverage

the genome coverage (a RleList object) output by NGS pipeline

startOnly

whether to calculate the coverage based on the start location or the average of the entire GRanges element

as.GRanges

whether return a GRanges object or a vector of coverage

Value

a vector of coverage or a GRanges object (as.GRanges is TRUE)

Author(s)

Pan Du


methyAnalysis documentation built on Nov. 8, 2020, 8:09 p.m.