# Problem using SBML package

**URL:** https://discourse.julialang.org/t/problem-using-sbml-package/90382
**Category:** General Usage
**Created:** [November 17, 2022, 4:15am UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382 "2022-11-17T04:15:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![FH96](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@FH96](https://discourse.julialang.org/u/FH96)
#### Post date: [November 17, 2022, 4:15am UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382/1 "2022-11-17T04:15:36Z")

</div>

Hi everyone!  
I am trying to use SBML package. I read a xml model by `readSBML`. According to the docs, `getS` and `getUBs` should give the stoichiometric matrix and upper boundary of the reactions, respectively. However when I run them I face the error :  
“VarError: getUBs/getS not defined”  
It is weird to me 🤔…can anyone help? 😢

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [November 17, 2022, 9:26am UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382/2 "2022-11-17T09:26:06Z")

</div>

Can you share a full example? This is probably best opened as an issue on the package.

---

<div class="post-metadata">

### Author: ![MirekKratochvil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mirekkratochvil/32/21851_2.png) [@MirekKratochvil](https://discourse.julialang.org/u/MirekKratochvil)
#### Post date: [November 17, 2022, 10:09am UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382/3 "2022-11-17T10:09:45Z")

</div>

Hi,  
can you please point me to where you read the docs with `getS` and `getUBs` functions? We have renamed these a long ago to `stoichiometric_matrix`, `flux_objective` and `flux_bounds`; these are now used e.g. as such:

> <https://github.com/LCSB-BioCore/COBREXA.jl/blob/master/src/base/types/SBMLModel.jl#L48>

> <https://github.com/LCSB-BioCore/COBREXA.jl/blob/master/src/base/types/SBMLModel.jl#L59>

Using the proper function names should fix it. In case there’s old documentation hanging out somewhere, please send us a link (or open an issue) so that we can update it.  
Thanks&best!  
-mk  
-mk

---

<div class="post-metadata">

### Author: ![FH96](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@FH96](https://discourse.julialang.org/u/FH96)
#### Post date: [November 19, 2022, 2:35am UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382/4 "2022-11-19T02:35:37Z")

</div>

Thanks Mirek for your attention

I have read docs from this link [https://lcsb-biocore.github.io/SBML.jl/v0.2/](https://lcsb-biocore.github.io/SBML.jl/v0.2/)

Are the functions you mentioned from SBML.jl or cobrexa.jl?

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [November 19, 2022, 5:46am UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382/5 "2022-11-19T05:46:33Z")

</div>

> [@FH96](#):
>
> I have read docs from this link [https://lcsb-biocore.github.io/SBML.jl/v0.2/](https://lcsb-biocore.github.io/SBML.jl/v0.2/)

That’s a very old version of `SBML.jl`, latest one is [v1.3.0](https://lcsb-biocore.github.io/SBML.jl/v1.3.0/). I guess the new question is: how did you get to the docs of v0.2 of `SBML.jl`? Is there any page pointing to that version specifically?

---

<div class="post-metadata">

### Author: ![FH96](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@FH96](https://discourse.julialang.org/u/FH96)
#### Post date: [November 19, 2022, 12:59pm UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382/6 "2022-11-19T12:59:41Z")

</div>

oh…Actually I was really careless about the version…It was a great lesson for me! 🥲

No, I googled for the docs and it was like the third result!
