reorderExonNumbers: Reorder the exon numbers in a gtf annotation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ExonSkipping.R

Description

Reorder the exon numbers in a gtf annotation

Usage

1
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(), exonsToTranscripts(), removeDuplicateTranscripts(), removeSameExon()

Examples

1
2
3
gtf <- rtracklayer::import(system.file("extdata", "gencode.vM25.small.gtf", package = "GeneStructureTools"))
exons <- gtf[gtf$type == "exon"]
exons <- reorderExonNumbers(exons)

betsig/GeneStructureTools documentation built on March 31, 2021, 4:43 a.m.