Open-Systems-Pharmacology / PK-Sim

PK-Sim® is a comprehensive software tool for whole-body physiologically based pharmacokinetic modeling
Other
107 stars 51 forks source link

Calculate PK-parameters for popSim based on individual values and not on aggregated curves #2211

Closed PavelBal closed 2 years ago

PavelBal commented 2 years ago

PK-parameters for population simulations are currently calculated for the selected aggregated curves. I.e., when selecting "arithmetic mean" as an output, the AUC is calculated for the curve that is generated from the individual results.

However, I would expect to have the arithematic mean of all individual AUC values instaed. The same goes e.g. for "5th percentile" - what we get now is the AUC of the curve but not really the 5th percentile of all AUC values.

So I suggest to re-implement this. Good news - we already have all individual PK parameter values as they can be shown e.g. in a BoxPlot. This approach would also allow to calculate the body-weight scaled parameters that are currently shown as NaN

• AUC_inf_norm • AUC_tEnd_norm • C_max_norm • Total body clearance/F (not quite clear what it is, documentation missing) • Vd(plasma)/F • Vss(plasma)/F

and to also calculate ranges like "arithmetic standard deviation" or the "geometric standard deviation".

@Yuri05 @msevestre @sfrechen @StephanSchaller

@abdelr FYI

StephanSchaller commented 2 years ago

I think this makes sense

msevestre commented 2 years ago

So I suggest to re-implement this.

I disagree with this. I think we could offer something else but I would not change this. I remember that we had raised the point back then and it was deemed perfectly acceptable to have the PK over the aggregated curves

PavelBal commented 2 years ago

27.04.2022 - do not re-implement.

Instead: In pk-analyses view, show two tabs - pk parameters calculated from the curves (as it is implemented now, do not change anything), and pk-parametes based on individual values.

Separate task - documentation.

StephanSchaller commented 2 years ago

Do we have an example to show how much the outcomes may differ (PK Property of aggregated curve vs calculating it from mean/percentiles of the individual PK Properties)?

PavelBal commented 2 years ago

02.05.2022:

msevestre commented 2 years ago

Remove rows containing NaN from "Calculated based on curves"

Why? Also note that you can have NaN is one cell but.not on the next one.

PavelBal commented 2 years ago

Why? Also note that you can have NaN is one cell but.not on the next one.

No, for population simulations actually not. The bw-normalized values are not calculated for observed data.

PavelBal commented 2 years ago

Lol, PK-Parameters are not calculated for observed data in a population simulation, at all.

PavelBal commented 2 years ago

So these rows are always showing NaN

image

msevestre commented 2 years ago

but not when you have simulated curve right?

PavelBal commented 2 years ago

No :) https://github.com/Open-Systems-Pharmacology/OSPSuite.Core/issues/1406#issuecomment-1002219676

msevestre commented 2 years ago

Ok Ithink this is implemented