Products & Services Solutions Academia Support User Community Company

Learn more about SimBiology   

Desktop Example — Changing Species Amounts Using an Event

Overview

This example shows you how to add an event to a model to trigger a time-based change. For information on events and how they are evaluated see Changing Model Component Values Using Events.

This example shows you how to add an event that modifies amount of ligand (L), thus modeling a delay in the addition of α-factor to the cell culture.

About the Example Model

This example uses the model from Modeling a G Protein Cycle in the SimBiology Model Reference documentation.

This table shows the reactions used to model the G protein cycle and the corresponding rate parameters (rate constants) for each reaction. For reversible reactions, the forward rate parameter is listed first.

No.NameReactionRate Parameters
1Receptor-ligand interactionL + R <-> RLkRL,kRLm
2Heterotrimeric G protein formationGd + Gbg -> GkG1
3G protein activationRL + G -> Ga + Gbg + RLkGa
4Receptor synthesis and degradationR <-> nullkRdo, kRs
5Receptor-ligand degradationRL -> nullkRD1
6G protein inactivationGa -> GdkGd

Prerequisites

Opening and Saving the Example Model

  1. Load the example project by typing the following at the command line:

    sbioloadproject gprotein

    The model is stored in a variable called m1.

  2. Open the SimBiology desktop with the model loaded by typing:

    simbiology(m1)

    The desktop opens with Model Session-Heterotrimeric_G_Protein_wt.

  3. Select File > Save Project As. The Save SimBiology Project dialog box opens.

  4. Specify a name (for example, gprotein_ex) and location for your project, and click Save.

Adding an Event to the Example Model

  1. In the Project Explorer expand SimBiology Model and click Events to open the Events pane.

  2. In the Enter Trigger box, type the following expression and press Enter:

    time >= 100
  3. In the EventFcns box, type the following expression and press Enter:

    L = 6.022E17

    In the Settings tab, note that the species L is available.

  4. In the row containing the species L, double-click the InitialAmount column, type 0, and then press Enter.

    The InitialAmount of L is set to be 0.0 when the simulation starts.

    The Events pane should now resemble the following:

  5. Save the project by selecting File > Save Project.

Simulating the Modified Model

  1. In the Project Explorer, expand Model Variable Settings and click Configuration Settings to open the pane that contains solver settings.

  2. In the Settings tab, from the SolverType list, select sundials. This solver lets you simulate models with events.

  3. In the Project Explorer, right-click Model Session-Heterotrimeric_G_Protein_wt and select Run Simulation.

    The simulation runs to completion and plots the result in a figure. Notice that the plot shows that the ligand amount increases when the event is executed.

    The plot does not show the species of interest due to a wide range in species amounts. Follow the next steps to view the species of interest.

  4. In the Project Explorer, under Simulation, right-click Data and select Save Data. The Save Data dialog box opens.

  5. Specify a name for the saved data, for example, event_ex, and click Save. The Project Explorer shows a new item with the saved data name under Simulation.

  6. In the Project Explorer, click the saved data, for example, event_ex, to open the Data pane for the saved data.

  7. Click the Plots tab.

  8. In the Plot Type box, select Time and click Add Plot Type.

  9. Select the new plot (second row), and in the Arguments section, click . The Select Values for y dialog box opens.

  10. Clear the check boxes for the species L and Gbg.

  11. Click OK.

  12. (Optional) Clear the Create Plot check box for the first plot.

  13. Click Plot. Your plot should resemble the one below. Notice the increase in activation of G protein (species Ga, shown in red) after ligand (L) is added at time = 100 (simulation time).

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS