A parser for SBML
Project description
rust_sbml
Parser for the Systems Biology Markup Language (SBML):
Getting started
Rust
Add it to your Cargo.toml with no default features to avoid all PyO3 nuisances.
[dependencies.rust_sbml]
version = "0.6.0"
default_features=false
For example,
use rust_sbml::Model;
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 = Model::parse(example);
println!("{:?}", result.unwrap());
See write_to_file.rs for an example on serializing to a file.
Python
It has only been tested on Linux.
Using pip
pip install rust_sbml
From source
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())
Milestones
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.
- (Missing) Metadata.
- Test suite with python calls.
- Test suite with libsbml comparison trough cobrapy.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
README.md is automatically generated on CI using cargo-readme. Please, modify README.tpl or lib.rs instead (check the github worflow for more details).
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
Built Distributions
Hashes for rust_sbml-0.6.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e66d92c6be327105240fe7aff317578388da20873136be9917357d9dfb366694 |
|
MD5 | 101b5da0595c1f72147715411f603c59 |
|
BLAKE2b-256 | d9bd1f5f541ad5fc9d75e1621b74cca6f98242553e709b7faa3bebe4911ee939 |
Hashes for rust_sbml-0.6.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ad5113fe4aaf54c05a069170988b69021107b34567e87df94fe66fc19c30c89 |
|
MD5 | e4aed70e2d806478df5d65a0ab91293a |
|
BLAKE2b-256 | 6bb4d80d23575ab296bd9ac217bee7174b47ef0318c6a6cf5716c15b253baab4 |
Hashes for rust_sbml-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3724857dd8cc9a1ebdf36161a0e26d9eca2930038be5001c6dc15b4230762dc |
|
MD5 | 77bccd630fe259db29608185efc73c6f |
|
BLAKE2b-256 | 75e928b80e20b1f84cd55df76b0162e42248a8a6fa23b62f40293278911b5f93 |
Hashes for rust_sbml-0.6.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d21e7975e18d3b63584324229c680254c21907496cdb4f0dd0429b63bcdde54a |
|
MD5 | 71413c709aeb4b0e1acc44b8137004ec |
|
BLAKE2b-256 | ce2e393ff60c703c73ca27b3cdffee1265dac5b745d2fcb46b8ef637a41f6d2d |