Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Testcode for Cell Model

Derkje-J edited this page Apr 21, 2013 · 5 revisions
cell = new Cell

add = function(mod) { cell.add( mod ); }
mods = [].concat(
    ModuleGenerator.transporter_in(), 
    ModuleGenerator.metabolism(),
    ModuleGenerator.transporter_out(),
    ModuleGenerator.lipid(),
    ModuleGenerator.protein(),
    ModuleGenerator.cell()
);
_(mods).each( add )

cell.add_substrate( 'dna', 1 )
cell.add_substrate( 'lipid', 0 )
cell.add_substrate( 'protein', 0 )
cell.add_substrate( 'transport_s_in', 0 )
cell.add_substrate( 's_ext', 10 )
cell.add_substrate( 's_int', 0 )
cell.add_substrate( 'enzym', 0 )
cell.add_substrate( 'p_int', 0 )
cell.add_substrate( 'p_ext', 0 )
cell.add_substrate( 'transport_p_out', 0 )
cell.add_substrate( 'cell', 1 )

graphs = cell.visualize( 13, $('.container'), { dt : .5 } )
Clone this wiki locally