getCoverage {methyAnalysis} | R Documentation |
calculate the average coverage on each element of a given GRanges object
getCoverage(grange, coverage, startOnly = FALSE, as.GRanges = FALSE)
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 |
a vector of coverage or a GRanges object (as.GRanges is TRUE)
Pan Du