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(){ | ||
- | |||
$('#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() | |
- | + | 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){ | |
tempArray[j] = sensorArray[sensor] | tempArray[j] = sensorArray[sensor] | ||
j++ | j++ | ||
- | if (j === | + | 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) | ||
+ | } | ||
+ | } | ||
} | } | ||
- | + | 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