efmlrs.util package¶
Submodules¶
efmlrs.util.convert_matrix module¶
-
efmlrs.util.convert_matrix.
get_denominators
(smatrix)[source]¶ Gets greatest denominator of each row in stoichiometric matrix :param smatrix: list of lists of stoichiometric matrix :return: list of greatest denominators for each row
-
efmlrs.util.convert_matrix.
get_int_smatrix
(smatrix, greatest_denominators)[source]¶ Converts stoichiometric matrix from fractions to integer by multiplying each row with greatest denominator. :param smatrix: list of lists of stoichiometric matrix :param greatest_denominators: list of greatest denominators for each row :return: list of lists of converted stoichiometric matrix
-
efmlrs.util.convert_matrix.
get_min_smatrix
(int_smatrix)[source]¶ Gets greatest divisor for each row and divides each row through greatest divisor. Converts matrix from list of lists to sympy matrix. :param int_smatrix: list of lists of stoichiometric matrix with integers as coefficients :return: sympy matrix of stoichiometric matrix with smallest coefficients
-
efmlrs.util.convert_matrix.
run
(smatrix)[source]¶ Converts stoichiometric matrix from fractions to integer by multiplying each row with greatest denominator. For each row in stoichiometric matrix reduces coefficients to smallest number by dividing each row through greatest divisor. Converts matrix from list of lists to sympy matrix. :param smatrix: list of lists of stoichiometric matrix :return: sympy matrix of stoichiometric matrix with smallest coefficients
efmlrs.util.data module¶
Collection of small helper scripts.
-
efmlrs.util.data.
write_initial_files_no_bounds
(core_name, reactions, reversibilities, metabolites)[source]¶
efmlrs.util.log module¶
Collection of small scripts for creating log file.