Download the network free stochastic simulator
Transcript
NFsim the network free stochastic simulator ./NFsim […other parameters…] –cb where ‘cb’ stands for complex bookkeeping. d. restricting the number of molecule agents In many biochemical systems, Molecules are dynamically created and destroyed. In NFsim, whenever a Molecule is created or destroyed, a new agent must be added or removed from the simulation. Each molecule agent must remember its current state, so requires a small amount of memory. Therefore there is an inherent limit, based on your machine, on the number of molecules you can create in memory. Depending on your operating system, when this limit is reached your computer will start using the hard-disk to store memory making your computer run incredibly slow occasionally to the point of freezing. To prevent your computer from running out of memory in case you accidentally create too many molecules, NFsim sets a default limit of 100,000 molecules of any particular Molecule Type from being created. If the limit is exceeded, NFsim just stops running gracefully, thereby potentially saving your computer. In some cases, however, you may in fact want more than 200,000 molecules of a given type and you may have more than enough memory to store several million agents. In that case, you can change the agent limit restriction by running NFsim as: ./NFsim […other parameters…] –gml [limit] where the flag gml stands for the global molecule limit (per MoleculeType). You might even want to set the limit lower than 200,000 so that you can make sure you are not generating many more molecules than you expect. e. connected-to syntax The BioNetGen Language allows you to declare that two molecules are connected, without explicitly giving the bond path between those molecules. For instance, you can define a pattern as: A().B() to match all times where A and B are connected by some path. This syntax is powerful as it allows you to overcome the combinatorial complexity of having to specify every single combination of bonds where A is connected to B. Some systems require this syntax to be specified correctly. However, the connected-to syntax is also incredibly dangerous. Consider the actual molecule complex instance here: B(a,a!1).A(b!1,b!2).B(a!2,a!3).A(b!3,b) In this case, the pattern A().B() will be able to map onto this complex four times, once for every time you can find a unique A and B in the complex. Therefore, when you have patterns that use the connected-to syntax, NFsim will have to look for all combinations that match. This 28