gr.sum | R Documentation |
Sums GRanges either by doing coverage and either weighting them equally or using a field "weight". Will return either sum or average.
gr.sum(gr, field = NULL, mean = FALSE)
gr |
|
field |
metadata field from gr to use as a weight |
mean |
logical scalar specifying whether to divide the output at each interval but the total number of intervals overlapping it (only applies if field == NULL) (default FALSE) |
non-overlapping GRanges spanning the seqlengths of gr with $score (if field is NULL) or $field specifying the sum / mean at that position
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.