cdanielmachado / kefir_paper Goto Github PK
View Code? Open in Web Editor NEWSupplementary Material for Blasche et al
Supplementary Material for Blasche et al
Hi Daniel,
Could you provide further details regarding how the models were reconstructed? In particular, were the models gap-filled on this milk media?
I am specifically simulating the 4 L. lactis models with the script below.
First I simulated each model using the milk media metabolites as the environment. However, I noticed that some exchange reactions are unconstrained for metabolites not present in the milk media file. I manually set the bounds for these reactions to 0 for the second simulation. However, I find that only 1/4 models are able to grow after manually constraining exchange reactions of metabolites not present in the milk media.
import sys
import glob
import cobra
import reframed
from reframed import load_cbmodel
from reframed import Environment
from reframed import FBA
# Loop to read in models in hardcoded folder with .xml extension
for file in glob.iglob(r'*.xml'):
# Use try to handle exceptions with reading SMBL model
try:
# Load model
model = load_cbmodel(file, flavor='cobra')
# SIM 1: Use Milk media env
env = Environment.from_compounds(["h2o","o2","co2","ca2","cl","cobalt2","cu2","fe2","fe3","h","k","mg2","mn2","mobd","na1","nh4","ni2","pi","so4","zn2","ala__L","asn__L","asp__L","glu__L","gln__L","gly","his__L","ile__L","leu__L","lys__L","orn","phe__L","peamn","pro__L","ser__L","thr__L","trp__L","tyr__L","val__L","lcts","glc__D","gal","gal_bD","cit","lac__D","lac__L","for","ac","oxa","pydx","cbl1","thm","pnto__R","fol","ribflv","nac","btn","but","caproic","octa","dca","ddca","ttdca","ptdca","hdca","ocdca","arach","ttdcea","hdcea","ocdcea","lnlc","arachd","ade","gua","ins","thymd","ura","xan","4abut"])
# SIM 1: Solve FBA
sol = FBA(model, constraints=env)
# SIM 1: Open text file with .exf (exchange fluxes) extension
sys.stdout = open(file+"_milk.exf", "w")
# SIM 1: Get exchange fluxes
exf = sol.show_values(pattern="R_EX", sort=True)
# SIM 2: Constrain uptake of nutrients not in milk media
model.reactions.R_EX_glyald_e.lb = 0
model.reactions.R_EX_glyc3p_e.lb = 0
model.reactions.R_EX_gthrd_e.lb = 0
model.reactions.R_EX_h2o2_e.lb = 0
model.reactions.R_EX_acald_e.lb = 0
model.reactions.R_EX_ala__D_e.lb = 0
model.reactions.R_EX_mal__L_e.lb = 0
#model.reactions.R_EX_2pglyc_e.lb = 0
# SIM 2: Run FBA
sol = FBA(model)
# SIM 2: Open text file with .exf (exchange fluxes) extension
sys.stdout = open(file+"_milkm.exf", "w")
# SIM 2: Get exchange fluxes
exf = sol.show_values(pattern="R_EX", sort=True)
# Catch cobra.io.sbml.CobraSBMLError and continue loop
except cobra.io.sbml.CobraSBMLError:
# Print message with model ID for log
print("The model",file,"raised an SBML error and could not be read in by COBRA")
#Nothing to see here fellas
pass
Best wishes,
Francisco
Hello, I've read your articles on the kefir microbial community, and I would like to inquire about how to define my own culture medium for simulating the genome metabolism of a single strain. I've reviewed your definitions of culture medium composition, including some complex substances. I'm curious about how you generate corresponding abbreviated names recognized by CarveMe.
I've recently been using CarveMe to construct genome-scale metabolic models. However, the culture medium I'm using contains an uncommon compound, namely, Bis(2-ethylhexyl) phthalate (C24H38O4). It is the sole carbon source in my medium, and I'm interested in building a culture medium component that includes it. I would like to ask how you achieve this. Thank you very much, and I look forward to your reply.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.