Description Usage Arguments Value
View source: R/io_and_formats.R
Count the number of times a list of GenomicRanges objects overlaps another list of GenomicRanges objects.
1 2 | count_fragment_overlaps(fragment_list, target_GRanges, binarize = TRUE,
aggregate = FALSE)
|
fragment_list |
The list object containing GenomicRanges objects. |
target_GRanges |
A second list of GenomicRanges objects. |
binarize |
Logical indicating whether to retain count values for each region on count overlaps as binary. Default is TRUE. |
aggregate |
Logical indicating whether to return a matrix of counts or a vector of count sums. |
If aggregate == TRUE, a vector with the total count of overlaps between each object in fragment_list and all objects in target_GRanges. If aggregate == FALSE, a matrix with count values for overlaps between each object in fragment_list (as columns) and each object in target_GRanges (as rows).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.