View source: R/data_simulation.R
simulate_count_scDesign2 | R Documentation |
Simulate a count matrix for experimental design
simulate_count_scDesign2(
model_params,
n_cell_new,
cell_type_prop = 1,
total_count_new = NULL,
total_count_old = NULL,
n_cell_old = NULL,
sim_method = c("copula", "ind"),
reseq_method = c("mean_scale", "multinomial"),
cell_sample = FALSE
)
model_params |
A list with the same length as |
n_cell_new |
The total number of cells in the simulated count matrix. |
cell_type_prop |
The cell type proportion in the simulated count matrix. |
total_count_new |
The (expected) total number of reads or UMIs in the simulated count matrix. |
total_count_old |
The total number of reads or UMIs in the original count matrix where
|
n_cell_old |
The The total number of cells in the original count matrix where
|
sim_method |
Specification of the type of model for data simulation. Default value is 'copula', which selects the copula model. 'ind' will select the (w/o copula) model. |
reseq_method |
Specification of how the new count matrix should be derived under the
new sequencing depth.
Default is 'mean_scale', which scales the original parameters and
then simulate new data.
'multinomial' will do a resampling. It ensures that the simulated
count matrix has the exact total number of reads as specified in
|
cell_sample |
Logical, whether cells for each cell type should be sampled from a
multinomial distribution or follows the exact same proportion as
specified in |
A matrix of shape p by n that contains the simulated count values. p is derived from
model_params
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.