Team:Heidelberg/Modeling/miGUI
From 2010.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | {{:Team:Heidelberg/ | + | {{:Team:Heidelberg/Template}} |
- | + | ||
- | + | ||
<html> | <html> | ||
Line 9: | Line 7: | ||
#area_map {width: 635px; height: 400px; } | #area_map {width: 635px; height: 400px; } | ||
.forms {display:none;} | .forms {display:none;} | ||
- | . | + | .lowerinputform {display:none;} |
- | # | + | #rightformtable {background:transparent;align:center;} |
</style> | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | var dataarray = new Array( | + | var dataarray = new Array(11); |
+ | d = document | ||
+ | dforms = d.forms | ||
- | function | + | function sendall() { |
- | { | + | for(var i=0;i<=12;i++) { |
+ | if(document.getElementById("rightinputform"+i).style.display = "none") { | ||
+ | |||
+ | |||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | function specialcorrections() { | ||
+ | var dform = document.forms["giveinput7"]; | ||
+ | var dformofftarget = dform.elements["miRBSofftarget[]"] | ||
+ | var targetmir = document.forms["giveinput7"].elements["miRBStarget"].value | ||
+ | for (var j=0;j<dformofftarget.length;j++){ | ||
+ | if (dformofftarget[j].value == targetmir ) { | ||
+ | dformofftarget[j].selected = false; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function readvar(num) { | ||
var r = 0; | var r = 0; | ||
- | var | + | var countinput=dforms["giveinput"+num].length-2; |
- | dataarray[num] = new Array( | + | dataarray[num] = new Array(countinput); |
- | + | d.getElementById("lowerinputform"+num).style.display = "block"; | |
- | + | for (var i=0; i<=countinput; i++) { | |
- | + | var r = 0; | |
- | if ( | + | dformsnr = dforms["giveinput"+num]; |
- | dataarray[num][i-r] = | + | dformsnrelement = dformsnr.elements[i]; |
- | else { r++ }} | + | if(dformsnrelement.type == 'radio') { |
- | else if ( | + | if (dformsnrelement.checked == true) { |
- | dataarray[num][i-r] = "" | + | dataarray[num][i-r] = dformsnrelement.value; |
- | for (var j=0;j< | + | } |
- | if ( | + | else { r++ } |
- | + | } | |
+ | else if (dformsnrelement.type == 'select-multiple') { | ||
+ | var subarraycount = dformsnrelement.length; | ||
+ | var countentries = 0; | ||
+ | dataarray[num][i-r] = ""; | ||
+ | for (var j=0;j<subarraycount;j++){ | ||
+ | if (dformsnrelement[j].selected == true ) { | ||
+ | if (dataarray[num][i-r] == "") { | ||
+ | dataarray[num][i-r] += dformsnrelement[j].value; | ||
+ | } | ||
+ | else { | ||
+ | dataarray[num][i-r] += ";" + dformsnrelement[j].value; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
else { | else { | ||
- | dataarray[num][i-r] = | + | dataarray[num][i-r] = dformsnrelement.value; |
- | + | } | |
- | if( | + | } |
- | + | } | |
- | + | ||
- | + | function writevar(num, scriptoutput) { | |
+ | var countoutput=dforms["formout"+num].length-1; | ||
+ | for (var i=0; i<=countoutput; i++) { | ||
+ | var r = 0; | ||
+ | dformsnr = dforms["formout"+num]; | ||
+ | dformsnrelement = dformsnr.elements[i]; | ||
+ | if(dformsnrelement.type == 'radio') { | ||
+ | if (dformsnrelement.value == dataarray[num][i-r]) { | ||
+ | dformsnrelement.checked = "checked"; | ||
+ | } | ||
+ | else { r++ } | ||
+ | } | ||
+ | else if (dformsnrelement.type == 'select-multiple') { | ||
+ | var multiples = dataarray[num][i-r].split(";"); | ||
+ | var countmulti = 0; | ||
+ | for (var j=0;j<dformsnrelement.length;j++){ | ||
+ | if (dformsnrelement[j].value == multiples[countmulti] ) { | ||
+ | dformsnrelement[j].selected = "selected"; | ||
+ | countmulti++; | ||
+ | } | ||
+ | else { dformsnrelement[j].selected = false; | ||
+ | } | ||
+ | } | ||
+ | } | ||
else { | else { | ||
- | document.forms["formout"+num].elements[i-r].value = dataarray[num][i-r];}}} | + | document.forms["formout"+num].elements[i-r].value = dataarray[num][i-r]; |
- | + | } | |
- | + | ||
- | + | } | |
- | // | + | document.all.targetselection.src = scriptoutput; |
- | // | + | } |
- | + | ||
+ | function getvar (num) { | ||
+ | var scriptoutput; | ||
+ | specialcorrections(); | ||
+ | readvar(num); | ||
+ | writevar(num, scriptoutput); | ||
+ | |||
+ | |||
+ | switch (num) { | ||
+ | case 7: scriptoutput = 'http://igem.bioquant.uni-heidelberg.de/cgi-bin/igem_2010/aastha.pl?miRBStarget=' + dataarray[num][0] + '&miRBSofftarget=' + dataarray[num][1] + '&miRBSonofftarget=' + dataarray[num][2] + '&outmiRBStreshold=' + dataarray[num][3]; | ||
+ | break; | ||
+ | } | ||
+ | } | ||
function showoptions(num) | function showoptions(num) | ||
{ for (var i=1; i<=12; i++) { | { for (var i=1; i<=12; i++) { | ||
- | document.getElementById(i).style.display = "none"; | + | document.getElementById("rightinputform"+i).style.display = "none"; |
} | } | ||
- | document.getElementById(num).style.display = "block"; | + | document.getElementById("rightinputform"+num).style.display = "block"; |
} | } | ||
Line 63: | Line 133: | ||
<html> | <html> | ||
<body> | <body> | ||
- | + | ||
<div id="main_page"> | <div id="main_page"> | ||
<div id="area_map"> | <div id="area_map"> | ||
Line 97: | Line 167: | ||
</div> | </div> | ||
- | <div id=" | + | <div id="chooseoptions"> |
+ | <form name="totaloutput"> | ||
<table> | <table> | ||
- | <tr id=" | + | <tr id="lowerinputform1" class="lowerinputform"><td>shRNAmir:<form name="formout1"> |
<input name="output1" type="text" size="30" maxlength="30"> | <input name="output1" type="text" size="30" maxlength="30"> | ||
- | </form></td></tr> | + | </form> |
- | <tr id=" | + | |
+ | <input id="output111" name="output11" type="text" size="30" maxlength="30"> | ||
+ | </td></tr> | ||
+ | <tr id="lowerinputform2" class="lowerinputform"><td>Promoter 1:<form name="formout2"> | ||
<input name="output2" type="text" size="30" maxlength="30"> | <input name="output2" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform3" class="lowerinputform"><td>Promoter 2:<form name="formout3"> |
<input name="output3" type="text" size="30" maxlength="30"> | <input name="output3" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform4" class="lowerinputform"><td>Operator:<form name="formout4"> |
<input name="output4" type="text" size="30" maxlength="30"> | <input name="output4" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform5" class="lowerinputform"><td>miGene:<form name="formout5"> |
<input name="output5" type="text" size="30" maxlength="30"> | <input name="output5" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform6" class="lowerinputform"><td>shR_BS:<form name="formout6"> |
<input name="output6" type="text" size="30" maxlength="30"> | <input name="output6" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform7" class="lowerinputform"><td>miRNA_BS:<form name="formout7"> |
Target: <br/><select name="miRBStarget"> | Target: <br/><select name="miRBStarget"> | ||
<option value='hsa_AML-HL60'>hsa_AML-HL60</option> | <option value='hsa_AML-HL60'>hsa_AML-HL60</option> | ||
Line 143: | Line 217: | ||
Off:<input type="radio" name="miRBSonofftarget" value="off"><br/> | Off:<input type="radio" name="miRBSonofftarget" value="off"><br/> | ||
Treshold: <br><input name="outmiRBStreshold" type="text" size="30" maxlength="30"> | Treshold: <br><input name="outmiRBStreshold" type="text" size="30" maxlength="30"> | ||
- | </form></td></tr> | + | </form> |
- | <tr id=" | + | |
+ | <iframe name="targetselection" style="border:none"></iframe> </td></tr> | ||
+ | <tr id="lowerinputform8" class="lowerinputform"><td>Reference:<form name="formout8"> | ||
<input name="output8" type="text" size="30" maxlength="30"> | <input name="output8" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform9" class="lowerinputform"><td>tet-Promotor:<form name="formout9"> |
<input name="output9" type="text" size="30" maxlength="30"> | <input name="output9" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform10" class="lowerinputform"><td>tet-Repressor:<form name="formout10"> |
<input name="output10" type="text" size="30" maxlength="30"> | <input name="output10" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform11" class="lowerinputform"><td>tet-miR_BS:<form name="formout11"> |
<input name="output11" type="text" size="30" maxlength="30"> | <input name="output11" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | <tr id=" | + | <tr id="lowerinputform12" class="lowerinputform"><td>Virus:<form name="formout12"> |
<input name="output12" type="text" size="30" maxlength="30"> | <input name="output12" type="text" size="30" maxlength="30"> | ||
</form></td></tr> | </form></td></tr> | ||
- | </table></div> | + | </table> |
+ | <input type="button" value="Submit" onClick="sendall()"> | ||
+ | </form> | ||
+ | </div> | ||
</div> | </div> | ||
</html> | </html> | ||
Line 166: | Line 245: | ||
- | <table id=" | + | <table id="rightformtable" cellpadding="0" cellspacing="0"> |
- | <tr id=" | + | <tr id="rightinputform1" class="forms"><td> |
- | + | asdfasdfText Text Text Text <br> Text Text Text Text | |
- | <form name=" | + | <form name="giveinput1"> |
Variable1 | Variable1 | ||
<forFm> | <forFm> | ||
- | <select name=" | + | <select name="selectshRNA"> |
<option value="aaaa">aaaa</option> | <option value="aaaa">aaaa</option> | ||
<option value="bbbb">bbbb</option> | <option value="bbbb">bbbb</option> | ||
Line 181: | Line 260: | ||
<input type="button" value="Submit" onClick="getvar(1)"></form></td> | <input type="button" value="Submit" onClick="getvar(1)"></form></td> | ||
</tr> | </tr> | ||
- | <tr id=" | + | <tr id="rightinputform2" class="forms"><td> |
- | <form name=" | + | <form name="giveinput2"> |
<p>Choose your first promoter</p> | <p>Choose your first promoter</p> | ||
<select name="menu"> | <select name="menu"> | ||
Line 193: | Line 272: | ||
<input type="button" value="Submit" onClick="getvar(2);"></form> | <input type="button" value="Submit" onClick="getvar(2);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform3" class="forms"><td> |
- | <form name=" | + | <form name="giveinput3"> |
<p>Choose your second promoter</p> | <p>Choose your second promoter</p> | ||
<select name="menu"> | <select name="menu"> | ||
Line 205: | Line 284: | ||
<input type="button" value="Submit" onClick="getvar(3);"></form> | <input type="button" value="Submit" onClick="getvar(3);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform4" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput4"> |
<p>Variable3<br><input name="variable3" type="text" size="30" maxlength="30"></p> | <p>Variable3<br><input name="variable3" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(4)"></form> | <input type="button" value="Submit" onClick="getvar(4)"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform5" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput5"> |
<p>Variable4<br><input name="variable4" type="text" size="30" maxlength="30"></p> | <p>Variable4<br><input name="variable4" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(5);"></form> | <input type="button" value="Submit" onClick="getvar(5);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform6" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput6"> |
<p>Variable5<br><input name="variable6" type="text" size="30" maxlength="30"></p> | <p>Variable5<br><input name="variable6" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(6);"></form> | <input type="button" value="Submit" onClick="getvar(6);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform7" class="forms"><td> |
<p>miRBS<br></p> | <p>miRBS<br></p> | ||
- | <form name=" | + | <form name="giveinput7"> |
<p>Choose your Target:<br><select name="miRBStarget"> | <p>Choose your Target:<br><select name="miRBStarget"> | ||
<option value='hsa_AML-HL60'>hsa_AML-HL60</option> | <option value='hsa_AML-HL60'>hsa_AML-HL60</option> | ||
Line 256: | Line 335: | ||
<input type="button" value="Submit" onClick="getvar(7);"></form> | <input type="button" value="Submit" onClick="getvar(7);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform8" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput8"> |
<p>Variable6<br><input name="variable7" type="text" size="30" maxlength="30"></p> | <p>Variable6<br><input name="variable7" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(8);"></form> | <input type="button" value="Submit" onClick="getvar(8);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform9" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput9"> |
<p>Variable7<br><input name="variable8" type="text" size="30" maxlength="30"></p> | <p>Variable7<br><input name="variable8" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(9);"></form> | <input type="button" value="Submit" onClick="getvar(9);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform10" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput10"> |
<p>Variable8<br><input name="variable9" type="text" size="30" maxlength="30"></p> | <p>Variable8<br><input name="variable9" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(10);"></form> | <input type="button" value="Submit" onClick="getvar(10);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform11" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput11"> |
<p>Variable9<br><input name="variable10" type="text" size="30" maxlength="30"></p> | <p>Variable9<br><input name="variable10" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(11);"></form> | <input type="button" value="Submit" onClick="getvar(11);"></form> | ||
</td></tr> | </td></tr> | ||
- | <tr id=" | + | <tr id="rightinputform12" class="forms"><td> |
<p>Text Text Text Text <br> Text Text Text Text <br></p> | <p>Text Text Text Text <br> Text Text Text Text <br></p> | ||
- | <form name=" | + | <form name="giveinput12"> |
<p>Variable10<br><input name="variable11" type="text" size="30" maxlength="30"></p> | <p>Variable10<br><input name="variable11" type="text" size="30" maxlength="30"></p> | ||
<input type="button" value="Submit" onClick="getvar(12);"></form> | <input type="button" value="Submit" onClick="getvar(12);"></form> |
Revision as of 18:22, 23 October 2010
|
|
||||||||||||||