down_shift: Remove introns and shift exons leftward

Description Usage Arguments Value Examples

View source: R/utilities.R

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

1
down_shift(transcript)

Arguments

transcript

The GRanges object to remove introns from.

Value

A GRanges object with introns removed.

Examples

1
2
3
4
5
6
# 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)

chimeraviz documentation built on Jan. 19, 2021, 2 a.m.