Description Usage Arguments Details Value Note Author(s) See Also Examples

A function that simulates results of a droplet digital PCR.

1 2 |

`m` |
the total number of template molecules used in the expertiment. Must be a positive integer. |

`n` |
the number of droplets per experiment. Must be a positive integer. |

`times` |
number of repetitions (see Details). |

`n_exp` |
the number of experiments that are simulated by the function.
Cannot have higher value than the |

`dube` |
if |

`pos_sums` |
if |

`fluo` |
if |

The function contains two
implementations of the array digital PCR simulation. First one was described
in Dube at. al (2008). This method is based on random distributing *m * times* molecules between *n * times*
chambers. After this step, the required number of plates is created by the
random sampling of chambers without replacement. The above method is used,
when the `dube`

argument has value `TRUE`

.

The higher the value of the argument `times`

, the simulation result is
closer to theoretical calculations.

If the `pos_sums`

argument has value `FALSE`

, the function
returns matrix with *n* rows and *n_panels* columns. Each column
represents one plate. The type of such simulation would be `"nm"`

. If the
`pos_sums`

argument has value `TRUE`

, the function return matrix
with one row and *n_panels* columns. Each column contains the total
number of positive chambers in each plate and type of simulation would be
set as `"tnp"`

.

In each case the value is an object of the `dpcr`

class.

Although Dube's simulation of digital PCR was developed for array digital PCR, it's also viable for simulating droplet-based methods.

Michal Burdukiewicz, Stefan Roediger.

1 2 3 4 5 6 7 8 9 | ```
#simulate fluorescence data
tmp_VIC <- sim_dpcr(m = 7, n = 20, times = 5, fluo = list(0.1, 0))
tmp_FAM <- sim_dpcr(m = 15, n = 20, times = 5, fluo = list(0.1, 0))
par(mfrow = c(2,1))
plot(tmp_VIC, col = "green", type = "l")
plot(tmp_FAM, col = "blue", type = "l")
summary(tmp_FAM)
summary(sim_dpcr(m = 7, n = 20, times = 5, n_exp = 5))
``` |

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.