| removeSameExon {GeneStructureTools} | R Documentation |
Removes structural duplicates of exons in a GRanges object
removeSameExon(exons)
exons |
GRanges object with exons |
GRanges object with unique exons
Beth Signal
Other gtf manipulation: UTR2UTR53,
addBroadTypes,
exonsToTranscripts,
filterGtfOverlap,
removeDuplicateTranscripts,
reorderExonNumbers
gtf <- rtracklayer::import(system.file("extdata","example_gtf.gtf",
package = "GeneStructureTools"))
exons <- gtf[gtf$type=="exon"]
exons.duplicated <- c(exons[1:4], exons[1:4])
length(exons.duplicated)
exons.deduplicated <- removeSameExon(exons.duplicated)
length(exons.deduplicated)