iterateSimulations: Returns significance data from a snapshot.

Description Usage Arguments Value Examples

View source: R/DownsampleMatrix.R

Description

Returns significance data from a snapshot.

Usage

1
2
3
4
5
6
7
8
iterateSimulations(
  originalData,
  useAssay = "counts",
  realLabels,
  totalReads,
  cells,
  iterations
)

Arguments

originalData

The SingleCellExperiment object storing all assay data from the shiny app.

useAssay

Character. The name of the assay to be used for subsampling.

realLabels

Character. The name of the condition of interest. Must match a name from sample data.

totalReads

Numeric. The total number of reads in the simulated dataset, to be split between all simulated cells.

cells

Numeric. The number of virtual cells to simulate.

iterations

Numeric. How many times should each experimental design be simulated.

Value

A matrix of significance information from a snapshot

Examples

1
2
3
data("mouseBrainSubsetSCE")
res <- iterateSimulations(mouseBrainSubsetSCE, realLabels = "level1class",
                          totalReads = 1000, cells = 10, iterations = 2)

singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.