Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2012;7(7):e41165.
doi: 10.1371/journal.pone.0041165. Epub 2012 Jul 23.

State-transition diagrams for biologists

Affiliations

State-transition diagrams for biologists

Hugues Bersini et al. PLoS One. 2012.

Abstract

It is clearly in the tradition of biologists to conceptualize the dynamical evolution of biological systems in terms of state-transitions of biological objects. This paper is mainly concerned with (but obviously not limited too) the immunological branch of biology and shows how the adoption of UML (Unified Modeling Language) state-transition diagrams can ease the modeling, the understanding, the coding, the manipulation or the documentation of population-based immune software model generally defined as a set of ordinary differential equations (ODE), describing the evolution in time of populations of various biological objects. Moreover, that same UML adoption naturally entails a far from negligible representational economy since one graphical item of the diagram might have to be repeated in various places of the mathematical model. First, the main graphical elements of the UML state-transition diagram and how they can be mapped onto a corresponding ODE mathematical model are presented. Then, two already published immune models of thymocyte behavior and time evolution in the thymus, the first one originally conceived as an ODE population-based model whereas the second one as an agent-based one, are refactored and expressed in a state-transition form so as to make them much easier to understand and their respective code easier to access, to modify and run. As an illustrative proof, for any immunologist, it should be possible to understand faithfully enough what the two software models are supposed to reproduce and how they execute with no need to plunge into the Java or Fortran lines.

PubMed Disclaimer

Conflict of interest statement

Competing Interests: The authors have declared that no competing interests exist.

Figures

Figure 1
Figure 1. Three graphical illustrations of immunological knowledge which are very similar in spirit to state-transition diagrams: extract from Janeway’s classical immunology textbook illustrating the successive thymocyte differentiation stages - extract from a paper by Veronique Thomas-Vaslin et al.
illustrating the conveyor belt model of thymocyte differentiation to be discussed later - extract from a paper by Rong and Perelson illustrating the successive infection stages by the HIV virus.
Figure 2
Figure 2. Three classical elementary biological state transitions.
A cell is being infected by a virus, an inactive gene becomes active and a thymocyte switches between differentiation stages.
Figure 3
Figure 3. A more faithful and complete use of state-transition diagrams in the presence of origin and death states with possibility of proliferation and transit from stage A to B.
Figure 4
Figure 4. A state-transition diagram illustrating a conditional transition.
Here a DP cell can alternatively differentiate into either a SP4 or SP8 cell with respective probability formula image and formula image.
Figure 5
Figure 5. Example of compound state-transition diagram containing three single states and internal transitions.
A common transition leaving the compound state is shared by all single states although presenting different transition rates.
Figure 6
Figure 6. Two fully independent sub state-transition diagrams ( and ) executing in parallel.
Figure 7
Figure 7. Two sub state-transition diagrams ( and ) showing a weak dependency. The transition rates in the lower track depend on the state in the upper track.
Figure 8
Figure 8. Two sub state-transition diagrams ( and ) showing a strong dependency.
When the object is in state formula image in the lower track, the transition formula image becomes impossible. This is indicated by conditioning this transition with [NOT Y].
Figure 9
Figure 9. As a more realistic example of weak and strong dependencies, the figure illustrates three parallel sub-state-transition diagrams of a very classical immunological situation with lymphocytes differentiating, migrating and dividing (in 3 successive stages).
When entering its dividing cycle, all other transitions turn out to be impossible. This is indicated by the presence of [Not cycle] with formula image labeling the compound state of dividing cell. Some of the transition rates “weakly” depend on the states where the lymphocyte is currently found in the other parallel tracks. formula image indicates the birth rate to naive cells.
Figure 10
Figure 10. An illustration of a coupled transition (existing) in parallel tracks, representing a simple cell division and differentiation (left).
As cells transit from the formula image cycling stage back to state formula image, they should also move through the successive differentiated types - formula image, formula image and formula image are three successive generations of cells. The default interpretation goes as the top-right figure but should rather be transformed into the bottom-right due to the shared labeling formula image of the coupled transitions.
Figure 11
Figure 11. State-transition diagram of the Thomas-Vaslin et al. model of thymocyte differentiation.
This diagram attempts to essentially capture the same biological information as the one contained in figure 1b.
Figure 12
Figure 12. Statechart description of the Souza et al. model depicting differentiation, proliferation, TCR-MHC binding and movement between the different anatomical compartments of the thymus.
Although many transitions occur with parameterized rates, those related to differentiation are rule-based – making use of transition guards that refer to individual attributes. This model has no real hierarchical structure other than to conveniently specify a shared transition for SP4/SP8 cells.

References

    1. Harel D. Statecharts: a visual formalism for complex systems. Science of Computer Programming. 1987. pp. 231–274.
    1. Fowler M. UML Distilled: A Brief Guide to the Standard Object Modeling Language (3rd Edition). O’Reilly Media. 2004.
    1. Larman C. Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development (3rd Edition). Prentice Hall. 2004.
    1. Efroni S, Harel D, Cohen IR. Emergent dynamics of thymocyte development and lineage determination. PLoS computational biology. 2007;3:e13. - PMC - PubMed
    1. Swerdlin N, Cohen I, Harel D. The lymph node B cell immune response: Dynamic analysis in-silico. Proceedings of the IEEE. 2008;96:1421–1443.

Publication types