Headless BioUML

From BioUML platform
Revision as of 17:40, 26 December 2019 by Ilya Kiselev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Headless BioUML (or Shell BioUML) is a version of standalone BioUML application without graphic user interface. It allows manipulation with data from repository, import files, work with models, performing numerical simulation and analysis. All of it can be done through java-script API. It also allows manipulating Java objects via org.mozilla.Rhino library. Headless BioUML may be used in two ways:

1. As a shell executing input commands. Simply run

sh ./shell.sh

(or shell.bat in Windows) from the directory in which BioUML is installed.

2. To execute script from file run

sh ./shell.sh -js.f <PATH_TO_FILE> 

from the directory in which BioUML is installed. Replace <PATH_TO_FILE> with path to file containing script you want to execute.

Examples

Here is a simple script example to simulate SBML model and save results into the file

var model_path = ""; //Here is a path to existing SBML model
var result_path = ""; //Here is a path to output file
var model = sbml.load("model_path");
var span = simulationEngine.createSpan(0,100,1); //Create time span from 0 to 100 with step 1
var result = simulationEngine.simulate(model, span, true); 
simulationEngine.writeResult(result, resul_path, ",", true);

Note: sbml and simulationEngine are host objects providing API for work with sbml and numerical simulations correspondingly.

To get full list of available methods simply type name of host object.

Personal tools
Namespaces

Variants
Actions
BioUML platform
Community
Modelling
Analysis & Workflows
Collaborative research
Development
Virtual biology
Wiki
Toolbox