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.3.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.
- 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.5.2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 872ddfbae6ef15ebeb83111be3f92a0e9e2c9f67d9a19cf764fcd8201297bb1d |
|
MD5 | 445700074e2b5608220b8cb2cb8ba39a |
|
BLAKE2b-256 | fdbb6b69e3f396684a1e455db64a5ebe0e3d9544c1959392f57c58844022018e |
Hashes for rust_sbml-0.5.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56b323ad2a1d6fcaa04b4e33d5f0e1c20dec4019f6ff90668ee455d9d94f7bdd |
|
MD5 | 93322e019996b14f86cec40dc9dc2861 |
|
BLAKE2b-256 | 3696e4c497b6cd69104c5b2d6984e4f5e9a8026ade9e1fde02629b5df6bd5431 |
Hashes for rust_sbml-0.5.2-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10abaf334805d10ca90b277e41a80b85c17d5bd79afafc002af56633cead6fc1 |
|
MD5 | 0e563ea535dfc1f22df9d5198577831f |
|
BLAKE2b-256 | cf92493742694757aadd5742b1d34f1f40f40a291ba6f2650e912cc5ecccd1fd |
Hashes for rust_sbml-0.5.2-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cccfc04ed7d55800cc4a4e9cf5e543d7e65c34e0f6661cf0944b7b2bc746ab4a |
|
MD5 | ed6139923f7068c6be7976315665b2f9 |
|
BLAKE2b-256 | 2937a7c81ab92352913d48bed927638517f79538d56399d07d8e38357ba3186c |
Hashes for rust_sbml-0.5.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e68459663daab079bece8a2c63b47066dc5b5142db2e2c9afa7670ca4c8379 |
|
MD5 | 78fa3257c9a8acbb6a8d63b1c4621bc1 |
|
BLAKE2b-256 | fe9c144eda4daed701245c8eaf943be98cca82b5d7af64cf0c4805f7cfa9a810 |
Hashes for rust_sbml-0.5.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7fa558bbef6a143508c9f18fff880f7d046b26b509e01edf545fc76dfb757dd |
|
MD5 | 6b634259c428aa9f12d2439aa0b58aad |
|
BLAKE2b-256 | b6290898ab6b2ce58b24918f99ff5042f68b1551141a11c6f8813cba86fc75c5 |
Hashes for rust_sbml-0.5.2-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37605793cd9cf84f5e42c786b4c2e46ef35def4f37bc8bb3dc94c930874cdaae |
|
MD5 | 92bc8a3a308053d0e44d9f5e81b9a5d3 |
|
BLAKE2b-256 | 2cf7258f2a6d908312495197ccc1b8294e8b9d50a35771198cfc6b93aa527c01 |
Hashes for rust_sbml-0.5.2-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c02e5703c8db860047ebfedaeb0df51745a2d7a16e84a9e7c039efdde294f79e |
|
MD5 | 774e513ca6b61cf3813d7d7ec26cbaae |
|
BLAKE2b-256 | a471e2fa0e9c57adc3a86704552db782b1a2fc84fb4f3a76b94ea3245374b291 |
Hashes for rust_sbml-0.5.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 109c1fd35d034a0faad719b33c7f1c57aeacb850ace5e17ac7c9333741263675 |
|
MD5 | 66962980645f5fc1d867a5df62d36691 |
|
BLAKE2b-256 | a56f255d9d685f62389cf103c10e9fb4aed98f2125ef225585ba54e28cc7112a |
Hashes for rust_sbml-0.5.2-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6534f9d171bbeb14a640931e9757109dc5f11e6faa477e786903bfd55d0cf2fa |
|
MD5 | 440aaed446da38aee12357c371b85381 |
|
BLAKE2b-256 | 650781e62958a243655d1a85ac061292098cea582f1362575b550073b4e3af61 |
Hashes for rust_sbml-0.5.2-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c726977af4ec093c48d71e4173c5e66ec2bb114d888b58eb08844935a94b6e7 |
|
MD5 | 35c8d14cf12e175caf46e010c14530d7 |
|
BLAKE2b-256 | 619db86d104d58873303f7568489a0c5a3181e132e7d31464ada2eb4aaafc8dc |
Hashes for rust_sbml-0.5.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42dfdcfef3a5943a88eccdbb4efe04f022356d38a3a965850eaaa26b2d5d7e6e |
|
MD5 | 7d0f545b604eb971673b94515196f9e8 |
|
BLAKE2b-256 | d5e3304429d4557cd69fbfb0ccaf6e379be50e4079ce8e659e7622d03eb64000 |
Hashes for rust_sbml-0.5.2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50bf0194e33b19069cab2679b4c33700096162598e1a590742ecb08c9645200b |
|
MD5 | 3ac956ec814fa5d42dc07317db25185b |
|
BLAKE2b-256 | ff430fba35abfcee5fb85c71bb6648a9297378b811f980e1033d8ab39cee921d |