Team:Aberdeen Scotland/DNA
From 2014.igem.org
(Difference between revisions)
Line 29: | Line 29: | ||
$("#dna_out").val(dna); | $("#dna_out").val(dna); | ||
$("#color_dna").html(""); | $("#color_dna").html(""); | ||
+ | } | ||
+ | |||
+ | function colors() { | ||
+ | dna = $("#dna_out").text(); | ||
+ | |||
+ | if(dna == "") { | ||
+ | return; | ||
+ | } | ||
+ | |||
+ | $("#color_dna").val("dna"); | ||
} | } | ||
Line 38: | Line 48: | ||
$("#to_dna").click(update); // update DNA on button click | $("#to_dna").click(update); // update DNA on button click | ||
- | $("#text_in").keypress( function() { | + | $("#text_in").keypress( function() { // update DNA on Enter key |
var kcode = event.keyCode || event.which; | var kcode = event.keyCode || event.which; | ||
if(kcode == 13) { //Enter keycode | if(kcode == 13) { //Enter keycode | ||
Line 44: | Line 54: | ||
} | } | ||
}); | }); | ||
+ | |||
+ | $("to_color").click(colors); // create color DNA canvas | ||
} | } | ||
); | ); |
Revision as of 21:12, 12 August 2014
Overview
This app will let you transcode text to DNA. The mapping alphabet is using the E. Coli codon bias and can translate the following characters:
Letters [a to z] and [A to Z], Digits [0 to 9],
Spaces [ ] and the Full-Stop[.]
Type in the text you wish translated to DNA in the following box:
*You can try entering your name for instance
The translation of your text will appear here.