Team:DTU-Denmark/Achievements/Calculator
From 2014.igem.org
(Difference between revisions)
Tbjohannesen (Talk | contribs) |
Tbjohannesen (Talk | contribs) |
||
Line 43: | Line 43: | ||
var CFUcount = parseFloat(CFU.value); | var CFUcount = parseFloat(CFU.value); | ||
var fold = parseFloat(foldfraction.value); | var fold = parseFloat(foldfraction.value); | ||
+ | var degenvar = parseFloat(degen.value); | ||
+ | var degenunitvar = parseFloat(degenunit.value); | ||
+ | var growthvar = parseFloat(degenunit.value); | ||
+ | var growthunitvar = parseFloat(growthunit.value); | ||
+ | |||
if (degcheck.checked) { degen.value = Math.log(2)/(parseFloat(deghalf.value)*parseFloat(deghalfunit.value)) }; | if (degcheck.checked) { degen.value = Math.log(2)/(parseFloat(deghalf.value)*parseFloat(deghalfunit.value)) }; | ||
if (growthcheck.checked) { growth.value = Math.log(2)/(parseFloat(grodouble.value)*parseFloat(grodoubleunit.value)) }; | if (growthcheck.checked) { growth.value = Math.log(2)/(parseFloat(grodouble.value)*parseFloat(grodoubleunit.value)) }; | ||
- | if (CFUcheck.checked) { CFU.value = (parseFloat(OD600.value)* | + | if (CFUcheck.checked) { CFU.value = (parseFloat(OD600.value)*1000000000000) }; |
- | activity.value = (parseFloat(conc)/(parseFloat(CFUcount)/1000000000000)*(602200/(parseFloat(fold)/100)))*((parseFloat( | + | activity.value = (parseFloat(conc)/(parseFloat(CFUcount)/1000000000000)*(602200/(parseFloat(fold)/100)))*((parseFloat(degenvar)/parseFloat(degenunitvar))+(parseFloat(growthvar)/parseFloat(growthunitvar)))/parseFloat(copynumber.value); |
activity.value = Math.round(parseFloat(activity.value)*100000)/100000; | activity.value = Math.round(parseFloat(activity.value)*100000)/100000; |
Revision as of 21:19, 17 October 2014