Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importSBML no longer working in current MATLAB version #1875

Closed
thomassligon opened this issue Oct 24, 2022 · 7 comments
Closed

importSBML no longer working in current MATLAB version #1875

thomassligon opened this issue Oct 24, 2022 · 7 comments
Labels
bug new Newly created

Comments

@thomassligon
Copy link
Contributor

In MATLAB Version: 9.8.0.1873465 (R2020a) Update 8 and libSBML 5.19.0. AMICI importSBML fails with error
Error using sym>convertChar (line 1546)
Character vectors and strings in the first argument can only specify a variable or number. To evaluate character
vectors and strings representing symbolic expressions, use 'str2sym'.

As a result, genSSI can no longer import SBML models.

This is related to AMICI issue #234, which was fixed 5 years ago. #234
It is also related (and documented) in the new libSBML issue 274. sbmlteam/libsbml#274

This can be reproduced by running genSSI runExample('BIOMD0000000003')

@thomassligon thomassligon added bug new Newly created labels Oct 24, 2022
@thomassligon
Copy link
Contributor Author

A straightforward fix to this is described in sbmlteam/libsbml#274. Is this correct for AMICI?

@stephanmg
Copy link
Collaborator

stephanmg commented Oct 25, 2022

Sounds like it. Happy to address the issue (if prerequisites as outlined below are met)

@stephanmg stephanmg assigned stephanmg and unassigned stephanmg Oct 25, 2022
@dweindl
Copy link
Member

dweindl commented Oct 25, 2022

Hi Tom, we are aware that AMICI only works on MATLAB<R2018a. We don't currently have any plans to rewrite the matlab model import. We would rather drop the Matlab import altogether, once all MATLAB functionality is available from Python.
Nevertheless, if you manage to make things work with recent Matlab versions, feel free to create a pull request.

@thomassligon
Copy link
Contributor Author

Hi Daniel,
now I am not sure that genSSI is getting SBMLimporter from AMICI. It looks to me like it is being cloned from.https://github.com/ICB-DCM/SBMLimporter, so that would be the place to do it. By the way, do you know which repositories clone SBMimporter from this one? Is it AMICI and genSSI, or a lot more?

@dweindl
Copy link
Member

dweindl commented Oct 26, 2022

Hi Tom, I am not aware of any other projects using that. Maybe @FFroehlich knows more. Considering 1 issue being posted there in 5 years, I'd say it's unlikely that many others are using it.

@FFroehlich
Copy link
Member

Hmm, not sure. I think the idea was to not duplicate this and AMICI definitely contains the same repository: https://github.com/AMICI-dev/AMICI/tree/master/matlab/SBMLimporter. I don't think any other toolbox uses SBMLimporter.

Even though it looks copy pasted, I think this is actually solved via git submodules (see https://github.com/AMICI-dev/AMICI/blob/57a7b11cc2fb301cf838daefd966830c522643a8/matlab/SBML2AMICI.m)

@thomassligon
Copy link
Contributor Author

Good. I'll close the issue here and open it on ICB-DCM/SBMLimporter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug new Newly created
Projects
None yet
Development

No branches or pull requests

4 participants