getCoverage {methyAnalysis}R Documentation

get the coverage based on a given GRanges object

Description

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

Usage

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


[Package methyAnalysis version 1.30.0 Index]