Team:UT Dallas/ligation
From 2011.igem.org
(Difference between revisions)
(Created page with "__NOTOC__ <html> <!-- Internet Explorer PNG fix - START /--> <!--[if lt IE 7]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js">IE7_PNG_SUFFIX=".png";</sc...") |
|||
(16 intermediate revisions not shown) | |||
Line 11: | Line 11: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $(function() { | + | $(document).ready(function(){doCalculate()});$(function(){ |
- | + | $('ul.llmenu').find("a[href='https://2011.igem.org/Team:UT_Dallas/ligation']").parent().addClass('selectedLava'); | |
- | + | ||
- | + | ||
$('ul#accmenu').accordion({ | $('ul#accmenu').accordion({ | ||
header:'.head', | header:'.head', | ||
Line 20: | Line 18: | ||
autoHeight:false, | autoHeight:false, | ||
navigation:true, | navigation:true, | ||
- | animated: 'easeslide'}) | + | animated: 'easeslide'}); |
- | }); | + | $('ul.llmenu').lavaLamp({ speed: 300, autoReturn: true , target:'li'}); |
+ | });function getNumber(o){if(!isNaN(o-0)){if(o>0)return(o-0);else return 0}else return 0}function doCalculate(){insert_vol=0;vector_vol=0;water_vol=0;p=0;Molar_Ratio_V=getNumber($('#Molar_Ratio_V').val());Molar_Ratio_I=getNumber($('#Molar_Ratio_I').val());Conc_V=getNumber($('#Conc_V').val());Conc_I=getNumber($('#Conc_I').val());Length_V=getNumber($('#Length_V').val());Length_I=getNumber($('#Length_I').val());buffer_vol=getNumber($('#buffer_vol').val());enzyme_vol=getNumber($('#enzyme_vol').val());total_vol=getNumber($('#total_vol').val());max_vol_V=getNumber($('#max_vol_V').val());max_vol_I=getNumber($('#max_vol_I').val());if((Molar_Ratio_V*Conc_I*Length_V)!=0){p=(Molar_Ratio_I*Conc_V*Length_I)/(Molar_Ratio_V*Conc_I*Length_V);if(p!=0){vector_vol=(total_vol-(buffer_vol+enzyme_vol+water_vol))/(1+p);insert_vol=total_vol-(buffer_vol+enzyme_vol+vector_vol);if(max_vol_V!=0){if(max_vol_V<vector_vol){insert_vol=(insert_vol*max_vol_V)/vector_vol;vector_vol=max_vol_V;water_vol=total_vol-(buffer_vol+enzyme_vol+vector_vol+insert_vol)}}if(max_vol_I!=0){if(max_vol_I<insert_vol){vector_vol=(vector_vol*max_vol_I)/insert_vol;insert_vol=max_vol_I;water_vol=total_vol-(buffer_vol+enzyme_vol+vector_vol+insert_vol)}}vector_vol=Math.round((total_vol-(buffer_vol+enzyme_vol+insert_vol+water_vol))*10)/10;insert_vol=Math.round((total_vol-(buffer_vol+enzyme_vol+vector_vol+water_vol))*10)/10;water_vol=Math.round((total_vol-(buffer_vol+enzyme_vol+vector_vol+insert_vol))*10)/10;$('#buffer_vol1').html(buffer_vol);$('#enzyme_vol1').html(enzyme_vol);$('#total_vol1').html(total_vol);$('#vector_vol').html(vector_vol);$('#insert_vol').html(insert_vol);$('#water_vol').html(water_vol)}}} | ||
</script> | </script> | ||
Line 66: | Line 65: | ||
<div class="container"> | <div class="container"> | ||
<div id="header"> | <div id="header"> | ||
- | + | </html>{{:Team:UT_Dallas/Template:links}}<html> | |
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
Line 76: | Line 72: | ||
<div id="container2"> | <div id="container2"> | ||
<div id="container1"> | <div id="container1"> | ||
- | <div id="left"> | + | <div id="left"> |
- | + | </html>{{:Team:UT_Dallas/Template:menu}}<html> | |
- | + | </div> | |
- | + | <div id="right"> | |
- | + | <div style="width:720px;margin-bottom: 15px;"><h2>Ligation Calculator</h2></div> | |
- | + | <div id="app" style="float:right"> | |
- | + | <center><b>Download the Ligation<br>Calculator app for Android </b></center> | |
- | + | <img src='https://static.igem.org/mediawiki/2011/c/c0/App_screeny.jpg'><br><br> | |
- | + | <a href="http://www.utdallas.edu/~lxp090020/android/Ligation_calculator_2.3_Gingerbread.zip" class='app_download'>Android 2.3 (Gingerbread)</a><br> | |
- | + | <a href="http://www.utdallas.edu/~lxp090020/android/Ligation_calculator_2.2_Froyo.zip" class='app_download'>Android 2.2 (Froyo)</a> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
- | < | + | <table> |
+ | <tr> | ||
+ | <td>Total Reaction Mix(µl)</td> | ||
+ | <td><input type='text' id='total_vol' value='10' onkeyup="javascript:doCalculate()"></td> | ||
+ | <td> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Volume of the buffer(µl)</td> | ||
+ | <td><input type='text' id='buffer_vol' value='1' onkeyup="javascript:doCalculate()"></td> | ||
+ | <td> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Volume of the enzyme(µl)</td> | ||
+ | <td><input type='text' id='enzyme_vol' value='1' onkeyup="javascript:doCalculate()"></td> | ||
+ | <td> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> </td> | ||
+ | <td> </td> | ||
+ | <td> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> </td> | ||
+ | <td><b>Vector</b></td> | ||
+ | <td><b>Insert</b></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Molar Ratio</td> | ||
+ | <td><input type='text' id='Molar_Ratio_V' value='1' onkeyup="javascript:doCalculate()"></td> | ||
+ | <td><input type='text' id='Molar_Ratio_I' value='3' onkeyup="javascript:doCalculate()"></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Concentration(ng/µl)</td> | ||
+ | <td><input type='text' id='Conc_V' value='1000' onkeyup="javascript:doCalculate()"></td> | ||
+ | <td><input type='text' id='Conc_I' value='50' onkeyup="javascript:doCalculate()"></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Length(bp)</td> | ||
+ | <td><input type='text' id='Length_V' value='3000' onkeyup="javascript:doCalculate()"></td> | ||
+ | <td><input type='text' id='Length_I' value='150' onkeyup="javascript:doCalculate()"></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Maximum volume(µl)</td> | ||
+ | <td><input type='text' id='max_vol_V' value='5' onkeyup="javascript:doCalculate()"></td> | ||
+ | <td><input type='text' id='max_vol_I' value='5' onkeyup="javascript:doCalculate()"></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Known Vector Lengths</td> | ||
+ | <td colspan='2'><input type='button' id='pet-32' onclick="javascript:$('#Length_V').val('5900');doCalculate()" value="pET-32"> | ||
+ | <input type='button' id='pet-28' onclick="javascript:$('#Length_V').val('5369');doCalculate()" value="pET-28"> | ||
+ | <input type='button' id='pmac-c2' onclick="javascript:$('#Length_V').val('6646');doCalculate()" value="pMAL-c2"></td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | <br><b>Ligation Mix</b> | ||
+ | <table> | ||
+ | <tr><td> </td><td align='right'>Vol. in µl</td></tr> | ||
+ | <tr><td>Buffer</td><td id='buffer_vol1' align='right'>1</td></tr> | ||
+ | <tr><td>Enzyme</td><td id='enzyme_vol1' align='right'>1</td></tr> | ||
+ | <tr><td>Vector</td><td id='vector_vol' align='right'>0</td></tr> | ||
+ | <tr><td>Insert</td><td id='insert_vol' align='right'>0</td></tr> | ||
+ | <tr><td>Water</td><td id='water_vol' align='right'>0</td></tr> | ||
+ | <tr><td>Total</td><td id='total_vol1' align='right'>10</td></tr> | ||
+ | </table></div> | ||
</div> | </div> | ||
</div> | </div> |
Latest revision as of 00:23, 29 September 2011
Ligation Calculator
Total Reaction Mix(µl) | ||
Volume of the buffer(µl) | ||
Volume of the enzyme(µl) | ||
Vector | Insert | |
Molar Ratio | ||
Concentration(ng/µl) | ||
Length(bp) | ||
Maximum volume(µl) | ||
Known Vector Lengths |
Ligation Mix
Vol. in µl | |
Buffer | 1 |
Enzyme | 1 |
Vector | 0 |
Insert | 0 |
Water | 0 |
Total | 10 |