Generates simulated flow cytometry data with differential expression of Marker2 in a target cell type across treatment groups, batch effects, and multiple shift magnitudes. 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.
- sd_shifts
Numeric vector of standard deviation shifts applied to Marker2 in the non-Baseline group for target cells.
- samples_per_group
Integer. Number of samples per group per shift.
- 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.
