fg_merge_samples: Merges the samples from two flowGraph objects.

View source: R/01_flowgraph_modifiers.R

fg_merge_samplesR Documentation

Merges the samples from two flowGraph objects.

Description

Merges the samples from two flowGraph objects together; we recommend removing all summary statistics from the new flowGraph object as those won't be adjusted: fg_clear_summary.

Usage

fg_merge_samples(fg1, fg2)

Arguments

fg1

flowGraph object.

fg2

flowGraph object.

Details

Appends the samples from fg2 onto those in fg1. This function requires that the two flowGraph objects must have the same phenotypes. Therefore, we recommend users to use, instead, fg_merge.

Value

flowGraph object.

See Also

flowGraph-class fg_get_feature_desc fg_merge fg_extract_samples

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)

 fg1 <- fg_extract_samples(fg0, fg_get_meta(fg0)$id[1:5])
 fg2 <- fg_extract_samples(fg0, fg_get_meta(fg0)$id[4:7])
 fg <- fg_merge_samples(fg1, fg2)
 fg_get_feature_desc(fg)


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