Team:Groningen/Graphs/GlpFTransport
From 2009.igem.org
(Difference between revisions)
(Initial attempt at graph of arsenic transport.) |
m |
||
Line 4: | Line 4: | ||
Vmedium=Number(document.getElementById('Vmedium').value)*1e-6,\ | Vmedium=Number(document.getElementById('Vmedium').value)*1e-6,\ | ||
Vmax=Number(document.getElementById('Vmax').value),\ | Vmax=Number(document.getElementById('Vmax').value),\ | ||
- | K=Number(document.getElementById(' | + | K=Number(document.getElementById('KGlpF').value)*1e-6;\ |
var ddata=new Array(data.length);\ | var ddata=new Array(data.length);\ | ||
var d=[{title:'As(III)<sub>ex</sub>',data:[],args:[]},{title:'As(III)',data:[],args:[]}];\ | var d=[{title:'As(III)<sub>ex</sub>',data:[],args:[]},{title:'As(III)',data:[],args:[]}];\ |
Revision as of 13:33, 21 July 2009
{ script: "var data=[Number(document.getElementById('As3ExInitial').value)*1e-6,0],\
Vcells=Number(document.getElementById('Vcells').value)*1e-6,\ Vmedium=Number(document.getElementById('Vmedium').value)*1e-6,\ Vmax=Number(document.getElementById('Vmax').value),\ K=Number(document.getElementById('KGlpF').value)*1e-6;\ var ddata=new Array(data.length);\ var d=[{title:'As(III)ex',data:[],args:[]},{title:'As(III)',data:[],args:[]}];\ for(var j in data) d[j].data.push({x:0,y:data[j]*1e6});\ for(var i=1; i<=3600; i++) {\ var f=i/60;\ ddata[0] = -Vmax*Vcells*data[0]/(K+data[0]);\ ddata[1] = -ddata[0]*(Vmedium/Vcells);\ for(var j in data) d[j] += ddata[j];\ for(var j in data) d[j].data.push({x:f,y:data[j]*1e6});\ } d;",
width: '10cm', height: '8cm', axes: {x: {title: "time (min)", minorLabels: false}, y: {title: "concentration (µM)", vertical: true} }, plots: { 'default': {type: 'Lines'} } }