fg_gsub_markers: Replace marker names.

View source: R/01_flowgraph_modifiers.R

fg_gsub_markersR Documentation

Replace marker names.

Description

Replace marker names in a flowGraph object.

Usage

fg_gsub_markers(fg, markers_new, markers_old = NULL)

Arguments

fg

flowGraph object.

markers_new

A string vector of new marker names; if markers_old is set to NULL, each marker in markers_new should correspond to each marker in the markers slot of the flowGraph object.

markers_old

A string vector of old marker names user wants to replace; these marker names corresponding to those in fg_get_markers(fg) with the same length as markers_new. If markers_old=NULL, markers_new should be the same length as fg_get_markers(fg).

Value

flowGraph object with marker names replaced.

See Also

flowGraph-class fg_gsub_ids

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)

 fg <- fg_gsub_markers(fg, c("Anew", "Bnew", "Cnew", "Dnew"))
 fg_get_feature_desc(fg)


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