Fernando Ortega in Discussions
Ultima attività il 8 Nov 2022

Hi, I want to develop a PK model based on some PK data. The PK data seems to display 2 peaks when one initial dose is given. I would like to give one dose. A fraction of this dose (fr) is absorbed following the linear relationship - ka*Drug the other fraction (1-fr) is absorbed following a linear absorption (ka1*Drug) with a Tlag (it maybe a zero order). The fraction fr is unknown so it must be estimate. Does anyone have can provide any suggestion to implement this in symbiology or provide a link where I can look? Thank you very much in advance, Ferran PK model: absorption This reminds me of bioavailability, and you can find an example of how we model that here. That example uses initial assignment rules to split the drug between an elimination reaction and an absorption reaciton. However, I don't think you can directly use that approach here because of your desire to introduce a lag. I have some ideas on how to incorporate lag. It sounds like you only have a single dose (at time 0). In that case, I think the easiest way to set this problem up would be to replace your single dose with two parameterized doses, one for each type of absorption. The use of parameterized dosing is how you can incorporate the unknown fraction in a way that you can then estimate. I'll attach a sample project (created in R2022a) that contains the model and a program to estimate the parameters. But here's a summary of how I implemented the model: Create a parameter amount to hold the total dose amount. Create a parameter fr for the fraction you need to estimate. Create a species, an amount parameter, a rule, and a dose object for each of the two absorption types. The rule for each absorption type is an initial assigment to determine the amount of drug applied to that dose (for example, amountA = amount*fr). Configure each dose's target to the appropriate species, and each dose amount to the appropriate parameter. Also configure the lag parameter for the dose that has a lag. I generated synthetic data and then set up a program to fit it. Please note that working on this led me to discover a bug that affects sensitivity analysis and as a result can also affect fitting. I'll provide more info below.* But my project works around this bug by setting the model's compartment to be non-constant. Once I did that, I was able to estimate the parameters that I used to generate the synthetic data. (Those parameters are saved on a variant on the model.) I think it's also possible to model this situation using events. But that's sufficiently complicated that I'm not going to bother explaining that approach until I'm sure you need it. -Arthur *Here's more info on the bug. I discovered that SimBiology incorrectly calculates local sensitivities for this model. It calcualtes that the model is not sensitive to parameter fr. By default, these sensitivites are used during fitting, and so the fit does not try to vary parameter fr. When performing fitting from the command line, I can explicitly say not to use these sensitivities during fitting. But that option is not currently exposed in the Analyzer app. So to work around this bug in the app, I needed to update the model to make it incompatible with sensitivity analysis. The easiest way I could think of to do that was to set the compartment volume's Constant property to false, since non-constant cmopartments are not yet supported with sensitivity analysis. I will enter this bug in our database and make sure we fix it in the future. I also just learned that one of my colleagues already implemented an example model using the events approach that I alluded to. Just in case you find that useful, I'm attaching it to this comment. This was based on the model described here. pk absorption
和孝 関口 in MATLAB Answers
Ultima attività il 17 Ott 2021

I'm trying to develop the compartment model to simulate a lung concentration time profile of unchanged and metabolized drugs with tissue Kp value in simbiology app. This is because these drugs have very high lung Kp values (i.e. 100). I tried that lung concentration of unchanged drugs equals to the product of peripheral concentration and the lung Kp with repeated assginment, but I was not able to cope with this equation and the differential equation for the metabolism of unchanged drugs to metabolites in lung. How can I incorporate Kp values for the simulation of tissue concentration?
Daniel Bending in MATLAB Answers
Ultima attività il 5 Giu 2020

Hello all, I've been using simbiology as part of an effort to run sensitivity analysis on a PDPK model as part of my masters. It's industry sponsored so the image below has the important information blurred but enough to give context. The black lines are simple mass kinetics, easily done in Simbiology. The green lines, howeever, are stimulations, i.e. there's no actual transfer of material, just its pressence causes an effect. I had thought these would be quite easily by creating a reaction from 'null -> x' and but I'm unsure on how to create that custom dependency, i.e. a null -> x where the equation is kyx*[y] -> x. It was easy to do on the GUI, however, the GUI dosn't quite have the freedom I need for sentitivity analysis. I was struggling to get a global sensitivity analysis going, basically. If anyone has any suggestions about either of these topics, that would be greatly appreciated. Many thanks, Dan
MathWorks SimBiology Team in File Exchange
Ultima attività il 21 Nov 2017

SimBiology model and code to perform CI and NCA analyses, and optimization using parallel computing.
Help! in MATLAB Answers
Ultima attività il 4 Maggio 2015

I can't seem to find the answer to my question in SimBiology's documentation. Does anyone know how Matlab calculates the non-compartmental AUC? Does it use the linear / log-linear trapezoidal rule? How many points does it use to extrapolate the curve to infinity? Does it use log or linear extension? Many thanks!