Simulx
Auto Light Dark
Auto Light Dark
Breadcrumbs

Exploration

The Exploration tab is the second tab in the interface of Simulx. It simulates a typical individual to explore a model by interactively changing treatments and model parameters.

Predicted individual

In Exploration, the predictions are based on only:

  • one set of individual parameters (mandatory),

  • one or several treatments (optional) for one individual,

  • one or several outputs (mandatory) with a single vector of measurement times per output,

  • one set of regressor values, only if regressors are present in the model (mandatory).

These elements are selected in the left panel.

Thus an element of type “Individual parameters” must be selected, and it is not possible to select an element of type “Population parameters“.

If a selected element is a table containing several sets of individual values, then the first row in the table is selected by default, and the “ID” field on top of the plot in the middle allows to select the row in the table corresponding to a particular ID.

[Demo: 1.overview/importFromMonolix_resimulateProject.smlx]

This field is highlighted on the figure below, corresponding to a project that comes from a Monolix project imported into Simulx:

  • the individual parameters come from the table mlx_EBEs contains the EBEs estimates,

    • the treatment mlx_Adm1 contains the individual doses imported from the dataset used in Monolix,

    • the output mlx_Cc contains a single vector of regular measurement times for Cc, the structural model output.

Thus changing the “ID” value will change the row read from the two tables mlx_EBEs and mlx_Adm1.

Simulx Exploration tab for the demo importFromMonolix_resimulateProject. The left panel selects mlx_EBEs as individual parameters, mlx_Adm1 in explorationGroup1 and output mlx_Cc. The plot shows the predicted Cc curve for individual 1 with observed data points. The Selected individual slider, framed in blue, is set to ID 1 with Link to data selection on, above parameters Tlag about 0.974 and ka about 1.3469.

Exploration groups

  • 3.exploration/PK_exploration.smlx

Treatment can contain several elements in different exploration groups (explorationGroup1 and explorationGroup2 below), or combined within an exploration group (as in the explorationGroup2 below). Each exploration group produces a separate prediction. If an exploration group contains several treatments, then the prediction corresponds to the treatments given together to the same individual.

In the demo shown below, there are two exploration groups: the first corresponds to the treatment element singleDose_150, while the second corresponds to the combination of loadingDose_100 and multipleDoses_50. Two prediction curves in different colors represent these two exploration groups in the plot.

Simulx Exploration tab for demo PK_exploration with two exploration groups. explorationGroup1 holds singleDose_150 and gives the red Cc curve, a single high peak. explorationGroup2 combines loadingDose_100 and multipleDoses_50 and gives the blue curve, an initial peak followed by five smaller repeated peaks. The PARAMETERS sub-tab shows ka 0.7, Cl 2, V1 5 and Q 0.8.

Exploration outputs

  • 3.exploration/TMDD_exploration.smlx

Only non-random element of type “Output” can be selected in Exploration, thus they should:

  • correspond to continuous variables (consequently excluding time-to-event, categorical or count variables)

    • not include a residual error model in their definition.

By default, there is a separate plot for each selected output, as shown below. This can be changed in the exploration settings, where it is possible to select variables to display at each chart. If the scenario contains several output elements based on the same variable (but on a different grid), then they are plotted on the same plot with merged grids.

Simulx Exploration tab for demo TMDD_exploration with four outputs, regularL, regularLtot, regularRtot and regularP, each on a separate plot titled L, Ltot, P and Rtot over time 0 to 4000. L and Ltot use a log scale. Rtot drops then rises again. The right panel shows parameters V 0.9, kint 0.0007, kon 0.34, KD 0.00076 and treatment 500mg with amount 500 at time 0.

Interactive modification of parameter values or dosing regimen

  • 3.exploration/PK_exploration.smlx

The right panel of the Exploration tab has three sub-tabs: PARAMETERS, SETTINGS and DATA OVERLAY.  The parameter values and dosing regimens can be modified there to explore in real-time their impact on the model dynamics.

The figure below shows the PARAMETERS sub-tab with the model parameters (Parameters) and treatment parameters (Treatment) sections (highlighted in blue). The parameter values can be changed via the small arrows, sliders or by entering new values with the keyboard. The “reset” button Reset icon, an orange circular arrow that resets parameters to their initial values resets parameters to their initial values, while the “new” button New icon, orange stacked layers with a plus sign that creates a new element from current values generates a new element (individual parameters element or treatment element) using the current values. On the plot, the solid curves correspond to the current predictions, while reference curves, added with the button Reference icon, an orange bookmark that adds the current curves as reference curves , are shown as dashed lines.

Simulx Exploration tab for PK_exploration with explorationGroup1 singleDose_150 in red and explorationGroup2 loadingDose_100 plus multipleDoses_50 in blue. The PARAMETERS sub-tab, framed in blue, shows ka 0.7, Cl 1, V1 5 and multipleDoses_50 with start time 12, interdose interval 12, 5 doses of amount 50. The Cc plot shows solid current curves and dashed reference curves, with reference 1 listed above.

Reference curves. In the figure below, the section “Treatment” – highlighted in green – shows the elements from the treatment element: multipleDoses_50. All its parameters, such as start time, inter-dose interval, number of doses and dose amount can be modified.  Current values can be set as a reference by clicking on the button Reference icon, an orange bookmark that adds the current curves as reference curves – highlighted in purple. The reference curves are listed on the right panel – highlighter in blue – and are represented by dashed lines in the plot.

Simulx Exploration plot of Cc versus time with the bookmark reference button framed in purple. Solid red and blue curves show current predictions, and dotted curves show reference 1, listed in the REFERENCES panel framed in blue. The Treatment section, framed in green, shows editable values for multipleDoses_50, start time 12, interdose interval 12, 5 doses and amount 50.

Several reference curves can be created and each successive one is displayed with a corresponding number.  The icon Restore icon, an orange downward arrow into a tray that restores the reference parameter values restores the reference parameters values, and  Remove icon, a red cross that deletes the reference curve from the list and the plot removes the reference curve from the list and from the plot. Hovering on a reference line (#1 in the figure below) highlights in yellow the corresponding reference curve, as seen in the figure below. Stroke dash-array defines the pattern of dashes and gaps of a curve.

Simulx Exploration Cc plot with two reference curves, 1 and 2, listed in the REFERENCES panel framed in blue. Reference 1 is expanded with Stroke dasharray set to 2. Hovering on reference 1 highlights its curve as a thick yellow dotted line. The solid red curve is the current prediction with Cl 0.5 and multipleDoses_50, 5 doses of 50 every 12 time units from time 12, and the thin dashed red curve is the other reference.

Defining new parameter or treatment elements

  • 3.exploration/PK_exploration.smlx

Exploration allows to create new elements from the current values by clicking on the icon New icon, orange stacked layers with a plus sign that creates a new element from current values . In the parameter section it creates the Individual parameters element, while in the treatment section it creates the Treatment element.

A window to define a new element opens automatically. For the parameters, the individual parameter element is of type “manual” and by default replaces the previously selected element in the Exploration scenario. Untick the corresponding checkbox (blue mark in the figure below) to only define a new element – without the replacement.

Two-part Simulx screenshot. Clicking the new element icon, framed in green, above the Parameters section with ka 0.7, Cl 2, V1 5, Q 0.8 and V2 4, opens the New manual individual parameters dialog named indivManual1 with the same values. At the bottom, the ticked Replace in exploration checkbox with target Parameters is framed in blue.

A new treatment element can be set as a regular or manual type – depending on the definition in the exploration. By default it replaces the treatment element used in the exploration, but it can be also added as the new treatment to a new exploration group.

Two-part Simulx screenshot. The Create new treatment element icon, framed in blue, in the Treatment section from multipleDoses_50 opens the New treatment with regular schedule dialog, named trtRegular1, adm 1, start time 12, interdose interval 12, 5 doses, amount 50. Framed in blue at the bottom are Add to exploration group, unticked, and Replace in exploration multipleDoses_50, ticked.

Overlay of the observed data

Continuous data can be overlaid on the prediction plots.

Load

Data overlay sub-tab in the Exploration tab allows to load a data file. Click on the BROWSE button and select a file. It has to be a Monolix compatible dataset and has to contain columns that correspond to: subject identifier (tag: ID), time of observations (tag: TIME) and observation values (tag: OBSERVATION). It is possible to have multiple observations to be displayed in different charts. In this case, the loaded data file need to contain the column with observation id to distinguish different observations.

Simulx Exploration tab for demo overlay_data_in_exploration, with elements mlx_EBEs, mlx_Adm1 and mlx_Cc selected and a predicted Cc curve for individual 1 peaking at about 12.5. The DATA OVERLAY sub-tab on the right shows the Data file section with a BROWSE button for loading a data file, and no data loaded yet.
Simulx data loading window for the file warfarin_data.txt. Column headers are tagged ID for id, TIME for time, AMOUNT for amt, OBSERVATION for dv, CONTINUOUS COVARIATE for wt and age, and CATEGORICAL COVARIATE for sex. Data information marks dv as continuous. The preview lists rows for id 100, and an ACCEPT button is at the bottom right.

After tagging columns, click on the ACCEPT button to load the data file. Displayed observations can be filtered (green frame) using categorical covariates present and correctly tagged in the loaded file. In the figure below, ticked box next to a value “0” means that in the plot there are only observations for individuals with SEX = 0. To change the tagging, click on the VIEW/EDIT button (blue frame).

Simulx Exploration tab after loading warfarin_data.txt. The Cc plot shows the predicted curve for individual 1 with observed data overlaid as green dots. In the DATA OVERLAY sub-tab, the VIEW EDIT button is framed in blue, and the Filter section, framed in green, has sex value 0 ticked and 1 unticked, so only observations with SEX equal to 0 are shown.

When a Simulx project is build by importing a Monolix project, then the dataset – used in the Monolix project – is set automatically in the DATA OVERLAY sub-tab.

Display

Observed data are displayed automatically as “dots” if there is only one output in the Exploration scenario and the data file contains only one observation type. Otherwise – in case of several different outputs or multiple observations types – data display has to be selected in the SETTINGS sub-tab.

In the data – charts grid, see the figure below, observation data are listed in rows. Numerical order is applied if the observation identifiers in the data file are integers, eg. data_1, data_2, …; or alphabetical order if the observation identifiers are strings, eg. data_PD, data_PD, as in the figure below.  Charts are in columns. To display data on a chart, click on the drop-down menu of Data display drop-down with a crossed circle icon, meaning no data are shown on that chart in the appropriate grid cell and select “dots” or “lines”.

Simulx Exploration with two charts, Cc with data_PK on chart 1 and E on chart 2. In the SETTINGS sub-tab, the Display grid assigns Cc to chart 1 and E to chart 2. The rows data_PD and data_PK, framed in blue, set data_PK as dots on chart 1, while data_PD is not displayed. Chart 1 shows the Cc curve with orange observed dots, and chart 2 shows E dipping to about 6 then returning near 20.

If any of the exploration scenario elements contains a table with several individuals, then the simulated individual can be selected in the PARAMETERS sub-tab, see individual prediction description section for details. To link the observed data to the selected individual, enable the toggle “Link to individual selection”. Only data corresponding to the selected individual will be displayed on charts. The option “Link to individual selection” only appears if the list of ids found in the data set and in the elements selected for the simulation are the same.

Simulx PARAMETERS sub-tab with the Selected individual slider at ID 14 and the Link to data selection toggle switched on, framed in blue. Below are the Parameters section with Tlag about 0.904 and the Treatment section with element mlx_Adm1.

It is also possible to display one or several individuals selected from the dataset, which may or may not be linked to the simulated individual. This option is available in the DATA OVERLAY sub-tab, in the “Selection” section. In the example below, selection contains a range of IDs between 15 and 42 and only observed data corresponding to these individuals are overlaid on the chart.

Simulx Exploration Cc plot with data_PK observations shown as orange dots around the predicted curve. In the DATA OVERLAY sub-tab, the Selection section, framed in blue, has the Range box ticked and a slider set from ID 15 to ID 42, so only observed data for these individuals are overlaid on the chart.

Sending elements to simulation

The button “Send elements to simulation” sends all elements selected in the Exploration to the scenario definition in the tab Simulation. Exploration groups are turned into simulation groups with a default size of 1 individual per group.

Two-part Simulx screenshot. Clicking SEND ELEMENTS TO SIMULATION, framed in green, in the Exploration tab with indivParameters, explorationGroup1 Dose_2000, explorationGroup2 Dose_4000 and outputs Cc and E creates a simulation scenario. It has shared group size 1, indivParameters and outputs Cc and E, and groups from_explorationGroup1 with Dose_2000 and from_explorationGroup2 with Dose_4000.

Plots settings

The panel “Settings” can be used to control plots features, such as the scale of the curves displayed on each plot and axis limits. The x-axis is common for all charts, while the y-axis can be specified independently for each chart.

In the following figure, two variables Cc and E are displayed on separate charts. They have the same x-axis limits – blue frame. The y-axis is specified for each chart: user limits 0-60 on the chart – 1, and  automatic limits on the chart – 2 – green frame.

Simulx Exploration with Cc and E on separate charts and the SETTINGS sub-tab open. The X-axis section, framed in blue, has Same limits on with limits 0 to 100. The Y-axis section, framed in green, sets user limits 0 to 60 for chart 1, while chart 2 uses automatic limits of about 5.947 to 19.8.

Exporting plots

Simulx plot of Survival versus time, decreasing from 1 at time 0 to about 0.02 at time 400. The export button with a download arrow at the top left of the plot, framed in green, saves the plots as a PNG or SVG image.

The “export” button on top of the plots can be used to save the plots as an image in the result folder. Two image formats are available: PNG and SVG (Scalable Vector Graphics).

Last updated: