down_shift {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

    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)

[Package chimeraviz version 1.16.1 Index]