reorderExonNumbers {GeneStructureTools} | R Documentation

## Reorder the exon numbers in a gtf annotation

### Description

Reorder the exon numbers in a gtf annotation

### Usage

    reorderExonNumbers(exons, by = "transcript_id")

### Arguments

`exons` | GRanges object made from a GTF with ONLY exon annotations (no gene, transcript, CDS etc.)
`by` | what column are the transcripts grouped by?

### Value

The same input GRanges, but with exon numbers reordered.

### Author(s)

Beth Signal

### See Also

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

### Examples

    gtf <- rtracklayer::import(system.file("extdata","example_gtf.gtf",
    package = "GeneStructureTools"))
    exons <- gtf[gtf$type=="exon"]
    exons <- reorderExonNumbers(exons)

[Package GeneStructureTools version 1.6.0 Index]