Team:UChicago/Fluctuation Analysis
From 2014.igem.org
(Difference between revisions)
Line 22: | Line 22: | ||
<div id="maincontent"> | <div id="maincontent"> | ||
- | <input type="text" id="text" style="width: 150px;"> | + | <input type="text" id="text" style="width: 150px;"/> |
<br/> | <br/> | ||
- | <input type="button" value="Click Me" id="button"> | + | <input type="button" value="Click Me" id="button"/> |
<br/> | <br/> | ||
<h2>Small FALCOR-like program for mutational analysis</h2> | <h2>Small FALCOR-like program for mutational analysis</h2> | ||
Line 32: | Line 32: | ||
<h4>Viable Cells</h4> | <h4>Viable Cells</h4> | ||
<textarea id="tcellsin">Paste here</textarea> | <textarea id="tcellsin">Paste here</textarea> | ||
+ | <button id="calcb" type="button">Calculate</button> | ||
</div> | </div> | ||
<div id="results"> | <div id="results"> | ||
Line 58: | Line 59: | ||
text.val(text.val() + ' after clicking'); | text.val(text.val() + ' after clicking'); | ||
}); | }); | ||
+ | }); | ||
+ | #(document).ready(function() { | ||
+ | $('calcb').click(function() { | ||
+ | var mutcounts = $.map($('mutin').innerHtml.split(), parseInt); | ||
+ | if (mutcounts.some(isNaN)) { | ||
+ | alert('invalid value of mutant amount given'); | ||
+ | } | ||
+ | var viablecounts = $.map($('tcellsin').innerHtml.split(),parseInt); | ||
+ | if (viablecounts.some(isNaN)) { | ||
+ | alert('invalid value of number of viable cells'); | ||
+ | } | ||
+ | if (mutcounts.length < 1 || viablescounts.length < 1) { | ||
+ | alert('must have at least one data member in each input'); | ||
+ | } | ||
+ | if (mutcounts.length != viablecounts.length) { | ||
+ | alert('must have same number of data items in all inputs'); | ||
+ | } | ||
+ | var tmutplates = 0; | ||
+ | for (var i = 0; i < mutcounts.length; i++) { | ||
+ | if (mutcounts[i] > 0) tmutplates++; | ||
+ | } | ||
+ | var hitspercell = Math.log(mutcounts.length / tmutplates); | ||
+ | var mutrate = viablescounts[0] / viables; | ||
+ | $('#mutrate').innerHtml = mutrate.toString(); | ||
+ | }); | ||
}); | }); | ||
</script> | </script> |
Revision as of 01:54, 26 August 2014
Small FALCOR-like program for mutational analysis
Mutants
Viable Cells
Results
Mean Mutational Events | 95% CI | Mutation Rate | 95% CI |
---|---|---|---|
1.4 | .1 | 10-3 | 10-4 |