removeDuplicateTranscripts {GeneStructureTools} | R Documentation

## Remove transcript duplicates

### Description

Removes Structural duplicates of transcripts in a GRanges object Note that duplicates must have different transcript ids.

### Usage

    removeDuplicateTranscripts(transcripts)

### Arguments

`transcripts` | GRanges object with transcript structures in exon form

### Value

GRanges object with unique transcript structures in exon form

### Author(s)

Beth Signal

### See Also

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

### Examples

    gtf <- rtracklayer::import(system.file("extdata","example_gtf.gtf",
    package = "GeneStructureTools"))
    exons <- gtf[gtf$type=="exon"]
    exons.altName <- exons
    exons.altName$transcript_id <- paste(exons.altName$transcript_id, "duplicated", sep="_")
    exons.duplicated <- c(exons, exons.altName)
    length(exons.duplicated)
    exons.deduplicated <- removeDuplicateTranscripts(exons.duplicated)
    length(exons.deduplicated)

[Package GeneStructureTools version 1.14.0 Index]