exonsToTranscripts {GeneStructureTools} | R Documentation

## Convert an exon-level gtf annotation to a transcript-level gtf annotation

### Description

Convert an exon-level gtf annotation to a transcript-level gtf annotation

### Usage

    exonsToTranscripts(exons)

### Arguments

`exons` | GRanges object with exons

### Value

GRanges object with transcripts

### Author(s)

Beth Signal

### See Also

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

### Examples

    gtf <- rtracklayer::import(system.file("extdata","example_gtf.gtf",
    package = "GeneStructureTools"))
    exons <- gtf[gtf$type=="exon" & gtf$transcript_id=="ENSMUST00000126412.1"]
    exons
    transcripts <- exonsToTranscripts(exons)
    transcripts

[Package GeneStructureTools version 1.2.1 Index]