construct_introns: Construct introns from GRanges object

View source: R/mixedcirc_tss_calculation.R

construct_intronsR Documentation

Construct introns from GRanges object

Description

This function generates intronic coordinates by extracting all the exons from a GRanges object.

Usage

construct_introns(x, update = TRUE)

Arguments

x

An object of class GRanges. It has to have exon feature present.

update

If TRUE (default), x is updated by reference and returned invisibily, else just the intron coordinates are returned.

Value

An object of class GRanges with updated intron coordinates or just the intron coordinates depending on update. They all inherit from GRanges.

Examples

gff.file = system.file('extdata/chr21.refseq.hg19.gtf', package='genomation')
gff = gffToGRanges(gff.file)
construct_introns(gff)

PayamEmami/mixedcirc documentation built on Jan. 15, 2025, 5:36 p.m.