View source: R/reads_simulator.R
sample_seq_depth | R Documentation |
Given missing rate, the NA will be generated first. For none NA element, sequencing depth with uniformly sampled from D, row wisely. Namely, the depth is variant specific.
sample_seq_depth(D, n_cells = NULL, n_sites = NULL, missing_rate = NULL)
D |
A matrix (N variants x M cells), the original sequencing coverage, NA means missing |
n_cells |
A integer, the number of the cells to generate |
n_sites |
A integer, the number of variants to generate |
missing_rate |
A float value, if NULL, use the same missing rate as D |
a n_sites by n_cells matrix sampled from input D.
data(simulation_input) D1 <- sample_seq_depth(D_input, n_cells = 500, n_sites = 50, missing_rate = 0.85 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.