Skip to contents

Ungroup a flowSet

Usage

# S3 method for flowSet
ungroup(x, ...)

Arguments

x

A flowSet

...

Variables/columns in pData to remove from the grouping. Note that the "name" field in a flowSet's pData is special in flowCore, so requesting an ungrouping by name will result in a copied column called ".tidyFlowCore_name" in the result. Also note that the column ".tidytof_unique_identifier" is used internally and will not have any effect on the ungrouping.

Value

A flowFrame or flowSet depending on the degree of ungrouping. Note that unnest-ing and ungrouping a flowSet are equivalent.

Examples

my_flowset <- simulate_cytometry_data()$flowset

my_flowset |>
  dplyr::ungroup()
#> flowFrame object 'file17b466f509f9'
#> with 500 cells and 13 observables:
#>                    name               desc     range  minRange  maxRange
#> $P1           feature_1          feature_1       101         0       100
#> $P2           feature_2          feature_2       101         0       100
#> $P3           feature_3          feature_3       101         0       100
#> $P4           feature_4          feature_4       101         0       100
#> $P5           feature_5          feature_5       101         0       100
#> ...                 ...                ...       ...       ...       ...
#> $P9           feature_9          feature_9       101         0       100
#> $P10         feature_10         feature_10       101         0       100
#> $P11            patient            patient         4         0         3
#> $P12          cell_type          cell_type         3         0         2
#> $P13 .tidyFlowCore_name .tidyFlowCore_name         6         0         5
#> 108 keywords are stored in the 'description' slot