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

Handling of local parameters #337

Open
LeonardSchmiester opened this issue Feb 25, 2020 · 6 comments · Fixed by #538
Open

Handling of local parameters #337

LeonardSchmiester opened this issue Feb 25, 2020 · 6 comments · Fixed by #538
Labels
question Further information is requested specification change
Milestone

Comments

@LeonardSchmiester
Copy link
Collaborator

At the moment, local parameters cannot be directly estimated within PEtab, as this requires unique parameter Ids. One would need to make them global parameters.
Maybe instead we could use a unique naming scheme like in AMICI (${reaction_id}_${local_par_id}) to also allow for local parameters

@dweindl dweindl added specification change question Further information is requested labels Feb 25, 2020
@FFroehlich
Copy link
Collaborator

def globalize_parameters(sbml_model: libsbml.Model,
?

@dweindl
Copy link
Member

dweindl commented Feb 25, 2020

def globalize_parameters(sbml_model: libsbml.Model,

?

Good catch. So far unused here. Legacy... And from before I knew that libsbml already implements that same functionality.

Question is mostly if we want to handle local parameters that way.

@JanHasenauer
Copy link
Contributor

Is there a disadvantage with this and would there be another good option?

@dweindl
Copy link
Member

dweindl commented Mar 21, 2020

Is there a disadvantage with this and would there be another good option?

Disadvantage of allowing for local parameters: They don't necessarily have a unique ID. It's a per-reaction namespace. In PEtab we'd need globally identifiable parameter IDs. The common way is using ${reaction_id}_${local_par_id}, but this is still not necessarily unique.

@JanHasenauer
Copy link
Contributor

Okay, but this is a problem of local parameters in general but not the suggested implementation. As we want to support available SBML models, we should in my opinion also support local parameters.

The common was sounds good and we should then be check for uniqueness.

@dweindl dweindl added this to the file format version 2 milestone Mar 23, 2020
@dweindl
Copy link
Member

dweindl commented Mar 18, 2022

The changes proposed in #538 also provide a means to handle local parameters.

@dweindl dweindl linked a pull request May 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested specification change
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants