Simulate Negative Binomial RNA-seq Counts from Real Data
Source:R/simulate_NB_counts.R
simulate_NB_counts.Rd
Simulates RNA-seq count data using a Negative Binomial model, with parameters estimated from real count data. Useful for creating realistic baseline data for method development or DEG simulation.
Arguments
- X
A gene-by-sample matrix or data frame of real (integer) RNA-seq counts.
- MX
A data frame with rownames matching X and columns for ancestry and group.
- g_col
The name of the column in MX indicating experimental group (e.g., "group").
- a_col
The name of the column in MX indicating ancestry (e.g., "ancestry").
- seed
Optional random seed for reproducibility.