Skip to contents

Remove translocations

Usage

removeTranslocations(gb, detect = TRUE)

Arguments

gb

A GBreaks object.

detect

Run again flagTranslocations() if TRUE, else reuse the tra and trs flags. If they are absent, an empty object is returned.

Value

Returns the GBreaks object after removing the moved ranges (see filterTranslocations()) and coalescing the resulting collinear ranges.

Examples

removeTranslocations(exampleTranslocation)
#> GBreaks object with 1 range and 2 metadata columns:
#>       seqnames    ranges strand |        query     score
#>          <Rle> <IRanges>  <Rle> |    <GRanges> <integer>
#>   [1]     chrA   100-400      + | chrB:100-400       301
#>   -------
#>   seqinfo: 1 sequence from an unspecified genome
removeTranslocations(swap(exampleTranslocation, sort = TRUE))
#> GBreaks object with 1 range and 2 metadata columns:
#>       seqnames    ranges strand |        query     score
#>          <Rle> <IRanges>  <Rle> |    <GRanges> <integer>
#>   [1]     chrB   100-400      + | chrA:100-400       301
#>   -------
#>   seqinfo: 2 sequences from an unspecified genome