get_region_lengths {ribor} | R Documentation

## Returns the overall length of each region

### Description

The function `get_region_coordinates` retrieves the lengths for the UTR5, UTR5 Junction, CDS, UTR3 Junction, and UTR3 regions of every transcript.

### Usage

    get_region_lengths(ribo.object, alias = FALSE)

### Arguments

`ribo.object` | A 'Ribo' object
`alias` | Option to return the transcript names as aliases

### Value

A data.frame of the region lengths

### Examples

    # generate a ribo object
    file.path <- system.file("extdata", "HEK293_ingolia.ribo", package = "ribor")
    sample <- Ribo(file.path, rename = rename_default)

    # get the region coordinates
    region_lengths <- get_region_lengths(sample, alias = TRUE)

[Package ribor version 1.0.0 Index]