| reorderExonNumbers {GeneStructureTools} | R Documentation |
Reorder the exon numbers in a gtf annotation
reorderExonNumbers(exons, by = "transcript_id")
exons |
GRanges object made from a GTF with ONLY exon annotations (no gene, transcript, CDS etc.) |
by |
what column are the transcripts grouped by? |
The same input GRanges, but with exon numbers reordered.
Beth Signal
Other gtf manipulation: UTR2UTR53,
addBroadTypes,
exonsToTranscripts,
filterGtfOverlap,
removeDuplicateTranscripts,
removeSameExon
gtf <- rtracklayer::import(system.file("extdata","example_gtf.gtf",
package = "GeneStructureTools"))
exons <- gtf[gtf$type=="exon"]
exons <- reorderExonNumbers(exons)