Generation of stoichiometric matrix from a reaction network
A reaction network class must be initialized with a list of main reactions represented as strings: A+B>C+D
.
Once a reaction network is constructed, the function .write_subnetworks(network_id)
can be used to write all the sub-networks for each main reaction.
Within these sub-networks, an enzime is denoted by E#
, where #
is replaced by the number of the corresponding main reaction. This function will create a set of .txt files containing each of the sub-networks. The network_id
is just a string identifier for the current network that can be set arbitrary by the user.
To obtain the stoichiometric matrix, one must use the function .write_SMatrix(network_id)
which will create a .csv file containing the stoichiometric matrix of the reaction network. The network_id
is just a string identifier for the current network that can be set arbitrary by the user.
An example of how to use it is within the Test.py
file.
- numpy=1.21.2
- pandas=1.3.3
Only reactions with one or two reactants and products (without considering the enzime) are tested.
This repository contains a the following license