Skip to main content

Translation between BNGL models and Kappa models

Project description

Summary

TRuML is a Python application designed to translate models written in either Kappa or the BioNetGen language (BNGL) into the other language. Currently TRuML is only compatible with Python 2 and work is being done to adapt TRuML for use with Python 3. Documentation can be found on Read the Docs

Usage

TRuML is invoked on the command line using the command truml. All options can be seen with the -h or --help flags:

truml -h

Conversion of a model written in BNGL to the Kappa language is done using the command:

truml -b model.bngl

The corresponding Kappa model will then exist in the same directory as the source BNGL file. The reverse translation is done in an equivalent manner:

truml -k model.ka

Varying levels of verbosity can be achieved. TRuML uses Python’s logging library to track the translation process, and it’s default logging level is WARNING. The -v (--verbose) and -d (--debug) flags will set the logging level to INFO and DEBUG, respectively. The logging output can be redirected to a file with the -l (--log_file) flag and a corresponding file name.

Note that TRuML only translates the model structure. It does not consider any simulation or simulation perturbation directives from either language.

Caveats

The two languages are not interchangeable (there are models in both languages that cannot be exactly translated to the other). In many cases, TRuML will raise issues explicitly. However the languages are both still under development and unidentified incompatibilities could cause the translation process to crash. Some cases that cannot be exactly translated include:

BNGL to Kappa

  • Patterns containing molecules in complex but without explicit binding:

    A().B()

Kappa to BNGL

  • Models containing infinities ([inf])

Finally, the BioNetGen language is interpreted slightly differently for different simulation engines. The NFsim engine does not consider molecularity constraints on the right hand side of the rule. As this is similar to Kappa’s purely local pattern representation (which cannot consider right hand side molecularity), TRuML assumes this convention.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TRuML-0.0.0.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TRuML-0.0.0-py2-none-any.whl (29.3 kB view details)

Uploaded Python 2

File details

Details for the file TRuML-0.0.0.tar.gz.

File metadata

  • Download URL: TRuML-0.0.0.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TRuML-0.0.0.tar.gz
Algorithm Hash digest
SHA256 07bb887c5a632127d424a85f45ddd97cc4425e5ed899a5461f57f27813e7068a
MD5 eb7cf37ffa14a6db7ee12fc2aad1a78e
BLAKE2b-256 bc974037090729c8f9b66d3181785e6fd9b374a0f2e32b161c71f06f955ec004

See more details on using hashes here.

File details

Details for the file TRuML-0.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for TRuML-0.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 2e21cae33f4198193f3e6af7aa92307b3807d03caba2b772d7f529c89648e9ce
MD5 a8a390c676544d618aaa6c2f8eac091a
BLAKE2b-256 9d1985b770ac8e4c9f89fcf603483e57805ee5e2491b538ad4ca2846fe7d4707

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page