From 342a0019d9aa6dc852242052a20ea709b04b5d98 Mon Sep 17 00:00:00 2001 From: dchakro <35454738+dchakro@users.noreply.github.com> Date: Thu, 6 May 2021 11:50:57 +0300 Subject: [PATCH] Add PCR formula --- PCR_formula.R | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 PCR_formula.R diff --git a/PCR_formula.R b/PCR_formula.R new file mode 100644 index 0000000..cfa4b31 --- /dev/null +++ b/PCR_formula.R @@ -0,0 +1,14 @@ +# These functions use the PCR equation to calculate +# the number of PCR products after N cycles starting +# from x molecules of the template. + +PCRamp = function(x, n){ + # calculates number of amplicons starting from x initial DNA molecules in n cycles. + x*((2^n)-2*n) +} + + +PCRamp.steps = function(x, n){ + # calculates progression of generation of amplicons starting from x initial DNA molecules in each of the n cycles + x*(2^(1:n)-2*(1:n)) +} \ No newline at end of file