removeSameExon: Remove exon duplicates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/helpers.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(), exonsToTranscripts(), removeDuplicateTranscripts(), reorderExonNumbers()

Examples

1
2
3
4
5
6
7
8
gtf <- rtracklayer::import(system.file("extdata", "gencode.vM25.small.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)

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