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

Suggestion: use py-perl5 for more seamless bridge to BNGL2.pl #22

Open
jonrkarr opened this issue Sep 16, 2021 · 2 comments
Open

Suggestion: use py-perl5 for more seamless bridge to BNGL2.pl #22

jonrkarr opened this issue Sep 16, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jonrkarr
Copy link

No description provided.

@ASinanSaglam
Copy link
Contributor

This is a fantastic idea and I'll try to add this as soon as I can

@ASinanSaglam ASinanSaglam added the enhancement New feature or request label Sep 16, 2021
@jonrkarr
Copy link
Author

To elaborate, we would want to use this to execute multiple simulations (with different parameter values or initial conditions) without re-parsing the .bngl file for the model.

Here's the main things we would want

  1. Parse a model file to a data structure that represents the model (this would be a instance of a py-perl5 class)
  2. Use that data structure to execute a simulation (without exporting the data structure to a .bngl file and BNGL2 then parsing that file)
  3. Make basic changes to that data structure for the values of parameters, compartment sizes, and initial counts of species

If BNGL2 already has methods for the above, this might be fairly easy. Instantiating a bridge from Python to BNGL2 and then letting users use whatever API BNGL2 exposes might be sufficient. To make it more user friendly, it might be helpful to wrap this into Python methods rather than asking users to navigate the BNGL2 Perl API.

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

No branches or pull requests

2 participants