View source: R/reads_simulator.R

Reads simulator for donor identification

1 2 3 |

`GT` |
Variant-by-donor matrix for genotypes |

`D_seed` |
Variant-by-cell matrix for read coverage for generating depth, which be row sample and column sample both with replacement |

`sample_variants` |
logical(1), if TRUE, sample variants with replacement to the same size, otherwise not |

`donor_size` |
Vector of float for the fractions of each donor; default NULL means uniform |

`beta_shapes` |
A 3-by-2 matrix of beta parameters for genotypes: 0, 1, and 2; default NULL means matrix(c(0.2, 0.5, 99.8, 99.8, 0.5, 0.2), nrow = 3) |

`n_cell` |
An integer for number of total cells |

`doublet_rate` |
A float from 0 to 1 for doublet rate; default NULL means rate n_cell / 100000 |

`rand_seed` |
A integer for random number generation |

davismcc/cardelino documentation built on Aug. 21, 2019, 3:31 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.