get_region_lengths: Returns the overall length of each region

Description Usage Arguments Value Examples

View source: R/annotation_functions.R

Description

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

Usage

1
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

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

ribor documentation built on Nov. 8, 2020, 7:50 p.m.