Showing posts with label modeling. Show all posts
Showing posts with label modeling. Show all posts

Monday, January 4, 2021

Backpropagation through graphical models for new year's resolutions and planning out priorities for the next year

Around New Year's every year, I take some time to reflect on the successes and failures of the past year and decide what I should prioritize for the next year. Usually I do this using a combination of paragraphs and bullet point lists.

I recently took a deep learning class where I learned about a technique called backpropagation, which is used to find optimal parameters for a predictive model. It occurred to me that an analogous thought process could be used to help guide New Year's planning.

This is the first time I have gone through this exercise, so I'm making it up as I go along. If you decide to try this (or if you have already tried something similar), I would be really delighted to hear any feedback (good or bad) or suggestions you might have for improving the method. 

Monday, July 4, 2016

Making a stoichiometric model of peppermint trichomes


Someday this work will be published with a more coherent and organized version of these methods. But maybe in the meantime, this will be useful to someone. Here's (more or less) my lab notebook for how I generated a stoichiometric model of metabolism in peppermint glandular trichomes.

A separate, complementary but more useful, guide for the same thing, including all of the code, can be found on in a bitbucket repository here





Conversion of the Arabidopsis model by Arnold and Nikoloski, 2014, into a model using MetaCyc metabolite names

I think the stoichiometric model of Arabidopsis thaliana by Anne Arnold and Zoran Nikoloski (2014) is a great model. However, they use idiosyncratic and non-standardized metabolite names. I translated these names into MetaCyc compatible names. Here I describe and link to the conversion. The whole conversion table is available on Google Sheets, here.


Future perspectives for stoichiometric modeling

These are a set of notes I wrote for a specific proposed stoichiometric modeling project. I've edited out some of the details because someone is actually working on this project, but I think what remains is still worth reading.

Monday, April 6, 2015

evaluating boolean gene-reaction associations and assigning expression levels to reactions in stoichiometric models

Problem: You've got a stoichometric model, and an RNAseq dataset, and you want to use the transcriptome data to determine which reactions in the model are likely to be active, and at what level.

Solution: Use pandas to read the model and the RNAseq data. Use a pyparsing grammar to parse the boolean gene-reaction association expressions.Write a function calculate a reaction expression level based on the parsed gene-reaction association expression, and the RNAseq data. Write a new model file with a column for gene expression.

Read on for details....

Wednesday, April 1, 2015

parameter fitting and opitimisation with PySCeS: hack for allowing integration at specific time points

PySCes is a really awesome modeling environment for kinetic models of biochemical networks. Scripting it is a heck of a lot easier to pick up and learn than the COPASI python bindings.


Monday, October 20, 2014

What kinds of problems can (mathematical) models (of biochemical systems) solve?

I think the useful applications of computer modeling to biochemistry are in the following kind of situation: You have identified a phenotype of interest, you want to know what the molecular basis is for that phenotype, you know the form of the hypothesis (“a change in the concentration of substance X causes decreased activity of enzyme Y”), but there are too many possible instantiations of the hypothesis to test all of them experimentally (there may be 100 possibilities for “substance X” and 1000 possibilities for “enzyme Y”, giving 100,000 possible hypotheses). If you have some idea of how the system works, enough to make some kind of mathematical model of the system, and some experimental data (for example omics data comparing the condition displaying the phenotype to the condition not displaying the phenotype), you can use the computer to answer questions like: What instantiations of my hypothesis are most likely to be true, based on this dataset (or based on all available datasets)?

Thursday, August 22, 2013

Instantiating generic BioCyc (MetaCyc) reactions

Most databases of metabolic reactions include reactions that are generic. That is, some of the reactants and/or products are not specific molecules, but classes of molecules. This is a wonderfully abstract way of representing a large number of chemical transformations with a simple notation.
An example of a generic reaction is the CARBOXYLESTERASE-RXN in MetaCyc, which has the formula:  a carboxylic ester + water <=> an alcohol + a carboxylate + a proton

As useful and elegant as generic reactions are, they present a problem for people trying to generate mathematical models from a database.  The problem is that most mathematical modeling frameworks do not know how to deal with generic reactions.*  So reactions in mathematical models should generally be balanced and unambiguous.

Latendresse et al. (2012) describe a strategy for generating specific reactions ("instances") from generic reactions from the BioCyc family of databases.  Their strategy is to enumerate all possible combinations of reactants and products for a generic reaction, then check for mass balance. The set of mass balanced instances is further filtered by removing instances that include a reactant or product that appears in more than one balanced instance, as such instances are regarded as ambiguous. They also treat polymerization reactions as a special case and handle them differently from other instantiations.