Mercurial > repos > bimib > cobraxy
diff COBRAxy/utils/model_utils.py @ 427:4a385fdb9e58 draft
Uploaded
author | francesco_lapi |
---|---|
date | Wed, 10 Sep 2025 11:38:08 +0000 |
parents | 00a78da611ba |
children | f49c951c9fe6 |
line wrap: on
line diff
--- a/COBRAxy/utils/model_utils.py Wed Sep 10 09:25:32 2025 +0000 +++ b/COBRAxy/utils/model_utils.py Wed Sep 10 11:38:08 2025 +0000 @@ -221,7 +221,7 @@ for idx, row in df.iterrows(): reaction_id = str(row['ReactionID']).strip() - reaction_formula = str(row['Reaction']).strip() + reaction_formula = str(row['Formula']).strip() # Salta reazioni senza formula if not reaction_formula or reaction_formula == 'nan': @@ -236,8 +236,8 @@ reaction.upper_bound = float(row['upper_bound']) if pd.notna(row['upper_bound']) else 1000.0 # Aggiungi gene rule se presente - if pd.notna(row['Rule']) and str(row['Rule']).strip(): - reaction.gene_reaction_rule = str(row['Rule']).strip() + if pd.notna(row['GPR']) and str(row['GPR']).strip(): + reaction.gene_reaction_rule = str(row['GPR']).strip() # Parse della formula della reazione try: