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

Can't use a Species Observable in a local function #20

Open
lh64 opened this issue Aug 15, 2016 · 0 comments
Open

Can't use a Species Observable in a local function #20

lh64 opened this issue Aug 15, 2016 · 0 comments

Comments

@lh64
Copy link

lh64 commented Aug 15, 2016

From wshlavacek:

Please see the attached BNGL file, which should allow you to reproduce the bug.

If an observable appearing in a local function is a Species observable, NFsim simulations cannot be performed. The following console error message is generated:
"-in clone species observable, this is not yet updated to handle stoch observables. fix me."
If the observable is a Molecules observable, there is no problem with starting an NFsim simulation. The problem does not arise when using BioNetGen/run_network for simulations.

Can this be fixed?

It turns out (contrary to warning messages produced by the software), a Species observable is sometimes faster to calculate than a Molecules observable. Being forced to use a Molecules observable in a local function (instead of the faster-to-calculate Species observable) is greatly slowing down simulations.

To clarify... Switching from a Species to Molecules observable is causing an orders of magnitude slow down in NFsim simulation efficiency. I'm being forced to use the Molecules observable because this observable is used in a local function, which apparently doesn't work with the Species observable type.

p.s. I think the reason the Species observable is faster is because the counting of matches stops once a match is found, whereas the Molecules observable evaluation procedure will find all matches. Obviously, this is not the desired observable type when looking for existence of a pattern when species will tend to have many symmetries.

bug_species_vs_molecules.txt

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

1 participant