SimulateData: Simulate data for decomposition illustration

Description Usage Arguments Value Examples

View source: R/simulation.R

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

1
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

1
2
3
4
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))

BisqueRNA documentation built on May 24, 2021, 1:06 a.m.