For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overwrite Parameter Sets

Motivation

Not every compound-dependent parameter of a simulation is stored in the Compound building block. Many of them — for example organ-plasma partition coefficients, cellular permeabilities or the permeabilities of the endothelial barriers — are calculated during simulation creation from the physico-chemical properties of the compound and from the properties of the individual. Such parameters only exist inside the simulation, and PK-SimĀ® treats them as simulation parameters.

If you replace such a calculated value by a constant value of your own — for example a partition coefficient obtained from an in vitro experiment, or a permeability obtained by parameter identification — the new value lives in that one simulation only. It is not part of the compound, so it is not applied when the same compound is used in another simulation, it is not carried over when the compound is saved as a template, and it has to be re-entered manually every time.

An Overwrite Parameter Set solves this. It is a named collection of parameter values that is stored inside the Compound building block. You create it by committing the changed simulation parameters of a compound back to that compound, and you re-use it by selecting it when a simulation is created or configured. One Overwrite Parameter Set can be selected per compound and simulation, and selecting one is optional.

Overwrite Parameter Sets complement, but do not replace, the existing synchronization between a simulation and its building blocks (see Synchronization options for building blocks in a simulation). Commit to Building Block writes back the values of parameters that exist in the compound; an Overwrite Parameter Set stores the values of compound-dependent parameters that do not exist in the compound.

Which parameters can be committed

A simulation parameter is offered for a commit when both of the following are true:

  • It is a simulation parameter, i.e. its value is not taken from a building block but is calculated during simulation creation.

  • Its path contains the name of a compound that is used as a building block in the simulation configuration.

Compounds that are created inside the simulation but are not part of the simulation configuration — for example an unnamed metabolite of a parent/metabolite simulation — are therefore not considered.

Parameters that were applied from an Overwrite Parameter Set are also offered for a commit if you change them again, so a set can be refined step by step.

Uncommitted changes

As soon as you change such a parameter, PK-SimĀ® marks the change as uncommitted. This is shown by an orange indicator:

  • On the simulation in the Simulation Explorer, an orange overlay is added to the simulation icon as long as the simulation contains any uncommitted compound-dependent change.

  • On the compound inside the simulation, a second, orange status indicator is added next to the green or red synchronization state, which itself does not change. The combination of a green and an orange indicator means that the compound is in sync with its building block but has uncommitted compound-dependent parameter changes; the combination of a red and an orange indicator means that it is out of sync and has uncommitted changes.

The Simulation Explorer of a simulation with two compounds. The simulation icon carries an orange overlay. Midazolam has only uncommitted compound-dependent changes, Keto-Itraconazole is in addition out of sync with its building block.

Resetting a parameter to its original value removes it from the uncommitted changes again, and undo/redo restores the previous state of the indicator. The list of uncommitted changes is saved with the project, so the indicator is still there when the project is reopened.

Committing simulation parameters to a compound

  1. In the Simulation Explorer, expand the simulation and right mouse click on the compound whose parameters you want to store.

  2. Select Commit Simulation Parameters to Compound...

The context menu of a compound used in a simulation, with the Commit Simulation Parameters to Compound action.

The action is only offered for a compound of an individual simulation that actually has uncommitted changes. Overwrite Parameter Sets can be used in population simulations, but they cannot be created from one — see Population simulations below.

The Commit simulation parameters to compound dialog opens. It contains:

  • A table of all uncommitted parameters of this compound, with the columns Selected, Parameter (the path of the parameter in the simulation), Value (with its display unit) and Value Origin. Every parameter is selected by default; clear the check box of the ones you do not want to store.

  • A Commit Options group with two mutually exclusive choices:

    • Create New Parameter Set — enter a Name for the new set. By default it is filled in with the name of the compound. The name must not be empty and must not be used by another Overwrite Parameter Set of the same compound.

    • Update Existing Parameter Set — select an existing set from the Parameter Set drop-down list. This option is disabled as long as the compound has no Overwrite Parameter Set yet.

The Commit simulation parameters to compound dialog. The table lists the uncommitted parameters of the compound, and a new Overwrite Parameter Set is being created under the Commit Options.

Confirm with OK. The set is created in — or updated on — the Compound building block of the project, and the committed parameters are no longer marked as uncommitted. The whole commit is a single action and can be undone.

Because the commit changes the Compound building block, the compound is afterwards shown as out of sync with the simulation, even when the set holds exactly the values the simulation currently has. Update from Building Block or Commit to Building Block on that compound copies the sets into the compound of the simulation and clears the difference.

Committing does not change which Overwrite Parameter Set is selected for the simulation. Selecting the new set automatically would replace a set that is already selected, and since a new set contains only the parameters of that commit, the values supplied by the previously selected set would be lost the next time the simulation is built.

What happens when an existing set is updated

Updating an existing set is not a full replacement. PK-SimĀ® keeps the set consistent with the current state of the simulation:

  • Parameters you are committing are added to the set, or their stored value is overwritten.

  • Parameters that were in the set and that you have reset in the simulation since the last commit are removed from the set.

  • Parameters that were in the set and that you have not touched are preserved.

After an update commit, re-creating the simulation with this set therefore reproduces exactly the parameter values the simulation has at the moment of the commit.

The Overwrite Parameter Sets tab of a compound

The Overwrite Parameter Sets of a compound are shown in the same-named tab of the compound editor, after the Advanced Parameters tab. The tab uses a master-detail layout:

  • The list on the left shows all Overwrite Parameter Sets of the compound with the columns Name, Default, Species and Disease State, followed by a button that deletes the set.

  • The details on the right show the Metadata of the selected set above a table of its parameter values, with the columns Path, Value and Value Origin, followed by a button that deletes the entry. The value is displayed together with its unit.

The Overwrite Parameter Sets tab of a compound. Two sets are defined, the first one is the default and carries Species and Disease State metadata. The tooltip shows the full path of the selected entry.

New Overwrite Parameter Sets can only be created by committing from a simulation, never from this tab. The tab is for reviewing, documenting and correcting existing sets.

Editing a set

In the parameter table you can:

  • Change the Value of a stored parameter.

  • Change the unit of the value, in the unit selector of the value editor. As for any other parameter in the suite, the displayed number is kept and the value in base unit is recalculated (see Default, Display and Base Units).

  • Set the Value Origin of the entry, to document where the value comes from.

  • Delete a single parameter from the set, with the button at the end of its row.

Additionally you can:

  • Delete an entire Overwrite Parameter Set, with the button at the end of its row in the list on the left, after confirming the deletion.

  • Mark a set as the Default of the compound, or clear that flag. A compound can have at most one default set, and setting a new default clears the previous one. A compound is not required to have a default set. The default set is the one preselected when the compound is used in a new simulation; if the compound has no default set, no set is preselected (see Using an Overwrite Parameter Set in a simulation).

All of these changes can be undone.

Metadata

Each Overwrite Parameter Set can carry optional metadata that documents its intended use — by default Species and Disease State, chosen from the species and disease states known to PK-SimĀ®. The metadata is purely informational: it is displayed in the tab and stored with the compound, but it is not used to filter or validate the sets offered in a simulation.

Using an Overwrite Parameter Set in a simulation

The Overwrite Parameter Set to be used is chosen per compound in the Compounds tab of the Create Simulation window — both when a new simulation is created and when an existing simulation is configured (see Review compound settings).

The Overwrite parameter set in compound drop-down list offers <None> plus all Overwrite Parameter Sets defined for that compound:

  • If the compound has a default set, it is preselected.

  • If it has none, <None> is preselected.

  • <None> means that the compound-dependent simulation parameters keep their originally calculated values.

The sets offered are those of the compound that is selected in the Model Structure step of the window — the compound of the project, or the copy currently used by the simulation. A set is added to the compound of the project by the commit, so a newly committed set is offered for the simulation's own copy only after that copy has been updated from the building block.

The Compounds tab of the Configure Simulation window. For the compound Midazolam, the Overwrite Parameter Set group offers the sets defined for that compound.

The selected set is applied at the end of the simulation creation, after the model has been built. For each entry of the set, the parameter with the stored path is looked up in the new simulation and its value is replaced.

An entry is stored with the full path of the parameter in the simulation, which starts with the name of the compound or contains it as one of its elements:

The set can therefore only be applied to a simulation in which exactly these paths exist.

Parameters that were overwritten this way behave as compound parameters from then on:

  • They are shown as compound parameters and lose the reset behavior of a simulation parameter, because their reference value is now the value stored in the set.

  • Their value origin is taken from the entry of the set.

  • They have no counterpart in the Compound building block itself, so they can only be written back through a commit to an Overwrite Parameter Set, not through Commit to Building Block.

  • Their value depends on the selection from then on: configuring the simulation with <None> returns them to their originally calculated value. Parameters that were never supplied by a set keep the value you gave them across a configuration.

Population simulations

An Overwrite Parameter Set can be selected for a compound of a population simulation, and its values are applied in the same way. In addition:

  • Each overwritten parameter is flagged as not variable in the population, so that the value taken from the set is kept for every individual.

  • If an advanced (varied) parameter had already been defined for one of these paths, it is removed from the population simulation, so that it cannot override the value at run time.

Committing simulation parameters is not available from a population simulation. Create the set from an individual simulation and select it in the population simulation.

Updating and committing the compound

A compound used in a simulation is a copy of the Compound building block of the project, and it carries its own Overwrite Parameter Sets. Two rules describe how the two are kept together:

  1. The sets of the compound in the simulation are a copy of those in the building block. Both Update from Building Block and Commit to Building Block make the compound of the simulation an exact copy of the Overwrite Parameter Sets of the Compound building block: missing sets are added, differing ones updated, and sets that no longer exist in the building block removed. Sets are never copied in the opposite direction — a set reaches the building block only by committing simulation parameters to it.

  2. Neither operation changes a parameter value that came from a set. The values of an Overwrite Parameter Set are applied only when the simulation is created or configured.

The individual situations follow from these two rules:

Situation
Set in the building block
Set in the compound of the simulation
Parameter value in the simulation

Commit to Building Block after the value was changed in the set in the compound

keeps the changed value; it is not overwritten from the simulation

copy of the building block, so the changed value

unchanged

Commit to Building Block after simulation parameters were committed to a set that is not selected for the simulation

contains the new or updated set

copy of the building block, so the set becomes selectable

unchanged, the set is not selected

Commit to Building Block after simulation parameters were committed to the set selected for the simulation

holds the values the simulation had at the commit

copy of the building block

unchanged, it already holds these values

Commit to Building Block after simulation parameters were committed to another set

that other set holds the values, the selected one is untouched

copy of the building block

unchanged

Update from Building Block after the value was changed in the set in the compound

changed value

copy of the building block, so the changed value

unchanged; the new value is applied when the simulation is next configured

Update from Building Block after an Overwrite Parameter Set parameter was changed in the simulation

unchanged

unchanged

the change is kept and stays an uncommitted change

Overwrite Parameter Sets and the rest of the project

  • Compound renaming. Renaming a compound also renames the compound in all paths stored in its Overwrite Parameter Sets, so existing sets stay applicable.

  • Templates and snapshots. Overwrite Parameter Sets are part of the compound. They are stored in the project, saved with the compound as a template, and written to and read from snapshots, and are therefore available when the compound is re-used in another project.

  • Comparison. Overwrite Parameter Sets are part of the comparison of two compounds (see Comparison of Building Blocks).

  • MoBiĀ®. When a simulation is exported to MoBiĀ®, the values of the selected Overwrite Parameter Sets are merged into the ParameterValues building block created for the simulation. MoBiĀ® therefore receives the overwritten values without needing to know the concept, and no additional step is required.

Last updated