mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-17 09:12:16 -07:00
add instructions
This commit is contained in:
parent
342a0019d9
commit
d91655c10a
1 changed files with 11 additions and 0 deletions
|
|
@ -1,7 +1,18 @@
|
||||||
|
#### DESCRIPTION:
|
||||||
# These functions use the PCR equation to calculate
|
# These functions use the PCR equation to calculate
|
||||||
# the number of PCR products after N cycles starting
|
# the number of PCR products after N cycles starting
|
||||||
# from x molecules of the template.
|
# from x molecules of the template.
|
||||||
|
|
||||||
|
|
||||||
|
#### HOW TO USE:
|
||||||
|
# source('https://github.com/dchakro/shared_Rscripts/raw/master/PCR_formula.R')
|
||||||
|
# prettyNum(PCRamp(1,30),big.mark = " ")
|
||||||
|
#
|
||||||
|
# print(paste("Cycle",1:30,"=",
|
||||||
|
# prettyNum(PCRamp.steps(1,30),
|
||||||
|
# big.mark = " ")),
|
||||||
|
# width = 40)
|
||||||
|
|
||||||
PCRamp = function(x, n){
|
PCRamp = function(x, n){
|
||||||
# calculates number of amplicons starting from x initial DNA molecules in n cycles.
|
# calculates number of amplicons starting from x initial DNA molecules in n cycles.
|
||||||
x*((2^n)-2*n)
|
x*((2^n)-2*n)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue