Team:UT Dallas/ligation
From 2011.igem.org
(Difference between revisions)
Line 11: | Line 11: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $(function() { | + | $(document).ready(function(){doCalculate()});$(function(){$('ul.llmenu').lavaLamp({speed:300,autoReturn:true,target:'li'})});$(function(){$('ul#accmenu').accordion({header:'.head',fillSpace:false,autoHeight:false,navigation:true,animated:'easeslide'})});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)}}} |
- | + | ||
- | }); | + | |
- | $(function(){ | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | }); | + | |
</script> | </script> | ||
Revision as of 14:09, 25 September 2011
Introduction >> Ligation Calculator
2011 iGEM Main Page
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 |