Skip to contents

Remove double inversions

Usage

removeDoubleInversions(gb, detect = TRUE)

Arguments

gb

A GBreaks object.

detect

Run again flagDoubleInversions() if TRUE, else reuse the Dbl flag or fail if it is absent.

Value

Returns the GBreaks object after removing the ranges that are doubly inverted and coalescing the resulting collinear ranges.

Examples

removeDoubleInversions(exampleDoubleInversion1)
#> GBreaks object with 1 range and 2 metadata columns:
#>       seqnames    ranges strand |        query     score
#>          <Rle> <IRanges>  <Rle> |    <GRanges> <integer>
#>   [1]     chrA   100-590      + | chrB:100-590       491
#>   -------
#>   seqinfo: 1 sequence from an unspecified genome