set_aliases {ribor} | R Documentation |
The function set_aliases
allows the user to add aliases to a valid
ribo object.
set_aliases(ribo.object, rename)
ribo.object |
A 'ribo' object |
rename |
A function that renames original transcript name into an alias |
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
A modified 'ribo' object that contains alias information
#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)