Skip to contents

Revise the initial scDesign2 functions to allow different sequencing depth

Usage

scDesign2.revised(
  model_params,
  n_cell_new,
  cell_type_prop,
  depth_simu_ref_ratio = NULL,
  sim_method = c("copula", "ind")
)

Arguments

model_params

A list with the same length as cell_type_prop that contains the fitted model as each of its element (can be either the copula model or the (w/o copula) model).

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.

depth_simu_ref_ratio

The (expected) sequencing depth ratio between simulated and refernece data.

sim_method

Simulation method. Simulate genes independently 'ind' or considering their correlations ('copula').

Value

A matrix of shape p by n that contains the simulated count values. p is derived from model_params.