-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix: chemical formulas field #19
Comments
Well, this doesn't seem to be a severe problem, since libSBML consider it as a warning, not as a fatal error... We are still able to I/O model without any information loss anyway. The brackets are not compatible with fbc:chemicalFormula field, that's why there are these 50 warnings. I think that this is a problem of libSBML itself, because if brackets are uncompatible with fbc:chemicalFormula field, then OutputSBML is supposed to detect and fix this, when model is being exported, but it does not. |
@simas232 yes I agree as you say not severe at all, I can indeed still load the model to Matlab without any loses. It should still eventually be fixed as it causes problems when loading to Python, according to collaborators. I tried changing the formulas to use |
This is only an issue with metabolites that are (a) polymers with unspecified chain-length (glucan, chitin, etc.), or (b) tRNAs for which the exact chemical formula is unknown (depending on exact sequence of tRNA). In the chemical formula, the repeating subunit is placed in between brackets, followed by n. In such cases, the software won't be able to check whether the reaction is chemically balanced, as n is not specified. So I doubt that libSBML will change this. I would argue that the brackets and n can be removed from glycan etc., because the metabolites in the model really do just represent only one subunit. For tRNA, either specify the chemical formula based on the organism/strain specific sequence (I suppose this is done in ME models?), or represent the tRNA part as R. |
@edkerk thanks for your input! @hongzhonglu is working on curating metabolite information, and I'm sure this will be useful for him ;) |
update: in |
I agree with @edkerk: The parentheses (and the
If we look at
and products
If we now check chemical formulas of those species we find:
and
One can easily see that this reaction is only balanced for Exception is probably |
Thanks @willigott for the input. I've created PR #111, which solves all 18 problems. Looking forward to anyone's additional comments on it :) |
PR #111 has been merged: the model in |
When using http://sbml.org/validator/ on the ecYeast7 sbml file, 50 errors appear of the sort:
Error (SBML Validation Rule #fbc-20303): The value of attribute 'fbc:chemicalFormula' on the SBML object must be set to a string consisting only of atomic names or user defined compounds and their occurrence. Reference: L3V1 Fbc V2 Section 3.4 Encountered '(' when expecting a capital letter.
so these formulas should be fixed
The text was updated successfully, but these errors were encountered: