mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-17 09:12:16 -07:00
Add PCR formula
This commit is contained in:
parent
8f44640c52
commit
342a0019d9
1 changed files with 14 additions and 0 deletions
14
PCR_formula.R
Normal file
14
PCR_formula.R
Normal file
|
|
@ -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))
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue