update_tomic {romic} | R Documentation |
Update T* Omic
Description
Provide an updated features, samples or measurements table to a
tomic
.
Usage
update_tomic(tomic, tomic_table)
Arguments
tomic |
Either a |
tomic_table |
A table taken from a tidy (i.e., augmented measurements) or triple omic dataset |
Value
A tomic
object with updated features, samples or measurements.
Examples
library(dplyr)
updated_features <- brauer_2008_triple$features %>%
dplyr::filter(BP == "biological process unknown") %>%
dplyr::mutate(chromosome = purrr::map_int(systematic_name, function(x) {
which(LETTERS == stringr::str_match(x, "Y([A-Z])")[2])
}))
update_tomic(brauer_2008_triple, updated_features)
[Package romic version 1.1.3 Index]