跳到正文

药代动力学与药效研究建模

组织 PK/PD 研究模型、参数、暴露与反应分析,保存数据依据、模型假设及评价结果。

开源精选医疗业务31 个文件50,135 Stars浏览次数 0K-Dense-AI/scientific-agent-skills MIT版本 a1043ef
开始使用

适用环境:Requires Python 3.12+ with NumPy 2+ and SciPy. No network access and no proprietary software. The estimation tools this skill orients you towards (NONMEM, Monolix, Phoenix, Simcyp, GastroPlus) are licensed separately and are never invoked by these scripts.

输入资料
获准使用的 PK/PD 研究资料 模型目标、参数与分析环境 阅读本节完整说明
交付内容
可复查的研究模型 模型评价与假设说明 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/pd-and-exposure-response.md

Choose a structure the observations can distinguish

Structure Equation/role Main identification concern
Direct Emax E0 + Emax*C/(EC50+C) Without a plateau, Emax and EC50 trade off
Sigmoid Emax E0 + Emax*C^h/(EC50^h+C^h) Hill, EC50 and Emax need concentration-range support
Effect compartment dCe/dt=ke0*(C-Ce) Delay can also arise from sampling, metabolites or turnover
Indirect response Production/loss modulated by drug Baseline turnover and drug effect can be confounded
Logistic logit(p)=a+b*exposure Separation, confounding and repeated observations

Effect-compartment Ce is a link variable, not an additional drug mass. Indirect response models I–IV inhibit/stimulate production or loss. An inhibitory fraction must stay between zero and one; stimulation terms must not make rates negative. Estimate/fix turnover with independent evidence where possible. Similar hysteresis loops do not uniquely select one mechanism.

The ODE and regression helpers check finite inputs and solver/optimizer outcomes, but local standard errors are not evidence of structural identifiability. A converged fit with a deficient Jacobian must not imply precise parameters. Check profiles, bounds, starting-value sensitivity and predictions under perturbation, especially when the sampled range never reaches a plateau.

Exposure-response is not automatically causal

Randomized dose does not randomize realized exposure. Clearance can covary with disease severity, body size, adherence and prognosis. Derived exposure carries estimation error; time-varying clearance and survival-dependent sampling can induce bias. Define the estimand, temporal ordering, confounders, missingness and sensitivity analyses before interpreting a slope as a dose benefit. Balance efficacy and safety outcomes rather than maximizing a single modeled response. FDA exposure-response guidance.

exposure_response.py uses independent observations. Repeated longitudinal responses, count or time-to-event endpoints need models with appropriate distributions and dependence. Logistic data must contain both outcomes and exposure variation; complete/quasi-complete separation is rejected rather than returning a misleading finite estimate. C-QTc limitations are in DDI/QT.

Pharmpy model construction

These transformations were executed independently on the bundled example model under Pharmpy 2.2.0. They return new models; they do not estimate parameters or establish adequacy:

import pharmpy.modeling as m
base = m.load_example_model("pheno")
direct = m.set_direct_effect(base, expr="sigmoid")
link = m.add_effect_compartment(base, expr="emax")
turnover = m.add_indirect_effect(base, expr="emax", prod=True)

prod=True targets production; False targets elimination. Inspect the resulting symbolic model, observation mapping, parameter signs and baseline conditions before fitting it to actual data. Pharmpy modeling API.

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan