SimulateData {BisqueRNA}R Documentation

Simulate data for decomposition illustration

Description

Simulates bulk and single-cell expression, as well as marker genes and true proportions that can be used as an example of decomposition

Usage

SimulateData(n.ind, n.genes, n.cells, cell.types, avg.props)

Arguments

n.ind

Integer. Number of individuals to simulate

n.genes

Integer. Number of genes to simulate

n.cells

Integer. Number of cells per individual for single-cell data

cell.types

Character vector. List of cell types to simulate

avg.props

Numeric vector. List of average proportions for given cell types. Should be same length as cell.types and sum to 1

Value

A list with simulated single-cell in slot 'sc.eset' and bulk in 'bulk.eset', as well as true proportions in 'props' and marker genes in 'markers'.

Examples

library(Biobase)
sim.data <- SimulateData(n.ind=10, n.genes=100, n.cells=100,
                         cell.types=c("Neurons", "Astrocytes", "Microglia"),
                         avg.props=c(.5, .3, .2))


[Package BisqueRNA version 1.0.5 Index]