Antimony2SBML and SBML2Antimony

From System Biology Format Converter framework (SBFC)
Jump to: navigation, search

Conversion between Antimony and SBML


About Antimony
Antimony is a text-based model definition language originally based on Jarnac, and extended to be fully modular. Antimony models can be converted to and from SBML, flattening the modularity in the process. For more information, please visit the Antimony website.


You can download the converters Antimony2SBML and SBML2Antimony and their jar dependencies here.

End users

These converters require java 1.6+. To run these converters, you have to copy all the jar files from the folder:

to the folder SBFC_core/lib.

These converters are based on the external program sbtranslate provided in the Antimony website. The user must install the package antimony and configure the path to the sbtranslate command in the sbfc script located in the folder SBFC_core. This can be done in two ways:

    # FILE:
    # Add the path to the program sbtranslate 
    # by configuring the Java system property SBTRANSLATE_PATH:
    # Configure the environment variable SBTRANSLATE_PATH
    #export SBTRANSLATE_PATH=/path/to/sbtranslate

To test the correct installation, you can type the scripts:

    # Print the list of available converters. Antimony2SBML and SBML2Antimony should be printed.
    # Print the list of available models. AntimonyModel and SBMLModel should be printed.

To run the converter, you can use the script with the usual syntax:

    # Convert a model from Antimony to SBML
    ./ AntimonyModel Antimony2SBML [file.txt | folder]
    # Convert a model from SBML to Antimony
    ./ SBMLModel SBML2Antimony [file.xml | folder]

To compile the package sbfc-antimony from source, you also need Apache Ant 1.6.5 or higher. After editing the source code you can build the jar file by just typing in the sbfc-antimony folder:

    # Generate the jar file
    ant jar
    # Generate the java documentation
    ant javadoc