Remove translocations
Arguments
- gb
A
GBreaksobject.- detect
Run again
flagTranslocations()ifTRUE, else reuse thetraandtrsflags. 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.
See also
Other Translocation functions:
filterTranslocations(),
flagTranslocations(),
showTranslocations()
Other modifier functions:
bridgeRegions(),
coalesce_contigs(),
flipInversions(),
forceSeqLengths(),
guessSeqLengths(),
keepLongestPair(),
matchPairs(),
mergeSeqLevels(),
removeDoubleInversions(),
removeInversions(),
reverse(),
splitSeqLevel(),
swap()
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