# HG changeset patch # User luca_milaz # Date 1722374908 0 # Node ID 37f97e1db452e70294c517bc3b8a576dcd313857 # Parent a6e3f661e77ae29583aadef91fb39e62f97bbb68 Uploaded diff -r a6e3f661e77a -r 37f97e1db452 marea_2/flux_simulation.py --- a/marea_2/flux_simulation.py Tue Jul 30 20:18:15 2024 +0000 +++ b/marea_2/flux_simulation.py Tue Jul 30 21:28:28 2024 +0000 @@ -262,7 +262,7 @@ def fluxes_analysis(model:cobra.Model, model_name:str, output_types:List)-> List[pd.DataFrame]: df_pFBA = pd.DataFrame() - df_FVA= pd.DataFrame() + df_sensitivity= pd.DataFrame() for output_type in output_types: @@ -280,7 +280,7 @@ for rxn in fva.index.to_list(): columns.append(rxn + "_min") columns.append(rxn + "_max") - df_FVA.columns = columns + df_FVA= pd.DataFrame(columns = columns) for index_rxn, row in fva.iterrows(): df_FVA.loc[0, index_rxn+ "_min"] = fva.loc[index_rxn, "minimum"] df_FVA.loc[0, index_rxn+ "_max"] = fva.loc[index_rxn, "maximum"]