Skip to content

The gene number simulated by powsimR is not equal to the custom setting #61

Description

@duohongrui

Hi,
PowsimR is an ideal tool to simulate single-cell RNA-seq data where DEGs can be set previously between two groups and it is useful for my project. I set the gene number(e.g. 43718) according to the real data and ran the simulation. However, the output count matrix only involves 43366 genes, showing a little difference.

Codes are shown here:

params <- estimateParam(countData = counts(ref_data),
                        RNAseq = 'singlecell',
                        Protocol = 'UMI',
                        Distribution = 'ZINB',
                        Normalisation = "scran",
                        verbose = TRUE)

# set up simulations
setupres <- Setup(ngenes = dim(ref_data)[1],
                  nsims = 1,
                  n1 = 30,
                  n2 = 30,
                  estParamRes = params,
                  setup.seed = seed,
                  verbose = TRUE)

## Running differential expression simulations
sim_data <- simulateDE(SetupRes = setupres,
                       Normalisation = 'scran',
                       DEmethod = "MAST",
                       verbose = TRUE,
                       Counts = TRUE))

sim_data <- sim_data[["Counts"]][[1]][[1]]

dim(ref_data)[1]
## 43718

dim(sim_data)[1]
## 43366

How can I solve this problem? Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions