Reduce returns an object of the same type as x containing reduced ranges for each distinct (seqname, strand) pairing.

# S4 method for class 'GInteractions'
reduce(x, min.gapwidth = 1L, ignore.strand = TRUE, ...)

Arguments

x

GInteractions object.

min.gapwidth

Ranges separated by a gap of at least min.gapwidth positions are not merged.

ignore.strand

TRUE or FALSE. Whether the strand of the input ranges should be ignored or not.

...

Not used.

Examples

if (FALSE) { # \dontrun{
library(InteractionSet) 
gi <- readRDS(system.file("extdata", "gi.rds", package="trackViewer"))
reduce(head(gi, n=20))
} # }