|
'ElMo-Knock'
|
#include <bitefm.h>
Public Member Functions | |
| BitEfm () | |
| int | load_efm_bit (string efm_bit_fname, t_UnsignedInt num_ems, vector< vector< double > > &stoich) |
| Load bit-represented elementary flux mode matrix from the given file using the given number of elementary flux modes. | |
| char * | get_buffer () |
| int | get_bytes_per_efm () |
| int | get_num_reacs () |
| t_UnsignedInt | get_num_modes () |
| int | fast_is_fes (vector< long > &ineff_efm_indices, set< int > &reacs) |
| This method checks if the subset of efficient elementary flux modes which uniquely determines the set of reactions 'reacs' is feasible. | |
| int | is_efm_elem_zero (unsigned long index, int reac, int &is_zero) |
| Check if elementary flux mode has zero value for given reaction. | |
| int | read_single_efm (unsigned long index, vector< double > &efm) |
| Read indexed elementary mode from the bit-matrix into expanded floating-point column. | |
| int | print_efm (unsigned long index, vector< string > &reacs_names) |
| int | retain_efm (vector< long > efm_indices2retain, vector< vector< double > > &yields) |
| Removes elementary modes not indexed by the given indices array. | |
| int | remove_efm (vector< long > efm_indices2remove, vector< vector< double > > &yields) |
| Removes elementary modes indexed by the given indices array. | |
| int | knock_efms (map< string, int > knock_reacs, vector< vector< double > > &yields) |
| Given a subset of reactions, removes those elementary modes having non-zero flux for at least one of those reactions. | |
Private Attributes | |
| char * | buffer |
| variable to store bit-represented elementar mode matrix | |
| string | efm_bit_fname |
| name of file containing bit-represented elementary mode matrix | |
| vector< vector< double > > | stoich |
| stoichiometry matrix | |
| t_UnsignedInt | num_ems |
| number of elementary flux modes | |
| t_UnsignedInt | file_length |
| length of file containing bit-represented elementary flux modes | |
| int | bytes_per_efm |
| number of bytes used to represent single elementary flux modes | |
| int | num_reacs |
| number of reactions in the network | |
Abstraction of bit-represented elementary flux mode matrix. Methods allow scanning of elementary flux modes and removal of desired modes.
| BitEfm::BitEfm | ( | ) |
Definition at line 15 of file bitefm.cpp.
| int BitEfm::fast_is_fes | ( | vector< long > & | ineff_efm_indices, |
| set< int > & | reacs | ||
| ) |
This method checks if the subset of efficient elementary flux modes which uniquely determines the set of reactions 'reacs' is feasible.
If the subset of reactions from 'reacs' can be used to collapse all the modes indexed by 'ineff_efm_indices' then the corresponding subset of efficient modes is feasible. Scan the given set of inefficient modes to check if there is a mode not having non-zero flux in the given reaction subset reacs
| [in] | ineff_efm_indices | Index of inefficient elementary flux modes |
| [in] | reacs | subset of reactions available to knockout inefficient modes |
Definition at line 112 of file bitefm.cpp.
| t_UnsignedInt BitEfm::get_num_modes | ( | ) |
Definition at line 232 of file bitefm.cpp.
| int BitEfm::get_num_reacs | ( | ) |
Definition at line 229 of file bitefm.cpp.
| int BitEfm::is_efm_elem_zero | ( | unsigned long | efm_index, |
| int | reac, | ||
| int & | is_zero | ||
| ) |
Check if elementary flux mode has zero value for given reaction.
| [in] | efm_index | Index of elementary flux mode in the EFM matrix |
| [in] | reac | index of reaction in the elementary mode |
| [out] | is_zero | Indicator if the mode has non-zero or zero value for given reaction. 0:non-zero value , 1:zero value |
Definition at line 147 of file bitefm.cpp.
| int BitEfm::knock_efms | ( | map< string, int > | knock_reacs, |
| vector< vector< double > > & | yields | ||
| ) |
Given a subset of reactions, removes those elementary modes having non-zero flux for at least one of those reactions.
| [in] | knock_reacs | Reactions which are deleted from network |
| [out] | yields | updated yields array for target metabolites |
Definition at line 336 of file bitefm.cpp.
| int BitEfm::load_efm_bit | ( | string | efm_bit_fname, |
| t_UnsignedInt | num_ems, | ||
| vector< vector< double > > & | stoich | ||
| ) |
Load bit-represented elementary flux mode matrix from the given file using the given number of elementary flux modes.
| [in] | efm_bit_fname | name of file which contains bit-represented elementary mode matrix |
| [in] | num_ems | number of elementary modes |
| [in] | stoich | stoichiometry matrix |
Definition at line 28 of file bitefm.cpp.
| int BitEfm::print_efm | ( | unsigned long | index, |
| vector< string > & | reacs_names | ||
| ) |
Definition at line 221 of file bitefm.cpp.
| int BitEfm::read_single_efm | ( | unsigned long | efm_index, |
| vector< double > & | efm | ||
| ) |
Read indexed elementary mode from the bit-matrix into expanded floating-point column.
| [in] | efm_index | Index of elementary flux mode in the EFM matrix |
| [out] | efm | Elementary mode floating-point column |
Definition at line 170 of file bitefm.cpp.
| int BitEfm::remove_efm | ( | vector< long > | efm_indices2remove, |
| vector< vector< double > > & | yields | ||
| ) |
Removes elementary modes indexed by the given indices array.
| [in] | efm_indices2remove | Array of indices of modes which should be removed |
| [in,out] | yields | Array of yields for target metabolites for the remaining modes |
Definition at line 290 of file bitefm.cpp.
| int BitEfm::retain_efm | ( | vector< long > | efm_indices2retain, |
| vector< vector< double > > & | yields | ||
| ) |
Removes elementary modes not indexed by the given indices array.
| [in] | efm_indices2retain | Array of indices of modes which should be retained |
| [in,out] | yields | Array of yields for target metabolites for the remaining modes |
Definition at line 247 of file bitefm.cpp.
char* BitEfm::buffer [private] |
int BitEfm::bytes_per_efm [private] |
string BitEfm::efm_bit_fname [private] |
t_UnsignedInt BitEfm::file_length [private] |
t_UnsignedInt BitEfm::num_ems [private] |
int BitEfm::num_reacs [private] |
vector< vector<double> > BitEfm::stoich [private] |