randomSingleCells {SITH}R Documentation

Simulate single cell sequencing data

Description

Simulate single cell sequencing data by random selecting cells from the tumor.

Usage

randomSingleCells(tumor, ncells, fpr = 0, fnr = 0)

Arguments

tumor

A list which is the output of simulateTumor().

ncells

The number of cells to sample.

fpr

The false positive rate

fnr

The false negative rate

Details

The procedure is exactly the same as singleCell() except that it allows multiple cells to be sequenced at once (chosen randomly throughout the entire tumor).

Value

A data frame with sample names on the row and mutation ID on the column. A 1 indicates that the mutation is present in the cell and a 0 indicates the mutation is not present.

Author(s)

Phillip B. Nicol <philnicol740@gmail.com>

Examples

out <- simulateTumor(max_pop = 1000)
df <- randomSingleCells(tumor = out, ncells = 5, fnr = 0.1) 

[Package SITH version 1.1.0 Index]