cell.props.target: cell.props.target

Description Usage Arguments Value Note Author(s) References Examples

View source: R/cell.props.target.R

Description

Creates simulated cell proportions with pre-specified parameters for the target cell type. The target cell type with known parameters of the corresponding proportions is then used for further simulations. The target cell type is the first column in the cell proportion matrix. The standard deviation for the target cell type may be specified, as well as the condition number over entire cell proportion matrix.

Usage

1
2
cell.props.target(n.cells = 3, n.samps = 15, target.sd = 0.08,
  target.cd = 50000)

Arguments

n.cells

total number of cell types to simulate. Default - 3.

n.samps

sample size for cell proportions matrix to create. Default - 15.

target.sd

standard deviation of the proportions of the target cell type. Default - 0.08.

target.cd

condition number for the whole cell proportions matrix. Default - 50000

Value

cell.props An n.samps by cell types matrix of simulated relative cell proportions.

Note

NOTE: do NOT specify a condition number less than 15. The function will crash.

Author(s)

Edmund R Glass, Edmund.Glass@gmail.com, Mikhail G Dozmorov, Mikhail.Dozmorov@vcuhealth.org

References

https://github.com/ERGlass/lrcde.dev

Examples

1
2
3
4
## Not run: 
cell.props <- cell.props.target(n.cells = 3,  n.samps = 15, target.sd = 0.08, target.cd = 50000)

## End(Not run)

ERGlass/lrcde.dev documentation built on May 6, 2019, 3:09 p.m.