fg_extract_samples: Extracts a set of samples from a flowGraph object.

View source: R/01_flowgraph_modifiers.R

fg_extract_samplesR Documentation

Extracts a set of samples from a flowGraph object.

Description

Extracts or removes a specified set of samples from a flowGraph object.

Usage

fg_extract_samples(fg, sample_ids, rm_summary = TRUE)

Arguments

fg

flowGraph object.

sample_ids

A string vector of sample id's that the user wants to keep in fg.

rm_summary

A logical indicating whether or not to clear summary.

Details

The summaries in fg will not be modified; we recommend the user recalculates them.

Value

flowGraph object.

See Also

flowGraph-class fg_get_feature_desc fg_merge fg_extract_phenotypes

Examples


 no_cores <- 1
 data(fg_data_pos30)
 fg0 <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
                 prop=FALSE, specenr=FALSE,
                 no_cores=no_cores)
 fg_get_feature_desc(fg0)

 fg <- fg_extract_samples(fg0, fg_get_meta(fg0)$id[1:5])
 fg_get_feature_desc(fg)


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