-
Notifications
You must be signed in to change notification settings - Fork 218
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
Model notes are not written to SBML #902
Comments
Seems to be written on my development branch SBMLImprovments. Try testing after merging #901 |
This issue is still unresolved. Notes attached with models are still not written to SBML. Can I work on this? |
You're right. Reaction and metabolite notes are written, but model notes aren't. @matthiaskoenig Why does _sbase_notes_dict(sbase, notes) require the sbase to already exist? As far as I'm concerned, you can work on it, but you might want to make sure you understand _sbase_notes_dict(sbase, notes). |
I think problem is not with "hasattr(cobra_model, "_sbml")". The _sbml attribute store the notes and annotation corresponding to the main SBML document. Annotation and Notes of models (present inside the SBML) are stored in cobra_model.annotation and cobra_model.notes respectively. In the method "_model_to_sbml()" where parsing is done, only annotation is parsed from cobra_model to libsbml.SBMLDocument (in line 938). Here we need to parse the notes also corresponding to that model. I added this and now it is working fine. |
Great!
Can you please add relevant tests to test_sbml.py?
Thank you.
Uri David
On Fri, Mar 13, 2020 at 12:46 PM Hemant_Yadav <[email protected]<mailto:[email protected]>> wrote:
I think problem is not with "hasattr(cobra_model, "_sbml")". The _sbml attribute store the notes and annotation corresponding to the main SBML document. Annotation and Notes of models (present inside the SBML) are stored in cobra_model.annotation and cobra_model.notes respectively. In the method "_model_to_sbml()" where parsing is done, only annotation is parsed from cobra_model to libsbml.SBMLDocument (in line 938). Here we need to parse the notes also corresponding to that model. I added this and now it is working fine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#902 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACQYYZVVUI3SKC5QDETEH2DRHJPONANCNFSM4IOPH2MA>.
…--
Uri David Akavia, Ph.D.
Assistant Professor, Biochemistry Department
Associate Member, Rosalind & Morris Goodman Cancer Research Centre
Membre Associé, Centre de recherche sur le cancer Rosalind & Morris Goodman
[email protected]<mailto:[email protected]>
McIntyre Medical Sciences Building
3655 Promenade Sir William Osler, Room 815B
Montreal, Quebec H3G 1Y6
Office tel: 514-398-8526
Facebook<https://www.facebook.com/GCRC.McGill/> | Twitter<https://twitter.com/McGillGCRC> | LinkedIn<https://www.linkedin.com/company/goodman-cancer-research-centre-mcgill-university/> | Instagram<http://www.instagram.com/goodmancancerresearchcentre> | Gala<http://mcgillgcrcgala.com/> | Défi Canderel<https://www.deficanderel.com/>
[cid:[email protected]]
|
Relevant prior discussions are here #695 (also see the schema link in there). |
Resolved by #943 |
Did we already have an issue for this?
The text was updated successfully, but these errors were encountered: