get_introns: Calculate Intron Positions Based on Exons

View source: R/transcript.R

get_intronsR Documentation

Calculate Intron Positions Based on Exons

Description

This function takes a dataset containing transcript information and calculates the start and end positions of introns based on the positions of exons. It generates a combined dataframe including both the original exons and the calculated introns.

Usage

get_introns(data)

Arguments

data

A dataframe containing 'start' and 'end' positions of transcripts. Optional columns are 'type' (exon or UTR), 'transcript' (containing unique transcript IDs), and 'strand' (indicating the direction, forward or reverse, of each transcript).

Value

A dataframe with the original exons and the calculated introns, sorted by transcript and start position. Each row includes the 'start', 'end', 'type' (exon, UTR or intron), 'transcript', and 'strand' for each segment.


geneviewer documentation built on April 12, 2025, 9:12 a.m.