Team:DTU-Denmark/Achievements/Calculator

From 2014.igem.org

(Difference between revisions)
(Undo revision 362638 by Tbjohannesen (talk))
Line 2: Line 2:
<html>
<html>
 +
<script>
 +
$(document).ready(function() {
 +
    $("#calc-input").trigger("input");
 +
});
 +
</script>
<style>
<style>
#PoPScalculator table td {
#PoPScalculator table td {
Line 32: Line 37:
<div id="PoPScalculator" style="width:800px;position:relative;">
<div id="PoPScalculator" style="width:800px;position:relative;">
 +
<form id = "calc-input" onchange = "
-
<form onchange = "
 
-
if (
 
-
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 (CFUcheck.checked) { CFU.value = (parseFloat(OD600.value)*1000000000000) };
 
-
if (conccheck.checked) { activity.value = (parseFloat(intercept.value)) } ;
 
-
activity.value = (parseFloat(concentration.value)/(parseFloat(CFU.value)/1000000000000)*(602200/(parseFloat(foldfraction.value)/100)))*((parseFloat(degen.value)/parseFloat(degenunit.value))+(parseFloat(growth.value)/parseFloat(growthunit.value)))/parseFloat(copynumber.value);
+
var conc = (parseFloat(fluorescence.value)-parseFloat(intercept.value)) / parseFloat(slope.value);
 +
var CFUcount = parseFloat(CFU.value);
 +
var fold = parseFloat(foldfraction.value);
 +
var degenvar = parseFloat(degen.value)/parseFloat(degenunit.value);
 +
var degenunitvar = parseFloat(degenunit.value);
 +
var growthvar = parseFloat(degenunit.value)/parseFloat(growthunit.value);
 +
var growthunitvar = parseFloat(growthunit.value);
 +
 
 +
if (conccheck.checked) { conc = parseFloat(concentration.value) };
 +
if (degcheck.checked) { degenvar = Math.log(2)/(parseFloat(deghalf.value)*parseFloat(deghalfunit.value)) };
 +
if (growthcheck.checked) { growthvar = Math.log(2)/(parseFloat(grodouble.value)*parseFloat(grodoubleunit.value)) };
 +
if (CFUcheck.checked) { CFUcount = (parseFloat(OD600.value)*1000000000000) };
 +
 
 +
activity.value = (parseFloat(conc)/(parseFloat(CFUcount)/1000000000000)*(602200/(parseFloat(fold)/100)))*((parseFloat(degenvar))+(parseFloat(growthvar)))/parseFloat(copynumber.value);
activity.value = Math.round(parseFloat(activity.value)*100000)/100000;
activity.value = Math.round(parseFloat(activity.value)*100000)/100000;
activity.value = parseFloat(activity.value).toExponential();
activity.value = parseFloat(activity.value).toExponential();
-
 
-
if (conccheck.checked) { activity.value = (parseFloat(intercept.value)) } ;
 
">
">
Line 96: Line 107:
</table>
</table>
     </td>
     </td>
 +
    <td>
 +
 +
 +
 +
 +
Insert text here!!!!!
 +
    </td>
 +
 +
 +
 +
   </tr>
   </tr>
   <tr>
   <tr>
Line 134: Line 156:
     <input name="degen" type="number" step="any" min="0" placeholder="rate" value="0.083" style="width:90px" />
     <input name="degen" type="number" step="any" min="0" placeholder="rate" value="0.083" style="width:90px" />
     </td>
     </td>
-
     <td width="21%" style="padding-top:4px">
+
     <td width="21%" style="padding-top:3px">
<select name="degenunit" style="width:80px">
<select name="degenunit" style="width:80px">
<option value="3600">per hour</option>
<option value="3600">per hour</option>
Line 156: Line 178:
     <td width="21%" style="padding-top:4px">
     <td width="21%" style="padding-top:4px">
<select name="deghalfunit">
<select name="deghalfunit">
-
<option value="3600">h</option>
+
<option value="3600">hours</option>
-
<option value="60">m</option>
+
<option value="60">minutes</option>
-
<option value="1">s</option>
+
<option value="1">seconds</option>
</select>
</select>
</td>
</td>
Line 172: Line 194:
     <td width="16%" style="text-align:right; padding-top: 3px;">
     <td width="16%" style="text-align:right; padding-top: 3px;">
         <input name="growth" type="number" step="any" min="0" placeholder="growth" value="0.83" style="width:90px" />
         <input name="growth" type="number" step="any" min="0" placeholder="growth" value="0.83" style="width:90px" />
-
     <td width="21%" style="padding-top:4px">
+
     <td width="21%" style="padding-top:3px">
<select name="growthunit" style="width:80px">
<select name="growthunit" style="width:80px">
<option value="3600">per hour</option>
<option value="3600">per hour</option>
Line 193: Line 215:
     <td width="21%" style="padding-top:4px">
     <td width="21%" style="padding-top:4px">
<select name="grodoubleunit">
<select name="grodoubleunit">
-
<option value="3600">h</option>
+
<option value="3600">hours</option>
-
<option value="60">m</option>
+
<option value="60">minutes</option>
-
<option value="1">s</option>
+
<option value="1">seconds</option>
</select>
</select>
</td>
</td>
Line 215: Line 237:
     <td width="16%" style="text-align:right; padding-top: 3px;">
     <td width="16%" style="text-align:right; padding-top: 3px;">
         <input name="copynumber" type="number" step="any" min="0" placeholder="Enter number" value="300" style="width:90px" />
         <input name="copynumber" type="number" step="any" min="0" placeholder="Enter number" value="300" style="width:90px" />
-
     </td width="21%">
+
     </td>
     <td width="21%"></td>
     <td width="21%"></td>
   </tr>
   </tr>

Revision as of 22:36, 17 October 2014

Fluorescence:
Standard curve, intercept:
Standard curve, slope:
Spinach concentration: µM
Input concentration directly
Insert text here!!!!!
CFU count CFU/L
Use OD measurement
OD600
Degradation rate:
Use degradation half time
Degradation half time:
Growth rate:
Use growth doubling time
Growth doubling time:
Fold-fraction: %
Copy number:
Promoter activity PoPS