Team:Dundee/dnaCodonWorker.js
From 2011.igem.org
(Difference between revisions)
Dzgibson (Talk | contribs)
(Created page with "var sequence = ""; self.addEventListener("message", function(e) { sequence = e.data; parseData(); }, false); function parseData() { var codons = sequence.match(/.{1,3}/g); f...")
Newer edit →
(Created page with "var sequence = ""; self.addEventListener("message", function(e) { sequence = e.data; parseData(); }, false); function parseData() { var codons = sequence.match(/.{1,3}/g); f...")
Newer edit →
Revision as of 10:44, 7 July 2011
var sequence = ""; self.addEventListener("message", function(e) { sequence = e.data; parseData(); }, false);
function parseData() { var codons = sequence.match(/.{1,3}/g); for(var i = 0; i < codons.length; i++) { postMessage(codons[i].toUpperCase()); } }