removeSameExon: Remove exon duplicates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/leafCutter.R

Description

Removes structural duplicates of exons in a GRanges object

Usage

1

Arguments

exons

GRanges object with exons

Value

GRanges object with unique exons

Author(s)

Beth Signal

See Also

Other gtf manipulation: UTR2UTR53, addBroadTypes, exonsToTranscripts, filterGtfOverlap, removeDuplicateTranscripts, reorderExonNumbers

Examples

1
2
3
4
5
6
7
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)

GeneStructureTools documentation built on Nov. 8, 2020, 6:04 p.m.