Team:Groningen/Graphs/Characterization/Singh2008

From 2009.igem.org

(Difference between revisions)
(New page: { script: "var d=[{title:'As(III)<sub>ex</sub>T',data:[],args:{plot:'outer',{{:Team:Groningen/Styles/As(III)ex}}}},\ {title:'As(III)<sub>in</sub>T',data:[],args:{plot:'inne...)
m
 
(4 intermediate revisions not shown)
Line 2: Line 2:
script: "var d=[{title:'As(III)<sub>ex</sub>T',data:[],args:{plot:'outer',{{:Team:Groningen/Styles/As(III)ex}}}},\
script: "var d=[{title:'As(III)<sub>ex</sub>T',data:[],args:{plot:'outer',{{:Team:Groningen/Styles/As(III)ex}}}},\
                 {title:'As(III)<sub>in</sub>T',data:[],args:{plot:'inner',{{:Team:Groningen/Styles/As(III)}}}},\
                 {title:'As(III)<sub>in</sub>T',data:[],args:{plot:'inner',{{:Team:Groningen/Styles/As(III)}}}},\
-
                 {title:'As(III)<sub>in</sub>T Meng2004',data:[],
+
                 {title:'As(III)<sub>ex</sub>T Singh2008',data:[],\
-
                                                         args:{plot: 'inner',{{:Team:Groningen/Styles/As(III)}}}}];\
+
                                                         args:{plot: 'outer',{{:Team:Groningen/Styles/As(III)ex}}}}];\
-
         if (experiments.Meng2004.bestSolution!=undefined) {\
+
         if (experiments.Singh2008.bestSolution!=undefined) {\
-
           var data = experiments.Meng2004.bestSolution.xt;\
+
           var data = experiments.Singh2008.bestSolution.xt;\
           var t = Number.NEGATIVE_INFINITY;\
           var t = Number.NEGATIVE_INFINITY;\
           for(var i=0; i<data.time.length; i++) {\
           for(var i=0; i<data.time.length; i++) {\
             var f=data.time[i]/60;\
             var f=data.time[i]/60;\
-
             if (f>=t+0.1) {\
+
             if (f>=t+1) {\
-
               t = t+0.1;\
+
               t = t+1;\
               d[0].data.push({x:f,y:data.AsexT[i]*1e6});\
               d[0].data.push({x:f,y:data.AsexT[i]*1e6});\
               d[1].data.push({x:f,y:data.AsinT[i]*1e6});\
               d[1].data.push({x:f,y:data.AsinT[i]*1e6});\
Line 19: Line 19:
         for(var i=0; i<data.time.length; i++) {\
         for(var i=0; i<data.time.length; i++) {\
           var f=data.time[i]/60;\
           var f=data.time[i]/60;\
-
           d[2].data.push({x:f,y:data.AsinT[i]*1e6});\
+
           d[2].data.push({x:f,y:data.AsexT[i]*1e6});\
         }\
         }\
         for(j=2; j<d.length; j++) d[j].args.stroke.style = 'Dash';\
         for(j=2; j<d.length; j++) d[j].args.stroke.style = 'Dash';\

Latest revision as of 13:10, 5 October 2009

{ script: "var d=[{title:'As(III)exT',data:[],args:{plot:'outer',stroke: { color: '#8B2500' }}},\

               {title:'As(III)inT',data:[],args:{plot:'inner',stroke: { color: '#FF4500' }}},\
               {title:'As(III)exT Singh2008',data:[],\
                                                       args:{plot: 'outer',stroke: { color: '#8B2500' }}}];\
        if (experiments.Singh2008.bestSolution!=undefined) {\
          var data = experiments.Singh2008.bestSolution.xt;\
          var t = Number.NEGATIVE_INFINITY;\
          for(var i=0; i<data.time.length; i++) {\
            var f=data.time[i]/60;\
            if (f>=t+1) {\
              t = t+1;\
              d[0].data.push({x:f,y:data.AsexT[i]*1e6});\
              d[1].data.push({x:f,y:data.AsinT[i]*1e6});\
            }\
          }\
        }\
        var data = experiments.Singh2008.data;\
        for(var i=0; i<data.time.length; i++) {\
          var f=data.time[i]/60;\
          d[2].data.push({x:f,y:data.AsexT[i]*1e6});\
        }\
        for(j=2; j<d.length; j++) d[j].args.stroke.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'} } }