Team:DTU-Denmark/Achievements/Calculator
From 2014.igem.org
(Difference between revisions)
Tbjohannesen (Talk | contribs) |
Tbjohannesen (Talk | contribs) |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
<style> | <style> | ||
#PoPScalculator table td { | #PoPScalculator table td { | ||
Line 37: | Line 32: | ||
<div id="PoPScalculator" style="width:800px;position:relative;"> | <div id="PoPScalculator" style="width:800px;position:relative;"> | ||
- | |||
+ | <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); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
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 107: | Line 96: | ||
</table> | </table> | ||
</td> | </td> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 156: | Line 134: | ||
<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: | + | <td width="21%" style="padding-top:4px"> |
<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 178: | Line 156: | ||
<td width="21%" style="padding-top:4px"> | <td width="21%" style="padding-top:4px"> | ||
<select name="deghalfunit"> | <select name="deghalfunit"> | ||
- | <option value="3600"> | + | <option value="3600">h</option> |
- | <option value="60"> | + | <option value="60">m</option> |
- | <option value="1"> | + | <option value="1">s</option> |
</select> | </select> | ||
</td> | </td> | ||
Line 194: | Line 172: | ||
<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: | + | <td width="21%" style="padding-top:4px"> |
<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 215: | Line 193: | ||
<td width="21%" style="padding-top:4px"> | <td width="21%" style="padding-top:4px"> | ||
<select name="grodoubleunit"> | <select name="grodoubleunit"> | ||
- | <option value="3600"> | + | <option value="3600">h</option> |
- | <option value="60"> | + | <option value="60">m</option> |
- | <option value="1"> | + | <option value="1">s</option> |
</select> | </select> | ||
</td> | </td> | ||
Line 237: | Line 215: | ||
<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> | + | </td width="21%"> |
<td width="21%"></td> | <td width="21%"></td> | ||
</tr> | </tr> |
Revision as of 22:35, 17 October 2014