Description Usage Arguments Value Examples
View source: R/simulateCells.R
This function generates a SingleCellExperiment
containing a simulated counts matrix in the "counts"
assay slot, as
well as various parameters used in the simulation which can be
useful for running celda and are stored in metadata
slot. The user
must provide the desired model (one of celda_C, celda_G, celda_CG) as well
as any desired tuning parameters for those model's simulation functions
as detailed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
model |
Character. Options available in |
S |
Integer. Number of samples to simulate. Default 5. Only used if
|
CRange |
Integer vector. A vector of length 2 that specifies the lower
and upper bounds of the number of cells to be generated in each sample.
Default c(50, 100). Only used if
|
NRange |
Integer vector. A vector of length 2 that specifies the lower and upper bounds of the number of counts generated for each cell. Default c(500, 1000). |
C |
Integer. Number of cells to simulate. Default 100. Only used if
|
G |
Integer. The total number of features to be simulated. Default 100. |
K |
Integer. Number of cell populations. Default 5. Only used if
|
L |
Integer. Number of feature modules. Default 10. Only used if
|
alpha |
Numeric. Concentration parameter for Theta. Adds a pseudocount
to each cell population in each sample. Default 1. Only used if
|
beta |
Numeric. Concentration parameter for Phi. Adds a pseudocount to each feature module in each cell population. Default 1. |
gamma |
Numeric. Concentration parameter for Eta. Adds a pseudocount to
the number of features in each module. Default 5. Only used if
|
delta |
Numeric. Concentration parameter for Psi. Adds a pseudocount to
each feature in each module. Default 1. Only used if
|
seed |
Integer. Passed to with_seed. For reproducibility, a default value of 12345 is used. If NULL, no calls to with_seed are made. |
A SingleCellExperiment object with
simulated count matrix stored in the "counts" assay slot. Function
parameter settings are stored in the metadata slot. For
"celda_CG"
and "celda_C"
models,
columns celda_sample_label
and celda_cell_cluster
in
colData contain simulated sample labels and
cell population clusters. For "celda_CG"
and "celda_G"
models, column celda_feature_module
in
rowData contains simulated gene modules.
1 | sce <- simulateCells()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.