跳到正文

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

组织 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/dataset-standards.md

Preserve event meaning

Keep one record per event/observation with numeric ID and a time basis interpretable across the complete subject history. TIME generally advances from a subject/occasion origin; TAD is separate. NONMEM reset events (EVID 3/4) can restart the model/time; do not treat every dose as a reset. IDs must remain contiguous in the file. Sorting by TIME alone can corrupt tied-event order.

Field Meaning and common checks
ID Numeric subject identifier in NONMEM; do not concatenate discontinuous blocks silently
TIME Actual event time; units consistent with CL, Q, ka and infusion rate
DV Numeric observation when MDV=0; missing placeholders only under declared semantics
EVID 0 observation, 1 dose, 2 other, 3 reset, 4 reset+dose (ordinary cases)
MDV Whether DV contributes to likelihood; advanced values are engine-specific
AMT Amount administered, with stated units and input compartment
RATE 0 bolus; positive infusion rate; -1 modeled rate Rn; -2 modeled duration Dn
II/ADDL Interval and additional doses; ADDL requires a meaningful positive interval
SS Engine-specific steady-state instruction; does not prove real-world steady state
CMT Model compartment, not an assay or analyte label
BLQ/LLOQ Separate censoring indicator and assay threshold

For an ongoing constant steady-state infusion, SS with AMT=0 and positive RATE uses II=0; a blanket rule requiring AMT>0 and II>0 would reject valid data. Other advanced dosing conventions must be checked against the installed engine manual. NONMEM was not run in this refresh. Vendor platform and documentation access.

Ordering and missingness

A pre-dose sample belongs before the same-time dose; a post-dose sample belongs after it. Infer order from collection/administration records, not an arbitrary epsilon. The checker cannot resolve unknown order. Do not invent dose history from nominal schedules when actual doses are available.

Nonnumeric DV is not a safe representation of BLQ. Use documented numeric placeholders plus censoring flags and a model likelihood. The parser's treatment of tokens depends on engine/data configuration; there is no universal guarantee that text becomes zero. Genuine missing samples, BLQ observations and data excluded for a prespecified reason are separate categories.

Carry units and provenance for covariates (weight, age, renal function estimate, genotype). Time-varying weight or organ function should not silently become baseline constants. Renal estimates in mL/min and mL/min/1.73m² are not interchangeable; record the equation and indexing.

What the bundled checker establishes

check_popk_dataset.py checks common row consistency, finite numeric values, subject blocks, time/reset ordering, dosing fields, observation count, covariates and duplicate/tied records. It is not an NM-TRAN validator, dose reconstruction engine, censoring-likelihood check or proof that a particular control stream interprets the data correctly. Pure PD, placebo, multi-analyte and advanced dosing workflows need a tailored schema. Keep the derivation code and compare model predictions around event boundaries using an independent simple case.

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

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

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

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