README.md 805 Bytes
Newer Older
1
# SBML.jl
2

Miroslav Kratochvil's avatar
Miroslav Kratochvil committed
3
4
| Build status | Documentation |
|:---:|:---:|
Laurent Heirendt's avatar
Laurent Heirendt committed
5
| ![CI](https://github.com/LCSB-BioCore/SBML.jl/workflows/CI/badge.svg?branch=master) | [![doc](https://img.shields.io/badge/docs-stable-blue)](https://lcsb-biocore.github.io/SBML.jl/) |
6

Miroslav Kratochvil's avatar
Miroslav Kratochvil committed
7
8
9
10

This is a simple wrap of some of the libSBML functionality, mainly the model loading for purposes of COBRA analysis methods.

Other functionality will be added as needed. Feel free to submit a PR that increases the loading "coverage".
11

12
13
14
15
16
17
## Usage

```julia
using SBML
m = readSBML("myModel.xml")

Miroslav Kratochvil's avatar
Miroslav Kratochvil committed
18
# m is now a Model structure with:
19
20
21
22
23
m.reactions
m.species
m.compartments
...
```
24
25
26
27
28
29

There are several helper functions, for example you can get a nice list of reactions, metabolites and the stoichiometric matrix as follows:

```julia
mets, rxns, S = getS(model)
```