Skip to content

Commit

Permalink
Merge pull request #1 from PNNL-CompBio/sucrose_addition
Browse files Browse the repository at this point in the history
Modifying model_changes.py to include new update method
  • Loading branch information
JamesPino authored Jun 7, 2023
2 parents 1f9be5e + 763fd7d commit c9ddc52
Show file tree
Hide file tree
Showing 2 changed files with 4,247 additions and 378 deletions.
23 changes: 21 additions & 2 deletions syn_elong/model_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
import os
import logging

from concerto.utils.biolog_help import add_biolog_exchanges

from concerto.utils.biolog_help import add_biolog_exchanges, universal_model

log = logging.getLogger()

Expand All @@ -40,10 +39,30 @@ def update_1(model):
model = add_biolog_exchanges(model)
return model

def update_2(model):
# Add the sucrose transporter SUCRt2 and associated gene
log.info("Adding Sucrose Transporter")

# Copy sucrose transport from universal model
sucr_transport = universal_model.reactions.SUCRt2.copy()

# Set the lower bounds for the sucrose reactions
sucr_transport.lower_bound = -1000.0
model.reactions.EX_sucr_e.lower_bound = 0.011

# Add the transport reaction to the model
model.add_reactions([sucr_transport])

# Add the gene name of the sucrose transporter to the model
gene_add = cobra.core.Gene(id='cscB',name='cscB',functional=True)
model.reactions.SUCRt2.gene_reaction_rule = '( cscB )'

return model

def process_model_steps():
# Fix compartments
model = update_1(starting_model)
model = update_2(model)
write_model(model)


Expand Down
Loading

0 comments on commit c9ddc52

Please sign in to comment.