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

explicitly unknown stoichiometry ("?") could be stored as NaN #66

Open
adrienrougny opened this issue Sep 5, 2024 · 1 comment
Open
Labels

Comments

@adrienrougny
Copy link

From Amdreas: As far as storing in SBGN-ML goes, one could represent the ? with the actual numerical value NaN, so that the data type is always a number but renders as a question mark if not-a-number is given.

@tczauderna
Copy link
Collaborator

What is the rationale behind that idea?

The stoichiometry (cardinality) is currently stored using a label element which is a generic element in SBGN-ML to store labels as strings. Thus, the stoichiometry (cardinality) is stored as a string and not as a number.

Changing SBGN-ML to store stoichiometry (cardinality) as numbers would probably be a breaking change for existing maps and tools (I'm not sure yet, need to think a bit more about this).

However, NaN can be stored right now as a string. It's then just a tool issue to interpret this correctly.

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

No branches or pull requests

2 participants