Generation of bulkRNAseq-like data with optional correlation structure
rs_generate_bulk_rnaseq.RdFunction generates synthetic bulkRNAseq data with heteroskedasticity (lowly expressed genes show higher variance) and can optionally add correlation structures for testing purposes.
Arguments
- num_samples
Integer. Number of samples to simulate.
- num_genes
Integer. Number of genes to simulate.
- seed
Integer. Seed for reproducibility.
- add_modules
Boolean. Shall correlation structures be added to the data.
- module_sizes
NULLor vector of sizes of the gene modules. WhenNULLdefaults toc(300, 250, 200, 300, 500). Warning! The sum of this vector must be ≤ num_genes!