Team:Heidelberg/Modeling/miGUI

From 2010.igem.org

(Difference between revisions)
Line 39: Line 39:
function sendall() {
function sendall() {
for(var i=1;i<=12;i++) {
for(var i=1;i<=12;i++) {
-
if(document.getElementById("lowerinputform"+i).style.display = "none") {
+
if(document.getElementById("lowerinputform"+i).style.display != "") {
readvar(i, "formout");
readvar(i, "formout");
-
dataarray[1];
+
for(var j=0;j<dataarray[i].length;j++) {
 +
alert(dataarray[i][j]);
 +
}
}
}
Line 58: Line 60:
}
}
}
}
-
+
 
function readvar(num, target) {
function readvar(num, target) {
var r = 0;
var r = 0;
-
var countinput=dforms[target+num].length-1;
+
var countinput=dforms[target+num].length;
-
dataarray[num] = new Array(countinput);
+
dataarray[num] = new Array();
var dformsnr = dforms[target+num];
var dformsnr = dforms[target+num];
Line 68: Line 70:
dformsnrelement = dformsnr.elements[i];
dformsnrelement = dformsnr.elements[i];
-
if(dformsnrelement.type == 'radio') {
+
switch (dformsnrelement.type) {
-
if (dformsnrelement.checked == true) {
+
case 'radio': if (dformsnrelement.checked == true) {
-
dataarray[num][i-r] = dformsnrelement.value;
+
dataarray[num].push(dformsnrelement.value);
-
}  
+
}  
-
else { r++ }
+
else { r++ };
-
}
+
break;
-
else if (dformsnrelement.type == 'select-multiple') {
+
-
var subarraycount = dformsnrelement.length;
+
case 'select-multiple':
-
var countentries = 0;
+
var subarraycount = dformsnrelement.length;
-
dataarray[num][i-r] = "";
+
var countentries = 0;
-
for (var j=0;j<subarraycount;j++){
+
dataarray[num].push("");
-
if (dformsnrelement[j].selected == true ) {
+
for (var j=0;j<subarraycount;j++){
-
if (dataarray[num][i-r] == "") {
+
if (dformsnrelement[j].selected == true ) {
-
dataarray[num][i-r] += dformsnrelement[j].value;
+
if (dataarray[num][i-r] == "") {
-
}
+
dataarray[num][i-r] += dformsnrelement[j].value;
-
else {
+
}
-
dataarray[num][i-r] += ";" + dformsnrelement[j].value;
+
else { dataarray[num][i-r] += ";" + dformsnrelement[j].value;
-
}
+
};
-
}
+
}
 +
};
 +
break;
 +
 +
case 'button': break;
 +
 +
default: dataarray[num].push(dformsnrelement.value);
 +
break;
 +
}
}
-
}
 
-
else {
 
-
dataarray[num][i-r] = dformsnrelement.value;
 
-
}
 
}
}
}
}
-
 
+
function writevar(num, target, scriptoutput) {
function writevar(num, target, scriptoutput) {
var r = 0;
var r = 0;
Line 102: Line 108:
dformsnrelement = dformsnr.elements[i];
dformsnrelement = dformsnr.elements[i];
-
if(dformsnrelement.type == 'radio') {
+
-
if (dformsnrelement.value == dataarray[num][i-r]) {
+
switch (dformsnrelement.type) {
-
dformsnrelement.checked = "checked";
+
-
}  
+
case 'radio': if (dformsnrelement.value == dataarray[num][i-r]) {
-
else { r++ }
+
dformsnrelement.checked = "checked";
-
}
+
}  
-
else if (dformsnrelement.type == 'select-multiple') {
+
else { r++ };
-
var multiples = dataarray[num][i-r].split(";");
+
break;
-
var countmulti = 0;
+
-
for (var j=0;j<dformsnrelement.length;j++){
+
case 'select-multiple':
-
if (dformsnrelement[j].value == multiples[countmulti] ) {
+
var multiples = dataarray[num][i-r].split(";");
-
dformsnrelement[j].selected = "selected";
+
var countmulti = 0;
-
countmulti++;
+
for (var j=0;j<dformsnrelement.length;j++){
-
}
+
if (dformsnrelement[j].value == multiples[countmulti] ) {
-
else { dformsnrelement[j].selected = false;
+
dformsnrelement[j].selected = "selected";
-
}
+
countmulti++;
 +
}
 +
else { dformsnrelement[j].selected = false;
 +
};
 +
};
 +
break;
 +
 +
case 'button': break;
 +
 +
default: dformsnrelement.value = dataarray[num][i-r];
 +
break;
 +
}
}
-
}
+
document.getElementById("targetselection").src = scriptoutput;
-
else {
+
-
dformsnrelement.value = dataarray[num][i-r];
+
}
}
-
 
-
}
 
-
document.getElementById("targetselection").src = scriptoutput;
 
}
}

Revision as of 10:01, 24 October 2010

click

GUI_Picture shRNAmir Promoter_1 Promoter_2 Operator miGene shR_BS miR_BS Reference tet-R_Promoter tet-Repressor tet-miR_BS Virus

shRNAmir:
Promoter 1:
Promoter 2:
Operator:
miGene:
shR_BS:
miRNA_BS:
Target:

Off-Target:

On: Off:
Treshold:
Reference:
tet-Promotor:
tet-Repressor:
tet-miR_BS:
Virus:

Give shRNAmiR

Choose your first promoter

Choose your second promoter

Text Text Text Text
Text Text Text Text

Variable3

Text Text Text Text
Text Text Text Text

Variable4

Text Text Text Text
Text Text Text Text

Variable5

miRBS

Choose your Target:

Choose your Off-Targets:

On-Targeting Off-Targeting

Set relative miRNA treshold

Text Text Text Text
Text Text Text Text

Variable6

Text Text Text Text
Text Text Text Text

Variable7

Text Text Text Text
Text Text Text Text

Variable8

Text Text Text Text
Text Text Text Text

Variable9

Text Text Text Text
Text Text Text Text

Variable10