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(), exonsToTranscripts(), removeSameExon(), 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.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)

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