simbiology duplicates sbml id tokens when "duplicate" is used
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jim Bosley
el 14 de Jul. de 2022
Respondida: Jim Bosley
el 15 de Jul. de 2022
Not sure if this is intended, but I believe that it does highlight a bug.
Say I create a model in simbiology, with species A and B. If I then copy and paste species A to get species A_1 I can use A_1, or rename it, and Simbiology works fine.
If however, I export the model to sbml using sbmlexport, species A and species A_1 have identical sbml IDs. This means that any model one creates and has used copy and pastes is basically unexportable, which kind of defeats the purpose of sbml. The duplicate IDs are used in rate expressions, so one has no way of knowing (from the sbml) which species is appropriate.
The best solution would be to create a new random id every time one copies a species, rule, parameter, .... or anything.
A signficant improvement would be to allow the user to specify that the IDs be identical to the names in sbmlexport, e.g.
sbmlexport(mc,'mysbml.xml',ids,'names');
A workaround right now would be to allow user access to the underlying ID that matlab assigns to a species (or a compartment or reaction. This would allow the user to change the duplicate IDs before export.
But right now, given a matlab model in an sbproj file, there is no guarantee that that file is exportable. Further, any sbml exported from simbiology/matlab cannot be trusted as useable for, for example, documenting models for publications.
If you have the sbproj file you could go through and create new compoartment, species, and parameter that is duplicated.
I've written some python scripts to find all duplicate ids and it may be easiest to use the list provided to manually edit the sbml file with duplicate ids.
0 comentarios
Respuesta aceptada
Florian Augustin
el 15 de Jul. de 2022
Hi Jim,
Thank you for reporting this bug. A fix is included in R2022a Update 3. The releases R2021b Update 4, R2021a Update 7, R2020b Update 8 will also include this fix.
This update, however, does not disambiguate duplicate IDs in already existing models. We are currently looking for solultions to resolve this issue.
Best regards,
Florian
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Import Data en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!