downShift {chimeraviz}R 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

downShift(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:
downShift(gr)


[Package chimeraviz version 1.4.3 Index]