This function reduces the bait and/or oe regions of a linkSet object and optionally counts interactions, while maintaining the original length of the linkSet.
Usage
# S4 method for class 'linkSet'
reduceRegions(x, region = "both", countInteractions = TRUE, ...)
Arguments
- x
A linkSet object
- countInteractions
Logical, whether to count interactions after reducing (default: TRUE)
- ...
Additional arguments passed to GenomicRanges::reduce
- reduceBait
Logical, whether to reduce bait regions (default: TRUE)
- reduceOE
Logical, whether to reduce other end (oe) regions (default: TRUE)
Examples
data(linkExample)
reduced_ls <- reduceRegions(linkExample, region = "both", countInteractions = TRUE)
#> Error in reduceRegions(linkExample, region = "both", countInteractions = TRUE): unused arguments (region = "both", countInteractions = TRUE)
reduced_ls
#> Error: object 'reduced_ls' not found