Coder Social home page Coder Social logo

kefir_paper's People

Contributors

alessiomilanese avatar cdanielmachado avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

kefir_paper's Issues

Gapfilling of models

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

How to define and construct a custom culture medium component that can be recognized by CarveMe?

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.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.