down_shift: Remove introns and shift exons leftward

View source: R/utilities.R

down_shiftR Documentation

Remove introns and shift exons leftward

Description

This function takes a GRanges object and moves each IRanges object within next to each other starting at 1. This effectively removes the introns from the GRanges object.

Usage

down_shift(transcript)

Arguments

transcript

The GRanges object to remove introns from.

Value

A GRanges object with introns removed.

Examples

# Create a simple GRanges object:
gr <- IRanges::IRanges(
  start = c(13, 40, 100),
  end = c(20, 53, 110))
# Downshift it and see the introns are removed:
down_shift(gr)


stianlagstad/chimeraviz documentation built on Dec. 3, 2023, 8:11 p.m.