# HG changeset patch # User luca_milaz # Date 1728830139 0 # Node ID 22cebbdb4b6d2c2025e11ad3f57756d771bb17a6 # Parent 58919e82d96e9226181c389a93364c1485ee92f9 Uploaded diff -r 58919e82d96e -r 22cebbdb4b6d COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sun Oct 13 14:06:53 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sun Oct 13 14:35:39 2024 +0000 @@ -175,14 +175,6 @@ rxns_ids = [rxn.id for rxn in model.reactions] # Set medium conditions - ''' - reactions_medium=model2.medium.keys() - for reaction in reactions_medium: - if(reaction != "EX_thbpt_e" and reaction != "EX_lac__L_e"): - model2.reactions.get_by_id(reaction).lower_bound=-float(ras_meta.loc[cell,"countmatrix_"+reaction]) - if(reaction == "EX_lac__L_e"): - model2.reactions.get_by_id(reaction).lower_bound=float(0.0) - ''' for reaction, value in medium.items(): if value is not None: if(reaction != "EX_thbpt_e" and reaction != "EX_lac__L_e"):