Team:Groningen/Graphs/GlpFTransport

From 2009.igem.org

(Difference between revisions)
m (Team:Groningen/Graphs/ArsenicTransport moved to Team:Groningen/Graphs/GlpFTransport: Better name, ArsenicTransport would be better suited for the combined model.)
(Added colors.)
Line 9: Line 9:
         var ddata=new Array(data.length);\
         var ddata=new Array(data.length);\
         var n=data.length, j;\
         var n=data.length, j;\
-
         var d=[{title:'As(III)<sub>ex</sub>',data:[],args:{plot:'outer'}},\
+
         var d=[{title:'As(III)<sub>ex</sub>',data:[],args:{plot:'outer',{{:Team:Groningen/Styles/As(III)ex}}}},\
-
                 {title:'As(III)',data:[],args:{plot:'inner'}}];\
+
                 {title:'As(III)',data:[],args:{plot:'inner',{{:Team:Groningen/Styles/As(III)}}}}];\
         j=n; while(j-->0) d[j].data.push({x:0,y:data[j]*1e6});\
         j=n; while(j-->0) d[j].data.push({x:0,y:data[j]*1e6});\
         for(var i=1; i<=3600; i++) {\
         for(var i=1; i<=3600; i++) {\
Line 22: Line 22:
                 data:[{x:1,y:8.47076050151002}, {x:10,y:6.51596961654617}, {x:20,y:4.3195753637778},\
                 data:[{x:1,y:8.47076050151002}, {x:10,y:6.51596961654617}, {x:20,y:4.3195753637778},\
                       {x:40,y:1.72783014551112}, {x:60,y:0.9371282145145}],\
                       {x:40,y:1.72783014551112}, {x:60,y:0.9371282145145}],\
-
                 args:{plot: 'outer', stroke: {style:'Dash'}}});\
+
                 args:{plot: 'outer', {{:Team:Groningen/Styles/As(III)ex}}}});\
         d.push({title:'As(III) Meng2004',\
         d.push({title:'As(III) Meng2004',\
                 data:[{x:1,y:101.917808219178}, {x:10,y:394.520547945205}, {x:20,y:723.287671232877},\
                 data:[{x:1,y:101.917808219178}, {x:10,y:394.520547945205}, {x:20,y:723.287671232877},\
                       {x:40,y:1111.23287671233}, {x:60,y:1229.58904109589}],\
                       {x:40,y:1111.23287671233}, {x:60,y:1229.58904109589}],\
-
                 args:{plot: 'inner', stroke: {style:'Dash'}}});\
+
                 args:{plot: 'inner', {{:Team:Groningen/Styles/As(III)}}}});\
 +
        for(j=n; j<d.length; j++) d[j].args.style = 'Dash';\
         d;",
         d;",
width: '10cm',
width: '10cm',

Revision as of 09:46, 24 July 2009

{ script: "var data=[Number(document.getElementById('As3exInitial').value)*1e-6,0],\

            Vcells=Number(document.getElementById('Vcells').value)*1e-6,\
            Vtotal=Number(document.getElementById('Vtotal').value)*1e-6,\
            Vmaxnorm=Number(document.getElementById('Vmax').value),\
            K=Number(document.getElementById('KGlpF').value)*1e-6;\
        var Vmediumdivcells = (Vtotal - Vcells)/Vcells;\
        var Vmax = Vmaxnorm*Vcells;\
        var ddata=new Array(data.length);\
        var n=data.length, j;\
        var d=[{title:'As(III)ex',data:[],args:{plot:'outer',stroke: { color: '#8B2500' }}},\
               {title:'As(III)',data:[],args:{plot:'inner',stroke: { color: '#FF4500' }}}];\
        j=n; while(j-->0) d[j].data.push({x:0,y:data[j]*1e6});\
        for(var i=1; i<=3600; i++) {\
          var f=i/60;\
          ddata[0] = -Vmax*data[0]/(K+data[0]);\
          ddata[1] = -ddata[0]*Vmediumdivcells;\
          j=n; while(j-->0) data[j] += ddata[j];\
          if (i%10==0) j=n; while(j-->0) d[j].data.push({x:f,y:data[j]*1e6});\
        }\
        d.push({title:'As(III)ex Meng2004',\
                data:[{x:1,y:8.47076050151002}, {x:10,y:6.51596961654617}, {x:20,y:4.3195753637778},\
                      {x:40,y:1.72783014551112}, {x:60,y:0.9371282145145}],\
                args:{plot: 'outer', stroke: { color: '#8B2500' }}});\
        d.push({title:'As(III) Meng2004',\
                data:[{x:1,y:101.917808219178}, {x:10,y:394.520547945205}, {x:20,y:723.287671232877},\
                      {x:40,y:1111.23287671233}, {x:60,y:1229.58904109589}],\
                args:{plot: 'inner', stroke: { color: '#FF4500' }}});\
        for(j=n; j<d.length; j++) d[j].args.style = 'Dash';\
        d;",

width: '10cm', height: '8cm', axes: {x: {title: "time (min)", minorLabels: false}, innery: {title: "concentration in cell (µM)", vertical: true, min: 0}, outery: {title: "concentration in solution (µM)", vertical: true, leftBottom: false, min: 0} }, plots: { 'inner': {type: 'Lines', vAxis: 'innery'}, 'outer': {type: 'Lines', vAxis: 'outery'} } }