set_aliases: Set the aliases of a ribo object

Description Usage Arguments Details Value Examples

View source: R/create_ribo.R

Description

The function set_aliases allows the user to add aliases to a valid ribo object.

Usage

1
set_aliases(ribo.object, rename)

Arguments

ribo.object

A 'ribo' object

rename

A function that renames original transcript name into an alias

Details

If there is a different naming convention from the default appris transcriptome, there may be no simple way to generate convenient aliases from the original reference names. As a result, the user can first generate the ribo object and get the reference names, use custom (and likely more intricate) functions to generate a list of aliases, and then pass in a character vector of these aliases. The character vector should match the order of and correspond to the list of reference names retrieved from get_reference_names

Value

A modified 'ribo' object that contains alias information

Examples

1
2
3
4
5
#generate a ribo object with transcript nicknames/aliases
file.path <- system.file("extdata", "HEK293_ingolia.ribo", package = "ribor")
sample <- Ribo(file.path)
sample <- set_aliases(ribo.object = sample,
                      rename = rename_default)

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