CoGNaC: a Chaste plugin for the multiscale simulation of Gene regulatory Networks driving the spatial dynamics of tissues and Cancer
Welcome to the Chaste wiki.
Designed only to work as bolt-on project for Chaste v3.2 or v3.3.
This section contains pages generated automatically from the source code accompanying Rubinacci et al. “CoGNaC: A Chaste Plugin for the Multiscale Simulation of Gene Regulatory Networks Driving the Spatial Dynamics of Tissues and Cancer”, our paper in Cancer informatics, 2015.
User manual
A detailed user guide of CoGNaC can be found as an attachment at the bottom of this page.
Getting the code and installing dependencies
Before running these examples you will need to install Chaste’s dependencies and the source code for version 3.3. The easiest way to do this is using an Ubuntu machine (or an Ubuntu virtual machine) as discussed on InstallGuides/UbuntuPackage. Note that Chaste is only fully supported on Linux/Unix systems, so users of Windows or Mac OS X may need to follow the virtual machine route. For manual installation of each dependency, on any version of Linux, see DeveloperInstallGuide.
You will also need the source for the CoGNaC project.
From the Chaste projects directory:
git clone https://github.com/Chaste/project_CoGNaC CoGNaCUpdate 2018: This code has been tested with Chaste versions 3.3 and 3.4.
Once you have checked out the project you need to install BuDDy tool, you may do so from the command line as follows:
sudo apt-get install libbdd-devThis will install BuDDy using the standard folders but you also need to inform Chaste to add BuDDy as library dependency, adding this information to the hostconfing file. Scons will tell you which machine file it’s using in the first few lines, e.g:
cd <Chaste3.3 path>
scons
scons: Reading SConscript files ...
Using hostconfig settings from python/hostconfig/ubuntu.py
Running infrastructure tests...So, in the file you are using (e.g. python/hostconfig/ubuntu.py), just add ‘bdd’ similar to:
other_libraries = boost_libs + ['xerces-c',
'hdf5', 'z',
'parmetis', 'metis', 'bdd']Now the project should be installed, and everything should compile and run correctly. In order to test if everything is installed correctly, you can run some tests. So from a command line do:
cd <Chaste3.3 path>
scons test_suite=projects/CoGNaC/test/TestGraphNode.hpp
scons test_suite=projects/CoGNaC/test/TestArrayDirectedGraph.hpp
scons test_suite=projects/CoGNaC/test/TestDifferentiationTree.hpp
scons test_suite=projects/CoGNaC/test/TestRandomBooleanNetwork.hppIf each test run is passed, you can run some tests or simulations, or create your own test suites.
Documentation
There are three folders - networks_samples, src and test.
- The
networks_samplesfolder contains networks and matrices used for tests and simulations. - The
srcfolder contains the following classes:
ArrayDirectedGraph.hpp,GraphNode.hpp- modelling a directed graph.RandomBooleanNetwork.hpp- used for the generation of a random Boolean network (RBN) and the attractor search.ThresholdErgodicSetDifferentiationTree.hpp- generating an ATN and aDifferentiationTreeobject from a RBN.DifferentiationTree.hpp,DifferentiationTreeNode.hpp- used to represent a cellular differentiation tree.DifferentiationTreeBasedCellCycleModel.hpp,DifferentiationTreeBasedWithAsymmetricDivisionCellCycleModel.hpp- used for the representation of a cell cycle model, using the information contained in aDifferentiationTreeobject and performing stochastic differentiation. In additionDifferentiationTreeBasedWithAsymmetricDivisionCellCycleModel.hppimplements stem cells asymmetric division.
- The
testfolder contains:
TestArryDirectedGraph.hpp- testingArrayDirectedGraph.hppclass.TestDifferentiationTree.hpp- testingDifferentiationTree.hppclass.TestGraphNode.hpp- testingGraphNode.hppclass.TestRandomBooleanNetwork.hpp- testingRandomBooleanNetwork.hppclass and the Buddy dependency.- TestSearchingGeneActivationPatternsInThelperNetworkLiteratePaper.hpp - this file can be run to generate the results in Figure 3 showing the attractors of the Thelper newtork and the generated ATN.
- TestCancerCellColonizationOfaColonCryptLiteratePaper.hpp - this file can be run to generate the results in Figure 4 showing the ATN and the differentiation tree and to generate the crypt simulations shown in Figure 5.
Running tests
You can then run tests and simulations with, for example,
cd <Chaste3.3 path>
scons test_suite=projects/CoGNaC/test/TestSearchingGeneActivationPatternsInThelperNetwork.hppor
scons test_suite=projects/CoGNaC/test/TestCancerCellColonizationOfaColonCryptLiteratePaper.hppNB: the paper was developed with release version 3.2 and 3.3. We have not tested the compatibility with release version 3.1 or under.
For further information on using Chaste, see the extensive guide material. You may also wish to look at some of the basic user tutorials.
