Skip to main content

sb2l Translates the biological models written in SBML into LaTeX code to be compiled and read by human eye

Project description

sb2l

Description

Translates biological models written in SBML into LaTeX code to be compiled and read by human eye

Dependencies

The current version runs 1.3.1 version of PyLaTeX

Either Tellurium or python-libsbml is also required

For PDF creation functionality, either latexmk or pdflatex needs to be installed on the computer

Installation

pip install sb2l

How to Use

The following structure gives a LaTeX string that can be copied to a online compiler like Overleaf:

import sb2l
latexStr = sb2l.s2string(sbmlStringOrFile)

If using with Tellurium or Antimony:

import sb2l
latexStr = sb2l.s2latex(model_name.getSBML())

For making PDF files (The filepath must NOT have a .pdf or .tex suffix)

import sb2l
filepath = "/Users/Username/Desktop/theDesiredNameOfFile" #[NOTICE: no ".anything"]
sb2l.s2pdf(sbmlStringOrFile, file_path = filepath);

The same structure can be used to generate a .tex file if used with sb2l.s2latex

To generate the PDF file and open with the default PDF reader

import sb2l
filepath = "/Users/Username/Desktop/theDesiredNameOfFile" #[NOTICE: no ".anything"]
sb2l.s2open(sbmlStringOrFile, file_path = filepath);

License

MIT License

Copyright (c) 2019

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

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

sb2l-0.1.3.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

sb2l-0.1.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file sb2l-0.1.3.tar.gz.

File metadata

  • Download URL: sb2l-0.1.3.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for sb2l-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f3648f2af3ac829bb997f68a24d779f43110bcfe318664cc3d565528839c9732
MD5 74717680123d415e9ab00f0dfb2eff5b
BLAKE2b-256 1298d0936229463e6facaeff5e26131a3c26a0b0e1885d20cb812fc931070d26

See more details on using hashes here.

File details

Details for the file sb2l-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sb2l-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for sb2l-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5113c7cd4fabc8495036e54e3adb34fe67ed339b9bd990418abbebb852457d69
MD5 f0df522567a07330dc32632640eed3e1
BLAKE2b-256 c34c30b19cc4a196c404c77b2cdddde9fffc3149632bba779ca067bae7df142b

See more details on using hashes here.

Supported by

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