# HG changeset patch # User luca_milaz # Date 1728837898 0 # Node ID 567ffd4333d4dd3bf15f9d650d9a4605de191c0e # Parent 829ea241c3a1b3c274b4ef1e672c8dfde25cc5c1 Uploaded diff -r 829ea241c3a1 -r 567ffd4333d4 COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 16:37:47 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 16:44:58 2024 +0000 @@ -124,7 +124,7 @@ None """ for reaction in rxns_ids: - if reaction in ras_row.index: #and reaction not in mediumRxns_ids + if reaction in ras_row.index and reaction not in mediumRxns_ids: scaling_factor = ras_row[reaction] lower_bound=model.reactions.get_by_id(reaction).lower_bound upper_bound=model.reactions.get_by_id(reaction).upper_bound @@ -185,7 +185,7 @@ mediumRxns_ids = medium.keys() - # Perform Flux Variability Analysis (FVA) + # Perform Flux Variability Analysis (FVA) on this medium df_FVA = cobra.flux_analysis.flux_variability_analysis(model, fraction_of_optimum=0, processes=1).round(8) # Set FVA bounds