Mercurial > repos > bimib > marea_2
changeset 192:37f97e1db452 draft
Uploaded
author | luca_milaz |
---|---|
date | Tue, 30 Jul 2024 21:28:28 +0000 |
parents | a6e3f661e77a |
children | 560aede85627 |
files | marea_2/flux_simulation.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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"]