Jump to content

JSBML

From Wikipedia, the free encyclopedia
JSBML
Developer(s)The JSBML Team
Initial releaseFebruary 1, 2011; 13 years ago (2011-02-01)
Repository
Written inJava
Operating systemplatform independent
TypeXML parser library
License LGPL License v2.1
Websitesbml.org

JSBML[1][2] (Java Systems Biology Markup Language) is an open-source Java (API) for the SBML (Systems Biology Markup Language [3][4][5]) format. Its API strives to attain a strong similarity to the Java binding of the corresponding library libSBML, but is entirely implemented in Java and therefore platform independent. JSBML provides an elaborated abstract type hierarchy, whose data types implement or extend many interfaces and abstract classes from the standard Java library. In this way, JSBML integrates smoothly into existing Java projects, and provides methods to read, write, evaluate, and manipulate the content of SBML documents.

Development

[edit]

In May 2009 the SBML team conducted a community survey for requests of potential further software development. It turned out that, even though the library libSBML provides a generated binding for the programming language Java, its internal C code makes it difficult to implement platform independent or Web Start applications.

Around that time, several groups from multiple institutes had already implemented small Java versions of libSBML, each being a customized library covering the needs of the particular research project. In order to avoid unnecessary duplications of work and to unify existing development, the international community project JSBML was launched in September 2009, mainly by groups from EBI, Caltech, and a team of students at the University of Tübingen led by Andreas Dräger.

Since JSBML has been implemented considerably later than the first version of libSBML, it could therefore benefit from the existence of the specifications of SBML in the Levels 1–3. Hence, JSBML has not just been developed by porting existing C code from the libSBML project into a new Java. Instead, the developers used this as a chance to completely redesign the class and API structure. This is why JSBML provides a much richer abstract type hierarchy compared to libSBML. Furthermore, the development of JSBML enabled making design decisions that are not possible in libSBML because no backward compatibility had to be considered at this time.

The first stable release version 0.8 of JSBML was made publicly available for download in February 2011. Since then, support for multiple SBML extension packages is being implemented and will be included with the release of JSBML 1.0.

Aims

[edit]

The development of JSBML is driven by three aims:

  1. Provide a pure Java API without any native dependency.
  2. Achieve the highest possible compatibility to libSBML but at the same time make the library behave like other native Java libraries, i.e., as expected by experienced Java developers.
  3. Support for all level/version combinations and extension packages of SBML

Usage

[edit]

The following example assumes that a JAR file of JSBML has been included into the class path and that a local installation of a Java Virtual Machine is available on the platform where the code is executed.

The following coding example shows how an SBML file can be parsed and its content can be displayed in form of a tree in a window. The result can look, e.g., as the image on the right. It can be seen that the actual parsing of SBML is done in a single line, by calling a static method in the class SBMLReader. The creation of the tree for the display is also trivial, because the entire data structure in JSBML is organized as a tree.

import javax.swing.*;
import org.sbml.jsbml.*;

/** Displays the content of an SBML file in a {@link JTree} */
public class JSBMLvisualizer extends JFrame {

  /** @param document The sbml root node of an SBML file */
  public JSBMLvisualizer(SBMLDocument document) {
    super(document.getModel().getId());
    getContentPane().add(new JScrollPane(new JTree(document)));
    pack(); // make the frame compact
    setLocationRelativeTo(null); // Place it at the center of the screen
    setVisible(true);
  }
  /** @param args Expects a valid path to an SBML file. */ 
  public static void main(String[] args) throws Exception {
    new JSBMLvisualizer(SBMLReader.read(args[0]));
  }
}
Example output when reading an SBML file with the code on the left from the SBML Test Suite with JSBML (on Mac OS X)

References

[edit]
  1. ^ Dräger, A.; Rodriguez, N.; Dumousseau, M.; Dorr, A.; Wrzodek, C.; Le Novère, N.; Zell, A.; Hucka, M. (2011). "JSBML: A flexible Java library for working with SBML" (PDF). Bioinformatics. 27 (15): 2167–2168. doi:10.1093/bioinformatics/btr361. PMC 3137227. PMID 21697129.
  2. ^ Rodriguez, N.; Thomas, A.; Watanabe, L.; Vazirabad, I. Y.; Kofia, V.; Gómez, H. F.; Mittag, F.; Matthes, J.; Rudolph, J. D.; Wrzodek, F.; Netz, E.; Diamantikos, A.; Eichner, J.; Keller, R.; Wrzodek, C.; Fröhlich, S.; Lewis, N. E.; Myers, C. J.; Le Novère, N.; Palsson, B. Ø.; Hucka, M.; Dräger, A. (2022). "JSBML 1.0: providing a smorgasbord of options to encode systems biology models" (PDF). Bioinformatics. 31 (20): 3383–3386. doi:10.1093/bioinformatics/btv341. PMC 4595895. PMID 26079347.
  3. ^ Hucka, M.; Finney, A.; Sauro, H. M.; Bolouri, H.; Doyle, J. C.; Kitano, H.; Arkin, A. P.; Bornstein, A. P.; Bray, B. J.; Cornish-Bowden, D.; Cuellar, A.; Dronov, A. A.; Gilles, S.; Ginkel, E. D.; Gor, M.; Goryanin, V.; Hedley, I. I.; Hodgman, W. J.; Hofmeyr, T. C.; Hunter, J. -H.; Juty, P. J.; Kasberger, N. S.; Kremling, J. L.; Kummer, A.; Le Novère, U.; Loew, N.; Lucio, L. M.; Mendes, P.; Minch, P.; Mjolsness, E. (2003). "The systems biology markup language (SBML): A medium for representation and exchange of biochemical network models" (PDF). Bioinformatics. 19 (4): 524–531. doi:10.1093/bioinformatics/btg015. PMID 12611808.
  4. ^ Finney, A.; Hucka, M. (2003). "Systems biology markup language: Level 2 and beyond". Biochemical Society Transactions. 31 (Pt 6): 1472–1473. CiteSeerX 10.1.1.466.8001. doi:10.1042/bst0311472. PMID 14641091.
  5. ^ Hucka, M.; Finney, A.; Bornstein, B. J.; Keating, S. M.; Shapiro, B. E.; Matthews, J.; Kovitz, B. L.; Schilstra, M. J.; Funahashi, A.; Doyle, S. M.; Kitano, M. J. (2004). "Evolving a lingua franca and associated software infrastructure for computational systems biology: The Systems Biology Markup Language (SBML) project" (PDF). Systems Biology. 1 (1): 41–53. doi:10.1049/sb:20045008. PMID 17052114.