Team:Amsterdam/maarten/

From 2012.igem.org

(Difference between revisions)
Line 4: Line 4:
<script type='text/javascript'>
<script type='text/javascript'>
function setup(){
function setup(){
-
                document.write('check')
 
$('#visualizationButtons').empty()
$('#visualizationButtons').empty()
$('#infovis').empty()
$('#infovis').empty()
Line 11: Line 10:
sensors = document.plasmidForm.sensors.value.toLowerCase()
sensors = document.plasmidForm.sensors.value.toLowerCase()
sensorArray = formatSensors(sensors)
sensorArray = formatSensors(sensors)
-
                promoters = formatPartsregistryPromoters()
+
        promoters = formatPartsregistryPromoters()
-
                sensorArray = promoters.concat(sensorArray)
+
        sensorArray = promoters.concat(sensorArray)
tempArray = new Array()
tempArray = new Array()
j = 0
j = 0
number = 0
number = 0
targetSites = new Array()
targetSites = new Array()
-
                for (sensor in sensorArray){
+
for (sensor in sensorArray){
tempArray[j] = sensorArray[sensor]
tempArray[j] = sensorArray[sensor]
j++
j++
-
if (j === 1){
+
if (j%5 === 0){
-
+
configuratePlasmid(tempArray,number)
 +
number++
 +
tempArray = new Array()
j = 0
j = 0
-
                        }
+
for (item in memoryPlasmid.memoryObjects){
-
+
site = new Object()
 +
site.zincFingerDescription = memoryPlasmid.memoryObjects[item].zincFinger.featureObject.description
 +
site.zincFinger = memoryPlasmid.memoryObjects[item].zincFinger.featureObject.target
 +
site.zincFingerLength = site.zincFinger.length
 +
site.methyltransferaseDescription = memoryPlasmid.memoryObjects[item].methyltransferase.featureObject.description
 +
site.methyltransferase = memoryPlasmid.memoryObjects[item].methyltransferase.featureObject.target
 +
site.methyltransferaseLength = site.methyltransferase.length
 +
site.sensor = memoryPlasmid.memoryObjects[item].sensor.description
 +
targetSites.push(site)
 +
}
 +
}
}
}
-
                //genbankRestriction(targetSites)
+
if (j%5 !== 0){
 +
configuratePlasmid(tempArray,number)
 +
for (item in memoryPlasmid.memoryObjects){
 +
site = new Object()
 +
site.zincFingerDescription = memoryPlasmid.memoryObjects[item].zincFinger.featureObject.description
 +
site.zincFinger = memoryPlasmid.memoryObjects[item].zincFinger.featureObject.target
 +
site.zincFingerLength = site.zincFinger.length
 +
site.methyltransferaseDescription = memoryPlasmid.memoryObjects[item].methyltransferase.featureObject.description
 +
site.methyltransferase = memoryPlasmid.memoryObjects[item].methyltransferase.featureObject.target
 +
site.methyltransferaseLength = site.methyltransferase.length
 +
site.sensor = memoryPlasmid.memoryObjects[item].sensor.description
 +
targetSites.push(site)
 +
}
 +
}
 +
//genbankRestriction(targetSites)
json = createJSONRestriction(targetSites)
json = createJSONRestriction(targetSites)
$('#visualizationButtons').append('<input type="hidden" name="json-1" value="'+escape(JSON.stringify(json))+'"/><input class="submit" type="submit" value="Restriction Plasmid" onclick="visualization(-1);return false"/>');
$('#visualizationButtons').append('<input type="hidden" name="json-1" value="'+escape(JSON.stringify(json))+'"/><input class="submit" type="submit" value="Restriction Plasmid" onclick="visualization(-1);return false"/>');
-
$('#readout').append('<input type="textfield" name="readout" value=""/><input class="submit" type="submit" value="Submit" onClick="getReadout();return false"/>');
+
$('#readout').append('<input type="textfield" name="readout" value=""/><input class="submit" type="submit" value="Submit" onClick="getReadout();return false"/>');
-
+
}
}
</script>
</script>

Revision as of 19:26, 3 September 2012

Enter your plasmid in fasta or genbank format


Enter your sensors in fasta or genbank format