Learn R Programming

BASiCS (version 0.7.30)

makeExampleBASiCS_Data: Create a simple example of a BASiCS_Data object with random data

Description

A simple BASiCS_Data-class object is generated by simulating a dataset from the model in BASiCS (Vallejos et al 2015). This is used for the examples in the package and the vignette.

Usage

makeExampleBASiCS_Data(WithBatch = FALSE, WithSpikes = TRUE)

Arguments

WithBatch

If true, 2 batches are generated (each of them containing 10 cells)

WithSpikes

If true, the simulated dataset contains 20 spike-in genes

Value

An object of class BASiCS_Data-class, simulated from the model implemented in BASiCS. It contains 120 genes (100 biological and 20 spike-in) and 20 cells.

References

Vallejos, Marioni and Richardson (2015). Bayesian Analysis of Single-Cell Sequencing data.

Examples

Run this code
# NOT RUN {
Data = makeExampleBASiCS_Data()
is(Data, "BASiCS_Data")

# }

Run the code above in your browser using DataLab