A parser for SBML
Project description
A parser for SBML
This is a parser for the Systems Biology Markup Language (SBML):
Example
let example=r#"<?xml version="1.0" encoding="UTF-8"?>
<sbml xmlns="http://www.sbml.org/sbml/level3/version2/core" level="3" version="2">
<model timeUnits="second" extentUnits="mole" substanceUnits="mole">
</model>
</sbml>"#;
let result = parse_document(example);
Getting started
Rust
Add it to your Cargo.toml with no default features to avoid all PyO3 nuisances.
[dependencies.rust_sbml]
version = "0.3.0"
default_features=false
Python
Pypi WIP
Clone the repository.
git clone https://github.com/carrascomj/rust_sbml.git
You need maturin for building it.
python -m pip install maturin
- Build locally
maturin build --release pip install .
- Build on virtualenv (no pip install required)
# --release can be omitted to speed up compilation time maturin develop --release
Having it installed, you can use it as a normal Python package.
from rust_sbml import Model
sbml = Model("examples/EcoliCore.xml")
reaction = sbml.getListOfReactions()[0]
print(reaction.getListOfReactants())
Milestone
-
getListOfSpecies()
(id, name) -
getListOfCompartments()
(id, name) -
getListOfReactions()
(id, name)-
.getListOfReactants()
(id, name) - .
getListOfProducts()
(id, name)
-
- Capable of retrieving FBC bounds.
- Published to pypi
- Kinetic Laws.
- Metadata.
- Test suite with python calls.
- Test suite with libsbml comparison trough cobrapy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rust_sbml-0.3.0.tar.gz
(69.9 kB
view hashes)
Built Distributions
Close
Hashes for rust_sbml-0.3.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7162f81d883d51b4d0fe00cae9da12f3d463030d08a9919736a4f3f5b1ab107 |
|
MD5 | bf09617ed60c686377ad903c44d6ffd9 |
|
BLAKE2b-256 | 0dcb6c22555cd9c0e43fa12d56d8c3d28782bb86d9a1f55353d5cd087f5d694d |
Close
Hashes for rust_sbml-0.3.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ebced6f403c733ff1e8f3f44b7dc91d29b58cd9f921e560d1278de19cf2503 |
|
MD5 | 6daf6a9bf3990ddcec7913b6ba703828 |
|
BLAKE2b-256 | 4661ca4b6a8f058b299bf44a132091720b9b47b25b27a1cd8b126453f86eba66 |