Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SimulateData

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))

BisqueRNA

Decomposition of Bulk Expression with Single-Cell Sequencing

v1.0.4
GPL-3
Authors
Brandon Jew [aut, cre], Marcus Alvarez [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.