-
Notifications
You must be signed in to change notification settings - Fork 7
v2: Adapt models to changes in prior distributions #378
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,14 +79,10 @@ | |
| NOMINAL_VALUE = "nominalValue" | ||
| #: Estimate column in the parameter table | ||
| ESTIMATE = "estimate" | ||
| #: Initialization prior type column in the parameter table | ||
| INITIALIZATION_PRIOR_TYPE = "initializationPriorType" | ||
| #: Initialization prior parameters column in the parameter table | ||
| INITIALIZATION_PRIOR_PARAMETERS = "initializationPriorParameters" | ||
| #: Objective prior type column in the parameter table | ||
| OBJECTIVE_PRIOR_TYPE = "objectivePriorType" | ||
| #: Objective prior parameters column in the parameter table | ||
| OBJECTIVE_PRIOR_PARAMETERS = "objectivePriorParameters" | ||
| #: Prior distribution type column in the parameter table | ||
| PRIOR_DISTRIBUTION = "priorDistribution" | ||
| #: Prior parameters column in the parameter table | ||
| PRIOR_PARAMETERS = "priorParameters" | ||
|
|
||
| #: Mandatory columns of parameter table | ||
| PARAMETER_DF_REQUIRED_COLS = [ | ||
|
|
@@ -101,10 +97,8 @@ | |
| PARAMETER_DF_OPTIONAL_COLS = [ | ||
| PARAMETER_NAME, | ||
| NOMINAL_VALUE, | ||
| INITIALIZATION_PRIOR_TYPE, | ||
| INITIALIZATION_PRIOR_PARAMETERS, | ||
| OBJECTIVE_PRIOR_TYPE, | ||
| OBJECTIVE_PRIOR_PARAMETERS, | ||
| PRIOR_DISTRIBUTION, | ||
| PRIOR_PARAMETERS, | ||
| ] | ||
|
|
||
| #: Parameter table columns | ||
|
|
@@ -193,35 +187,50 @@ | |
|
|
||
| # NOISE MODELS | ||
|
|
||
| #: Uniform distribution | ||
| UNIFORM = "uniform" | ||
| #: Uniform distribution on the parameter scale | ||
| PARAMETER_SCALE_UNIFORM = "parameterScaleUniform" | ||
| #: Normal distribution | ||
| NORMAL = "normal" | ||
| #: Normal distribution on the parameter scale | ||
| PARAMETER_SCALE_NORMAL = "parameterScaleNormal" | ||
|
|
||
| #: Cauchy distribution. | ||
| CAUCHY = "cauchy" | ||
| #: Chi-squared distribution. | ||
| # TODO: "chisquare" in PEtab and sbml-distrib, but usually "chi-squared" | ||
| CHI_SQUARED = "chisquare" | ||
| #: Exponential distribution. | ||
| EXPONENTIAL = "exponential" | ||
| #: Gamma distribution. | ||
| GAMMA = "gamma" | ||
| #: Laplace distribution | ||
| LAPLACE = "laplace" | ||
| #: Laplace distribution on the parameter scale | ||
| PARAMETER_SCALE_LAPLACE = "parameterScaleLaplace" | ||
| #: Log-normal distribution | ||
| LOG_NORMAL = "logNormal" | ||
| #: Log10-normal distribution. | ||
| LOG10_NORMAL = "log10-normal" | ||
| #: Log-Laplace distribution | ||
| LOG_LAPLACE = "logLaplace" | ||
| LOG_LAPLACE = "log-laplace" | ||
| #: Log-normal distribution | ||
| LOG_NORMAL = "log-normal" | ||
| #: Log-uniform distribution. | ||
| LOG_UNIFORM = "log-uniform" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not really in-scope for this PR but is log10-uniform missing? I guess this is how we would convert
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not included in PEtab-dev/PEtab#595. So, so far, it's not available in PEtab v2. Right, I guess we'd need it to upconvert v1 priors. Also log10-laplace. Best to be discussed at https://github.com/PEtab-dev/PEtab. |
||
| #: Normal distribution | ||
| NORMAL = "normal" | ||
| #: Rayleigh distribution. | ||
| RAYLEIGH = "rayleigh" | ||
| #: Uniform distribution | ||
| UNIFORM = "uniform" | ||
|
|
||
| #: Supported prior types | ||
| PRIOR_TYPES = [ | ||
| UNIFORM, | ||
| NORMAL, | ||
| #: Supported prior distribution types | ||
| PRIOR_DISTRIBUTIONS = [ | ||
| CAUCHY, | ||
| CHI_SQUARED, | ||
| EXPONENTIAL, | ||
| GAMMA, | ||
| LAPLACE, | ||
| LOG_NORMAL, | ||
| LOG10_NORMAL, | ||
| LOG_LAPLACE, | ||
| PARAMETER_SCALE_UNIFORM, | ||
| PARAMETER_SCALE_NORMAL, | ||
| PARAMETER_SCALE_LAPLACE, | ||
| LOG_NORMAL, | ||
| LOG_UNIFORM, | ||
| NORMAL, | ||
| RAYLEIGH, | ||
| UNIFORM, | ||
| ] | ||
|
|
||
|
|
||
| #: Supported noise distributions | ||
| NOISE_MODELS = [NORMAL, LAPLACE] | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.