Generates simulated flow cytometry data with differential abundance of a target cell type across treatment groups, batch effects, and multiple abundance settings. Writes per-sample FCS files and returns sample- and cell-level metadata.
Arguments
- groups
Character vector of treatment group names.
- batches
Character vector of batch names.
- settings
Numeric vector of proportions for the Baseline group. The non-Baseline group uses half the proportion.
- samples_per_group
Integer. Number of samples per group per setting.
- mean_cells
Integer. Mean number of cells per sample.
- sd_cells
Numeric. Standard deviation of cell count.
- seed
Integer. Random seed for reproducibility.
- output_dir
Character. Directory path where FCS files are written.
