r18 - 26 Aug 2008 - 17:14:18 - AkiraFunahashiYou are here: TWiki >  VCell Web  > SbmlConverter

The Virtual Cell SBML Converter

  • SBMLConverter is a command line program used to convert SBML files to VCML and vice versa (import SBML files to VCML and export VCML files to SBML)

  • This code is based on VCell_4.6_ALPHA_37 (Eclipse svn://code/vcell/trunk/VCell; Revision : 3293)

  • This version uses libSBML 3.0.2 with Expat, Java bindings.

  • Note : This version of the converter presently runs under Java 1.5, but has problems under Java 1.6

  • To run the converter, the following files are required (see attachments below):
  • Miscellaneous files (under attachments):
    • some example SBML and VCML files
    • In case you need to view the source for the jar file, you can access it with vc_src.zip

  • To run this standalone executable from a command prompt :
    • It is easier if the related JAR and DLL files are in the same directory!
    • Navigate to the directory where SbmlConverter.jar is located
    • At the prompt type :

java.exe -cp thirdParty.jar;sbmlj.jar;SbmlConverter.jar org.vcell.sbml.test.SbmlConverter -export | import Relative_Path_of_File_To_Export_or_Import.xml [-simulate]

Note :

  • use either -export or -import
  • The -simulate option is available only for import
  • specify the relative path of the input file name if not in local directory.

For example:

Export : java.exe -cp thirdParty.jar;sbmlj.jar;SbmlConverter.jar org.vcell.sbml.test.SbmlConverter -export VCML\dlb_vcml.xml (where the input file is in directory VCML within current directory)

Import :

For just importing : java.exe -cp thirdParty.jar;sbmlj.jar;SbmlConverter.jar org.vcell.sbml.test.SbmlConverter -import SBML\BM2_sbml.xml

For importing and simulating a default simulation: java.exe -cp thirdParty.jar;sbmlj.jar;SbmlConverter.jar org.vcell.sbml.test.SbmlConverter -import BM2_sbml.xml -simulate

(where the input file is in directory SBML within current directory)

Notes about the Export and Import options:

  • Export from VCell -> SBML:
    • Each non-spatial (non-stochastic) application (with default parameter values) is exported into a separate file, and any simulation with parameter overrides (including parameter scans) is exported into separate files (different files for different parameter scan values).
    • The output (SBML) file names are named with the following convention : Biomodel_Name_i_j_k.xml, where Biomodel_Name is name of biomodel; i is the i-th application; j is the j-th simulation (only if simulation has overriden parameters); k is the k-th parameter-scan (if simulation has parameter scans).

  • Import from SBML -> VCell:
    • Output files are named as : sbmlFileName.vcml
    • If the -simulate option is used for import, the math is generated for the default simulationContext (application) in the imported biomodel, and a default simulation is created which has the following settings : End time = 10 secs ; No. of Time Steps = 1000 ; Solver = IDAStandaloneSolver? (variable time step) ; Forced uniform output time step = 0.01
    • This updated biomodel application (with generated math and default simulation) is stored in another VCML file : sbmlFileName_IDA_simulation.vcml
    • When the simulation is run, the IDA solver input (settings) are stored in sbmlFileName.idaInput file
      • Note: If user wants to change default settings of end time or no. time steps (output time step), it can be changed in the .idaInput file and the simulation can be run separately using the IDAStandalone.exe
    • The output from the IDAStandaloneSolver? is saved to a sbmlFileName.ida file
    • The generated results are stored in a CSV file : sbmlFileName.csv
      • Note: The values for time and species concentration in the CSV file are in the units specified in the SBML model that was imported. For example, if the SBML model had its time units in minutes (instead of default secs) and species units were in milli-molar, even though VCell deals with time in secs and species concetration in uM, the output in the CSV file is converted to the units that were specified in the SBML model (i.e., time is in minutes and species are in milli-molar).
toggleopenShow attachmentstogglecloseHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
elsejar sbmlj.jar manage 158.0 K 30 Jan 2008 - 13:31 AnuradhaLakshminarayana libSBML related
dlldll sbml.dll manage 1456.0 K 30 Jan 2008 - 13:31 AnuradhaLakshminarayana libSBML sbml.dll - for Windows
dlldll sbmlj.dll manage 324.0 K 30 Jan 2008 - 13:32 AnuradhaLakshminarayana libSBML sbmlj.dll - for Windows
dlldll expat.dll manage 112.0 K 30 Jan 2008 - 13:32 AnuradhaLakshminarayana libSBML expat.dll - for Windows
xmlxml BMD2_sbml.xml manage 41.0 K 30 Jan 2008 - 13:35 AnuradhaLakshminarayana example SBML file 1
xmlxml BMD1_sbml.xml manage 42.6 K 30 Jan 2008 - 13:35 AnuradhaLakshminarayana example SBML file 2
xmlxml BMD3_sbml.xml manage 14.9 K 30 Jan 2008 - 13:36 AnuradhaLakshminarayana example SBML file 3
elsejar thirdParty.jar manage 665.9 K 31 Jan 2008 - 17:34 AnuradhaLakshminarayana third party classes required to run Sbml Converter
elseso libexpat.so manage 258.3 K 31 Jan 2008 - 17:39 AnuradhaLakshminarayana libSBML expat library - for Linux
elseso libsbml.so manage 15974.7 K 31 Jan 2008 - 17:41 AnuradhaLakshminarayana libSBML sbml library - for Linux
elseso libsbmlj.so manage 1346.7 K 31 Jan 2008 - 17:42 AnuradhaLakshminarayana libSbml sbmlj library - for Linux
elsejar SbmlConverter.jar manage 7148.7 K 21 Aug 2008 - 18:08 AnuradhaLakshminarayana import/export from VCML - SBML
exeexe IDAStandalone.exe manage 440.0 K 21 Aug 2008 - 18:09 AnuradhaLakshminarayana Standalone IDA solver for Windows
elseEXT IDAStandalone manage 318.5 K 21 Aug 2008 - 18:12 AnuradhaLakshminarayana Standalone IDA solver - for Linux
elsejnilib libexpat.jnilib manage 164.5 K 21 Aug 2008 - 18:13 AnuradhaLakshminarayana libSBML expat library - for Mac
elsejnilib libsbml.jnilib manage 2064.1 K 21 Aug 2008 - 18:14 AnuradhaLakshminarayana libSBML sbml library - for Mac
elsejnilib libsbmlj.jnilib manage 584.0 K 21 Aug 2008 - 18:15 AnuradhaLakshminarayana libSBML sbmlj library - for Mac
xmlxml BorisModel_vcml.xml manage 140.5 K 21 Aug 2008 - 18:16 AnuradhaLakshminarayana example VCML file 1
xmlxml dlb_vcml.xml manage 9.2 K 21 Aug 2008 - 18:17 AnuradhaLakshminarayana example VCML file 2
zipzip vc_src.zip manage 11276.1 K 21 Aug 2008 - 18:32 AnuradhaLakshminarayana vcell source
elseEXT IDAStandaloneMacG5 manage 343.9 K 26 Aug 2008 - 10:20 IonMoraru Standalone IDA solver for G5 Mac
elseEXT IDAStandaloneMacIntel manage 355.4 K 26 Aug 2008 - 10:22 IonMoraru Standalone IDA solver for Intel Mac
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r18 < r17 < r16 < r15 < r14 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback