removeSameExon {GeneStructureTools} | R Documentation

## Remove exon duplicates

### Description

Removes structural duplicates of exons in a GRanges object

### Usage

    removeSameExon(exons)

### Arguments

`exons` | GRanges object with exons

### Value

GRanges object with unique exons

### Author(s)

Beth Signal

### See Also

Other gtf manipulation: `UTR2UTR53`, `addBroadTypes`, `exonsToTranscripts`, `filterGtfOverlap`, `removeDuplicateTranscripts`, `reorderExonNumbers`

### Examples

    gtf <- rtracklayer::import(system.file("extdata","example_gtf.gtf",
    package = "GeneStructureTools"))
    exons <- gtf[gtf$type=="exon"]
    exons.duplicated <- c(exons[1:4], exons[1:4])
    length(exons.duplicated)
    exons.deduplicated <- removeSameExon(exons.duplicated)
    length(exons.deduplicated)

[Package GeneStructureTools version 1.14.0 Index]