simbiology duplicates sbml id tokens when "duplicate" is used
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Florian Augustin
2022년 7월 15일
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
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Import Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!