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

Question: Is there a way to add multiple reactions in the check_model call? #13

Open
ayush9pandey opened this issue Jan 20, 2025 · 5 comments

Comments

@ayush9pandey
Copy link

I would like to do something like this:

result = check_model("A+B->C;k_1*A*B-k*C", "A->B;k1*A");

where I have two reaction separated by a comma. The check_model constructor seems to allow only one reaction. Is that correct?

@RMeli
Copy link

RMeli commented Feb 2, 2025

@ayush9pandey
Copy link
Author

ayush9pandey commented Feb 3, 2025

@RMeli I'm not sure if the comment you've linked is correct..it points to the other reviewer..Doesn't matter though :)
Did you intend to link the review issue with this URL: openjournals/joss-reviews#7618

(same comment for other issues that I have raised on this repo)

@RMeli
Copy link

RMeli commented Feb 3, 2025

Hi @ayush9pandey, this was indeed wrong, sorry. I was meant to link to the review issue itself, not a particular comment. Sorry for the confusion!

@longxf21
Copy link
Collaborator

@ayush9pandey The check_model function does not support multiple model argument input. Instead, If you enter two reactions as one model, it should execute successfully:
result = check_model("""A+B->C;k_1*A*B-k*C; A->B;k1*A """)

@ayush9pandey
Copy link
Author

Great! So, semicolon can be used to separate the reactions. Do you need the three quotes (""") or one each for starting and ending is enough?

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

No branches or pull requests

3 participants