fg_replace_meta: Replaces sample meta.

View source: R/01_flowgraph_modifiers.R

fg_replace_metaR Documentation

Replaces sample meta.

Description

Replaces sample meta in a given flowGraph object.

Usage

fg_replace_meta(fg, meta)

Arguments

fg

flowGraph object.

meta

A data frame containing meta data; see details in flowGraph-class.

Value

A flowGraph object with an updated sample meta.

See Also

flowGraph-class fg_get_meta

Examples


 no_cores <- 1
 data(fg_data_pos30)
 fg <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
                 prop=FALSE, specenr=FALSE,
                 no_cores=no_cores)
 head(fg_get_meta(fg))

 new_df <- fg_data_pos30$meta
 new_df$id[1] <- "newID"

 fg <- fg_replace_meta(fg, new_df)
 head(fg_get_meta(fg))


aya49/flowGraph documentation built on Feb. 4, 2024, 6:40 p.m.