Team:UChicago/Fluctuation Analysis
From 2014.igem.org
(Difference between revisions)
Line 65: | Line 65: | ||
if (mutcounts.some(isNaN)) { | if (mutcounts.some(isNaN)) { | ||
alert('invalid value of mutant amount given'); | alert('invalid value of mutant amount given'); | ||
+ | return(); | ||
} | } | ||
- | var | + | var viablescounts = $.map($('#tcellsin').val().split(),parseInt); |
- | if ( | + | if (viablescounts.some(isNaN)) { |
alert('invalid value of number of viable cells'); | alert('invalid value of number of viable cells'); | ||
+ | return(); | ||
} | } | ||
- | if (mutcounts.length < 1 || | + | if (mutcounts.length < 1 || viablescounts.length < 1) { |
alert('must have at least one data member in each input'); | alert('must have at least one data member in each input'); | ||
} | } | ||
- | if (mutcounts.length != | + | if (mutcounts.length != viablescounts.length) { |
alert('must have same number of data items in all inputs'); | alert('must have same number of data items in all inputs'); | ||
+ | return(); | ||
} | } | ||
var tmutplates = 0; | var tmutplates = 0; | ||
Line 82: | Line 85: | ||
var hitspercell = Math.log(mutcounts.length / tmutplates); | var hitspercell = Math.log(mutcounts.length / tmutplates); | ||
var mutrate = viablescounts[0] / viables; | var mutrate = viablescounts[0] / viables; | ||
- | $('#mutrate'). | + | $('#mutrate').val(mutrate.toString()); |
}); | }); | ||
}); | }); |
Revision as of 02:39, 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 |