removeDuplicateTranscripts: Remove transcript duplicates

Description Usage Arguments Value Author(s) See Also Examples

View source: R/AltSplicingJunctionSupported.R

Description

Removes Structural duplicates of transcripts in a GRanges object Note that duplicates must have different transcript ids.

Usage

1

Arguments

transcripts

GRanges object with transcript structures in exon form

Value

GRanges object with unique transcript structures in exon form

Author(s)

Beth Signal

See Also

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

Examples

1
2
3
4
5
6
7
8
9
gtf <- rtracklayer::import(system.file("extdata","example_gtf.gtf",
package = "GeneStructureTools"))
exons <- gtf[gtf$type=="exon"]
exons.altName <- exons
exons.altName$transcript_id <- paste(exons.altName$transcript_id, "duplicated", sep="_")
exons.duplicated <- c(exons, exons.altName)
length(exons.duplicated)
exons.deduplicated <- removeDuplicateTranscripts(exons.duplicated)
length(exons.deduplicated)

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