Data-based sparsity learning of chemical reaction networks (CRNs).
These codes have been used to produce numerical results of the paper:
Arxiv version is here.
This package relies on the following external libraries.
-
libconfig. This library is used to process the configuration file: ./working_dir/sparse_learning.cfg.
-
RANLIB.C (file: ranlib.c.tar.gz). This library provides random number generators. It is used in the code ./src/ssa.cpp to generate random trajectories of reactions.
To build a parallel code (optional), we also need
- MPICH. The trajectory data will be distributed and analysed by different processors. Therefore, a parallel code is helpful, when there are multiple trajectories.
-
Install the above libraries, if necessary.
-
Download the source code.
git clone https://github.com/zwpku/sparse-learning-CRN.git
The code should be avaiable in the directory ./sparse_learning_CRN
- Enter the directory containing source files.
cd ./sparse_learning_CRN/src
-
Make sure paths of the directories containing the header and library files are provided.
-
Compile.
make