Team:UT Dallas/ligation
From 2011.igem.org
(Difference between revisions)
(10 intermediate revisions not shown) | |||
Line 11: | Line 11: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $(document).ready(function(){doCalculate()});$(function(){$('ul.llmenu'). | + | $(document).ready(function(){doCalculate()});$(function(){ |
+ | $('ul.llmenu').find("a[href='https://2011.igem.org/Team:UT_Dallas/ligation']").parent().addClass('selectedLava'); | ||
+ | $('ul#accmenu').accordion({ | ||
+ | header:'.head', | ||
+ | fillSpace:false, | ||
+ | autoHeight:false, | ||
+ | navigation:true, | ||
+ | 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 56: | Line 65: | ||
<div class="container"> | <div class="container"> | ||
<div id="header"> | <div id="header"> | ||
- | + | </html>{{:Team:UT_Dallas/Template:links}}<html> | |
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
Line 66: | 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> | ||
- | <div id="right"> | + | <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> | <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> | <img src='https://static.igem.org/mediawiki/2011/c/c0/App_screeny.jpg'><br><br> | ||
- | <a href=" | + | <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=" | + | <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> | <table> | ||
Line 213: | Line 131: | ||
<tr> | <tr> | ||
<td>Known Vector Lengths</td> | <td>Known Vector Lengths</td> | ||
- | <td colspan='2'><input type='button' id='pet-32' onclick= | + | <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= | + | <input type='button' id='pet-28' onclick="javascript:$('#Length_V').val('5369');doCalculate()" value="pET-28"> |
- | <input type='button' id='pmac-c2' onclick= | + | <input type='button' id='pmac-c2' onclick="javascript:$('#Length_V').val('6646');doCalculate()" value="pMAL-c2"></td> |
</tr> | </tr> | ||
</table> | </table> |
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 |