Team:Amsterdam/maarten/test

From 2012.igem.org

(Difference between revisions)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<head>
<head>
 +
<script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 +
<script type="text/javascript">
 +
function feature(start,end,type,description){
 +
this.start = start;
 +
this.end = end;
 +
this.type = type;
 +
}
 +
 +
var plasmid = {
 +
dna : '',
 +
features : {},
 +
setDNA : function(dna){
 +
plasmid.dna = dna
 +
},
 +
addFeature : function(start,end,type,description){
 +
plasmid.features[start] = new feature(start,end,type,description)
 +
}
 +
}
 +
 +
function writeFunction(){
 +
plasmid.setDNA('')
 +
linker = "LINKER"
 +
backbone = document.inputForm.backbone.value
 +
sensors = document.inputForm.sensors.value.split('>')
 +
methyltransferase = document.inputForm.methyltransferase.value
 +
zinc_finger = document.inputForm.zinc_fingers.value
 +
sequence = backbone
 +
for (i=1;i<sensors.length;i++){
 +
sensor = sensors[i]
 +
sensorStart = backbone.length
 +
sensorEnd = sensorStart+sensor.length
 +
zincStart = sensorEnd+1
 +
zincEnd = zincStart+zinc_finger.length
 +
linkerStart = zincEnd+1
 +
linkerEnd = linkerStart+linker.length
 +
methyltransferaseStart = linkerEnd+1
 +
methyltransferaseEnd = methyltransferaseStart+methyltransferase.length
 +
plasmid.addFeature(sensorStart,sensorEnd,"Sensor","")
 +
plasmid.addFeature(zincStart,zincEnd,"Zinc Finger","")
 +
plasmid.addFeature(linkerStart,linkerEnd,"Linker","")
 +
plasmid.addFeature(methyltransferaseStart,methyltransferaseEnd,"Methyltransferase","")
 +
sequence+="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"+sensor+"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"+zinc_finger+"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"+linker+"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"+methyltransferase
 +
}
 +
sequence = plasmid.dna+sequence
 +
plasmid.setDNA(sequence)
 +
$('div#plasmid').remove()
 +
$('body').append('<div id="plasmid">'+plasmid.dna+'</div>')
 +
}
 +
</script>
</head>
</head>
<body>
<body>
-
<script type="text/javascript" id="WolframAlphaScript66d47ae0c1f736b76f1df86c0cc9205" src="http://www.wolframalpha.com/widget/widget.jsp?id=66d47ae0c1f736b76f1df86c0cc9205"></script>
+
<form name="inputForm">
 +
    Please enter the backbone sequence
 +
    <input type=TEXT value="tactagtagcggccgctgcagtccggcaaaaaagggcaaggtgtcaccaccctgcccttt
 +
ttctttaaaaccgaaaagattacttcgcgttatgcaggcttcctcgctcactgactcgct
 +
gcgctcggtcgttcggctgcggcgagcggtatcagctcactcaaaggcggtaatacggtt
 +
atccacagaatcaggggataacgcaggaaagaacatgtgagcaaaaggccagcaaaaggc
 +
caggaaccgtaaaaaggccgcgttgctggcgtttttccacaggctccgcccccctgacga
 +
gcatcacaaaaatcgacgctcaagtcagaggtggcgaaacccgacaggactataaagata
 +
ccaggcgtttccccctggaagctccctcgtgcgctctcctgttccgaccctgccgcttac
 +
cggatacctgtccgcctttctcccttcgggaagcgtggcgctttctcatagctcacgctg
 +
taggtatctcagttcggtgtaggtcgttcgctccaagctgggctgtgtgcacgaaccccc
 +
cgttcagcccgaccgctgcgccttatccggtaactatcgtcttgagtccaacccggtaag
 +
acacgacttatcgccactggcagcagccactggtaacaggattagcagagcgaggtatgt
 +
aggcggtgctacagagttcttgaagtggtggcctaactacggctacactagaagaacagt
 +
atttggtatctgcgctctgctgaagccagttaccttcggaaaaagagttggtagctcttg
 +
atccggcaaacaaaccaccgctggtagcggtggtttttttgtttgcaagcagcagattac
 +
gcgcagaaaaaaaggatctcaagaagatcctttgatcttttctacggggtctgacgctca
 +
gtggaacgaaaactcacgttaagggattttggtcatgagattatcaaaaaggatcttcac
 +
ctagatccttttaaattaaaaatgaagttttaaatcaatctaaagtatatatgagtaaac
 +
ttggtctgacagctcgaggcttggattctcaccaataaaaaacgcccggcggcaaccgag
 +
cgttctgaacaaatccagatggagttctgaggtcattactggatctatcaacaggagtcc
 +
aagcgagctcgatatcaaattacgccccgccctgccactcatcgcagtactgttgtaatt
 +
cattaagcattctgccgacatggaagccatcacaaacggcatgatgaacctgaatcgcca
 +
gcggcatcagcaccttgtcgccttgcgtataatatttgcccatggtgaaaacgggggcga
 +
agaagttgtccatattggccacgtttaaatcaaaactggtgaaactcacccagggattgg
 +
ctgagacgaaaaacatattctcaataaaccctttagggaaataggccaggttttcaccgt
 +
aacacgccacatcttgcgaatatatgtgtagaaactgccggaaatcgtcgtggtattcac
 +
tccagagcgatgaaaacgtttcagtttgctcatggaaaacggtgtaacaagggtgaacac
 +
tatcccatatcaccagctcaccgtctttcattgccatacgaaattccggatgagcattca
 +
tcaggcgggcaagaatgtgaataaaggccggataaaacttgtgcttatttttctttacgg
 +
tctttaaaaaggccgtaatatccagctgaacggtctggttataggtacattgagcaactg
 +
actgaaatgcctcaaaatgttctttacgatgccattgggatatatcaacggtggtatatc
 +
cagtgatttttttctccattttagcttccttagctcctgaaaatctcgataactcaaaaa
 +
atacgcccggtagtgatcttatttcattatggtgaaagttggaacctcttacgtgcccga
 +
tcaactcgagtgccacctgacgtctaagaaaccattattatcatgacattaacctataaa
 +
aataggcgtatcacgaggcagaatttcagataaaaaaaatccttagctttcgctaaggat
 +
gatttctggaattcgcggccgcttctagag" name="backbone">
 +
Please enter the sensors
 +
<input type=TEXT value=">agagaatataaaaagccagattattaatccggcttttttattattt>agagaatataaaaagccagattattaatccggcttttttattattt" name="sensors">
 +
Please select your methyltransferase (optional)
 +
<input type=TEXT value="atgtccgggcgggactttggatatgtgatacagtcgtccgctgcactatggaatcgactc
 +
tctacattctcacagagaggaaaagccttggacaccaggcttgcagacatcaagaaggcc
 +
ctggggaagccgtactacgaaacctcggatgtccttctttaccacggcgacagtcttgag
 +
ctgctcaagtcaatgcctcagcagattttcgaccttaccgtaactagtccaccttacaat
 +
attggcaaagagtacgagggtgtactgtcgatcgaggaatacatttcctggtgcgagaca
 +
tggatgtcgcgcgttcatagggcgaccagcgcaggcggcgcattttggctcaatgttggg
 +
tacgtccctgtcccgaaccaaggaaaagcagtcccgattccttacctcttgtgggacaag
 +
agtccgttctacatgatccaggaagttgtctggaattacggggcgggagtggcgtctcga
 +
aaatcgttttccccgcgcaatgaaaagtttctctggtatgtgcgcgacccgctgaattat
 +
tacttcgacctcgattcggtgcgcgacccaaatgtgaaataccccaaccagaaaaagaat
 +
gggaagctcaaatgcaacccgttggggaaaaatcccactgacgtttggcagttccccaag
 +
gttacgtcgggcgcgaagagatcaagcgtggagcgcaccgcccatccggcacaattcccg
 +
tctgcagtcattgaacgggtcatcaaggcgtgcagcccttccgacggcgtcatcctggac
 +
ccattcctcggttccggaacgacctcgctgaccgccagaaagcaaggccggtgcagcgtc
 +
ggtatcgaaatccgcgaagactacctcgacatcgcggtgggacgcctggaggcggaggcg
 +
caatccctcttctag" name="methyltransferase">
 +
Please select your zinc fingers (optional)
 +
<input type=TEXT value="atggcagcggccaaggccgagatgcaattgatgtctccgctacagatctctgacccgttc
 +
ggctcctttcctcactcacccaccatggacaactaccccaaactggaggagatgatgctg
 +
ctgagcaacggggctccccagttcctcggtgctgccggaaccccagagggcagcggcggt
 +
aatagcagcagcagcaccagcagcgggggcggtggtgggggcggcagcaacagcggcagc
 +
agcgccttcaatcctcaaggggagccgagcgaacaaccctatgagcacctgaccacagag
 +
tccttttctgacatcgctctgaataatgagaaggcgatggtggagacgagttatcccagc
 +
caaacgactcggttgcctcccatcacctatactggccgcttctccctggagcccgcaccc
 +
aacagtggcaacactttgtggcctgaaccccttttcagcctagtcagtggcctcgtgagc
 +
atgaccaatcctccgacctcttcatcctcggcgccttctccaactgcttcatcgtcttcc
 +
tctgcctcccagagcccgcccctgagctgtgccgtgccgtccaacgacagcagtcccatc
 +
tactcggctgcgcccacctttcctactcccaacactgacatttttcctgagccccaaagc
 +
caggcctttcctggctcggcaggcacagccttgcagtacccgcctcctgcctaccctgcc
 +
accaaaggtggtttccaggttcccatgatccctgactatctgtttccacaacaacaggga
 +
gacctgagcctgggcaccccagaccagaagcccttccagggtctggagaaccgtacccag
 +
cagccttcgctcactccactatccactattaaagccttcgccactcagtcgggctcccag
 +
gacttaaaggctcttaataccacctaccaatcccagctcatcaaacccagccgcatgcgc
 +
aagtaccccaaccggcccagcaagacacccccccatgaacgcccatatgcttgccctgtc
 +
gagtcctgcgatcgccgcttttctcgctcggatgagcttacccgccatatccgcatccac
 +
acaggccagaagcccttccagtgtcgaatctgcatgcgtaacttcagtcgtagtgaccac
 +
cttaccacccacatccgcacccacacaggcgagaagccttttgcctgtgacatttgtggg
 +
aggaagtttgccaggagtgatgaacgcaagaggcataccaaaatccatttaagacagaag
 +
gacaagaaagcagacaaaagtgtggtggcctccccggctgcctcttcactctcttcttac
 +
ccatccccagtggctacctcctacccatcccctgccaccacctcattcccatcccctgtg
 +
cccacttcctactcctctcctggctcctccacctacccatctcctgcgcacagtggcttc
 +
ccgtcgccgtcagtggccaccacctttgcctccgttccacctgctttccccacccaggtc
 +
agcagcttcccgtctgcgggcgtcagcagctccttcagcacctcaactggtctttcagac
 +
atgacagcgaccttttctcccaggacaattgaaatttgctaa" name="zinc_fingers"><br>
 +
<input type=BUTTON value="Submit" name="" onClick="writeFunction()">
 +
 
 +
</form>
</body>
</body>
</html>
</html>

Latest revision as of 20:39, 23 July 2012

Please enter the backbone sequence Please enter the sensors Please select your methyltransferase (optional) Please select your zinc fingers (optional)