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.bounds_print(bounds)[source]
efmlrs.util.data.convert_df2matrix(smatrix_df)[source]
efmlrs.util.data.convert_float2fraction(matrix)[source]
efmlrs.util.data.convert_fraction2float(matrix)[source]
efmlrs.util.data.convert_matrix2df(smatrix)[source]
efmlrs.util.data.efmlrs_finish_compressions()[source]
efmlrs.util.data.efmlrs_finish_decompressions()[source]
efmlrs.util.data.efmlrs_start_compressions()[source]
efmlrs.util.data.efmlrs_start_decompressions()[source]
efmlrs.util.data.read_mfile(name)[source]
efmlrs.util.data.read_rfile(name)[source]
efmlrs.util.data.read_rvfile(name)[source]
efmlrs.util.data.read_sfile(name)[source]
efmlrs.util.data.read_sfile_int(name)[source]
efmlrs.util.data.reversibilities4printing(reversibilities)[source]
efmlrs.util.data.write_all(smatrix, reactions, reversibilities, metabolites, name)[source]
efmlrs.util.data.write_cmp_int_matrix(core_name)[source]
efmlrs.util.data.write_efms(name, efms)[source]
efmlrs.util.data.write_info(core_name, reversibilities, outer_counter)[source]
efmlrs.util.data.write_init_mfile(name, metabolism)[source]
efmlrs.util.data.write_init_rfile(name, reactions)[source]
efmlrs.util.data.write_initial_files_no_bounds(core_name, reactions, reversibilities, metabolites)[source]
efmlrs.util.data.write_initial_files_with_bounds(core_name, reactions, reversibilities, metabolites)[source]
efmlrs.util.data.write_mfile(name, metabolism)[source]
efmlrs.util.data.write_rfile(name, reactions)[source]
efmlrs.util.data.write_rvfile(name, reversibles)[source]
efmlrs.util.data.write_sfile(name, smatrix)[source]
efmlrs.util.data.write_sfile_float(name, smatrix)[source]
efmlrs.util.data.write_uncmp_int_matrix(core_name)[source]

efmlrs.util.log module

Collection of small scripts for creating log file.

efmlrs.util.log.log()[source]
efmlrs.util.log.log_add()[source]
efmlrs.util.log.log_close()[source]
efmlrs.util.log.log_del()[source]
efmlrs.util.log.log_delete(rea1, rea2)[source]
efmlrs.util.log.log_delete_meta(meta)[source]
efmlrs.util.log.log_delete_rea(rea)[source]
efmlrs.util.log.log_init(name)[source]
efmlrs.util.log.log_keep()[source]
efmlrs.util.log.log_merge(remove, keep, keep_factor)[source]
efmlrs.util.log.log_merge_many(remove, keep, remove_factor, factors, force=False)[source]
efmlrs.util.log.log_merge_rea(rea)[source]
efmlrs.util.log.log_module()[source]
efmlrs.util.log.log_strip(rea)[source]
efmlrs.util.log.log_time()[source]
efmlrs.util.log.merge_reaction_names(R1_keep, R2_remove)[source]

Module contents