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

ExcludeReactants #25

Open
kaizu opened this issue Dec 25, 2017 · 1 comment
Open

ExcludeReactants #25

kaizu opened this issue Dec 25, 2017 · 1 comment
Labels
enhancement New feature or request proposal

Comments

@kaizu
Copy link
Member

kaizu commented Dec 25, 2017

The following doesn't work now:

https://github.com/ecell/ecell4/blob/master/python/samples/reaction_reader/Haugh2b/Haugh2b.py#L17

This means that the second reactant must have not R in it. This is originally in BNGL, but the representation looks unfamiliar for me. Propose new expression to do the same thing.

@kaizu
Copy link
Member Author

kaizu commented Dec 25, 2017

The original:

A(x) + B(x) > A(x^1).B(x^1) | k | ExcludeReactants(2, A)
A(x) + B(x) > A(x^1).B(x^1) | k | exclude_reactants(2, A)

Proposals:

A(x) + B(x)._withno(A) > A(x^1).B(x^1) | k
A(x) + B(x)^A > A(x^1).B(x^1) | k
A(x) + _exclude(B(x), A) > A(x^1).B(x^1) | k

The above is okay for left-to-right, but now good for right-to-left representation.

@kaizu kaizu transferred this issue from ecell/ecell4_base Feb 15, 2019
@kaizu kaizu added enhancement New feature or request proposal labels Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal
Projects
None yet
Development

No branches or pull requests

1 participant