simulate_count_copula: Simulate a count matrix for a single cell type based on a...

View source: R/data_simulation.R

simulate_count_copulaR Documentation

Simulate a count matrix for a single cell type based on a copula model

Description

Simulate a count matrix for a single cell type based on a copula model

Usage

simulate_count_copula(copula_result, n = 100, marginal = c("nb", "Gamma"))

Arguments

copula_result

A list that contains the parameters of a copula model.

n

An integer value that indicates the number of cells to generate.

marginal

A character string that indicates whether the generated values should stay as discrete or switch to continuous. Default value is 'nb', which should be used for generating a count marix. The alternative 'Gamma' is only needed when this function is being called by other functions that generate data with a user-specified sequencing depth. Normally, users do not need to change this value.

Value

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


JSB-UCLA/scDesign2 documentation built on Nov. 2, 2024, 4:26 a.m.