update_tomic: Update T* Omic

View source: R/mutates.R

update_tomicR 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 tidy_omic or triple_omic object

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)

calico/romic documentation built on Sept. 27, 2024, 7:16 p.m.