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

Error with importing functions from .NET files #92

Open
NikosMemmos opened this issue Dec 21, 2022 · 3 comments
Open

Error with importing functions from .NET files #92

NikosMemmos opened this issue Dec 21, 2022 · 3 comments

Comments

@NikosMemmos
Copy link

Hi all,

I am using BioNetGen to generate my reaction network and define some rate laws, different from the standard ones, as functions in the BioNetGen file. However, while the import works perfectly when I try to solve I receive an error that the function for the rate law is not defined (see attached image). Is there anything wrong with the way I am importing the .NET file?

Thank you for your time!

error_network_importer

@isaacsas
Copy link
Member

Can you share the .net file? We don’t fully support custom functions but I can take a look at what is going on.

An alternative is to export the file as SBML and use SBMLToolkit to load it into Catalyst.

@NikosMemmos
Copy link
Author

Hi @isaacsas , I hope you are doing well. Is there any update on the issue? I keep facing the same error.

@isaacsas
Copy link
Member

isaacsas commented Jan 5, 2023

Sorry, I haven't had a chance to look into this -- one of the issues is that I am unaware of any official Bionetgen documentation on how a function block works. If you know of any please feel free to link it.

You are also welcome to make a PR adding support for function blocks if you want! You can see the current parser for .net files at:

https://github.com/SciML/ReactionNetworkImporters.jl/blob/master/src/parsing_routines_bngnetworkfiles.jl

Presumably anything handling function blocks would be parsed in a similar way.

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

2 participants