Logo: Pkpd Translation

Pkpd Translation

Organisatioun
K-Dense-AI
pkpd-translation

Turn in vitro potency and animal pharmacokinetics into a defensible human dose projection — the arithmetic that decides whether a compound can reach its target concentration safely. Use this skill for non-compartmental analysis of a concentration-time profile (AUC, Cmax, terminal half-life, clearance, volume of distribution), one- and two-compartment simulation of a dosing regimen, interspecies allometric scaling, human-equivalent dose conversion by body surface area, and the exposure margin between a projected therapeutic concentration and a toxicology no-effect level. Also trigger on non-compartmental analysis, AUC, clearance, volume of distribution, allometric scaling, human equivalent dose, first-in-human, NOAEL, therapeutic index, or exposure margin.

Iwwersiicht

EditeurK-Dense-AI
Repositorydrug-discovery-agent-skills
Skill-Nummpkpd-translation
Stären
51
Forks
5
Matgeliwwert Dateien
7
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    K-Dense-AI huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Pkpd Translation an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/pkpd-translation
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/K-Dense-AI/drug-discovery-agent-skills.git /tmp/drug-discovery-agent-skills
mkdir -p .claude/skills
cp -r /tmp/drug-discovery-agent-skills/skills/pkpd-translation .claude/skills/pkpd-translation
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Pkpd Translation an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Pkpd Translation automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Pkpd Translation net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

PK/PD Translation

The arithmetic between a number on a plate and a number on a label. It decides whether a compound can reach its target concentration at a dose people can tolerate — and it is where a surprising number of programmes discover, late, that it cannot.

No installation, no network, no key. Every calculation here is closed-form or a fixed-step numerical integration in the standard library. Reference: FDA, Estimating the Maximum Safe Starting Dose in Initial Clinical Trials for Therapeutics in Adult Healthy Volunteers (2005) — the Km factors are its Table 1.

Read references/nca-and-parameters.md before quoting a PK parameter, references/interspecies-scaling.md before converting a dose between species, and references/translating-potency-to-dose.md before turning an IC50 into a dose — that one is judgement, not syntax.

The four scripts

ScriptAnswers
nca.pyWhat are this profile's clearance, volume, and half-life?
pk_compartmental.pyWhat does this regimen look like at steady state?
allometry.pyWhat is the human equivalent of this animal dose?
exposure_margin.pyDoes the projected exposure cover the target, and is it safe?

Free drug, or the answer is wrong by 1/fu

This is the one to get right. Only unbound drug engages the target. Comparing a total plasma concentration against a free-drug IC50 is the most common translation error, and at 99% protein binding it is a hundredfold error in the dangerous direction:

C_free = C_total x fu       1000 nM total at fu = 0.01  ->  10 nM free

Against a 100 nM IC50 that is tenfold under-coverage, not the tenfold coverage the total number suggests. exposure_margin.py coverage takes --fu and reports both.

A related trap: 50% inhibition is rarely enough. Occupancy is C/(C+Ki), so 90% needs nine times Ki and 95% needs nineteen. Ask what fraction the biology requires, and for how long.

Non-compartmental analysis

bash
python skills/pkpd-translation/scripts/nca.py --times 0.25,0.5,1,2,4,6,8,12,18,24,36,48 \
    --conc 9.75,9.51,9.05,8.19,6.70,5.49,4.49,3.01,1.65,0.91,0.27,0.08 --dose 100 --route iv

Validated against an analytic one-compartment case (D = 100, V = 10, k = 0.1), this returns CL = 1.000000, Vz = 10.000000, t½ = 6.931472, AUC(0–∞) = 100.000000 — exact.

Three defaults that matter. Linear-up / log-down trapezoid, because a straight line between two descending points sits above an exponential and inflates AUC. Back-extrapolation to C0 for IV bolus, because sampling never starts at t = 0 and the missing first segment was 2.5% of AUC in the case above. And CL/F and Vz/F labelling after oral dosing, because calling them CL and V assumes complete bioavailability.

nca.py warns when the terminal fit is poor or when more than 20% of AUC(0–∞) is extrapolated past the last sample — above that, CL and Vz are guesses.

Steady state

bash
python skills/pkpd-translation/scripts/pk_compartmental.py steady --dose 100 --cl 5 --v 50 --tau 24
half_life_h  accumulation_ratio  time_to_95pct_ss_h  css_max  css_min  css_avg  auc_tau
6.93147      1.09977             29.9573             2.19954  0.199538 0.833333 20

Accumulation depends on half-life and interval, never on dose — R = 1/(1 − e^(−kτ)). Doubling the dose moves every concentration and leaves the ratio alone. Time to steady state depends only on half-life, about 4.3 half-lives to 95%, which is why loading doses exist.

Note Css,min of 0.2 against Css,avg of 0.83: the average hides a fourfold swing. Report all three.

Species conversion

bash
python skills/pkpd-translation/scripts/allometry.py hed --species rat --species dog --dose 50
species  km  divide_by  hed_mg_kg  hed_total_mg_60kg
rat      6   6.167      8.10811    486.486
dog      20  1.85       27.027     1621.62

Never transfer mg/kg directly. Metabolic rate scales with surface area, so a rat dose divides by about 6.2 and a dog dose by 1.8. Skipping that step overdoses the first human cohort by exactly that factor.

fih takes NOAELs across species, converts each, and applies a safety factor to the lowest — the most sensitive species sets the dose, not the average. The default factor of 10 should rise for steep dose–response, irreversible toxicity, or a novel target. For biologics and agonists, MABEL usually governs instead of the NOAEL route; TGN1412 started 500-fold below the NOAEL HED and still nearly killed six volunteers.

Coverage and margin

bash
python skills/pkpd-translation/scripts/exposure_margin.py coverage \
    --dose 100 --cl 5 --v 50 --tau 24 --target-conc 0.05 --fu 0.02
python skills/pkpd-translation/scripts/exposure_margin.py margin \
    --tox-cmax 12000 --eff-cmax 400

Both sides of a margin must be the same metric and the same binding basis. A total-drug toxicology Cmax against a free-drug efficacy target inflates the margin by 1/fu.

Four ways this arithmetic misleads

  1. The efficacy driver and the tolerability driver are often different metrics. Time above threshold versus Cmax argues for smaller, more frequent doses; the reverse argues the opposite.
  2. Single-dose PK does not give the steady-state trough, and the trough is what determines whether coverage holds through the interval.
  3. Everything assumes linear PK. Saturable metabolism, absorption, or binding breaks superposition, and then none of the accumulation arithmetic applies.
  4. This is a typical subject, not a population. Real between-subject variability is severalfold and is not represented anywhere here.

When to stop using these scripts

When the site of action is not plasma (brain, tumour, intracellular), when transporters or first-pass metabolism dominate, when you need a population rather than a typical subject, or when the PD is delayed or tolerance-developing. Use PK-Sim/MoBi (Open Systems Pharmacology, open source) for PBPK, and NONMEM, Monolix, or nlmixr2 for population PK/PD.

Composing with the rest of the bundle

  • admet-prediction → here: predicted clearance, half-life, and plasma protein binding as inputs.
  • chembl → here: a measured IC50 or Ki to translate into a target concentration.
  • openfda → alongside: the approved label's dose and interval as a real-world anchor.
  • clinicaltrials → alongside: what doses have actually been taken into humans.
  • free-energy-perturbation → before: a potency number worth translating.

Reporting results honestly

Give the free concentration and the fu behind it. Name the exposure metric you believe drives efficacy and say why. Give Cmax, Cmin, and Cavg, not one. Give margins on a stated matched basis. Say that this is a one- or two-compartment plasma approximation for a typical subject with no population variability — it is planning arithmetic, not a regulatory submission.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Pkpd Translation?

Turn in vitro potency and animal pharmacokinetics into a defensible human dose projection — the arithmetic that decides whether a compound can reach its target concentration safely. Use this skill for non-compartmental analysis of a concentration-time profile (AUC, Cmax, terminal half-life, clearance, volume of distribution), one- and two-compartment simulation of a dosing regimen, interspecies allometric scaling, human-equivalent dose conversion by body surface area, and the exposure margin between a projected therapeutic concentration and a toxicology no-effect level. Also trigger on non-...

Firwat Pkpd Translation op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Pkpd Translation besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Pkpd Translation an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/K-Dense-AI/drug-discovery-agent-skills/tree/main/skills/pkpd-translation an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Pkpd Translation benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Pkpd Translation benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Pkpd Translation domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Pkpd Translation gratis?

Jo. K-Dense-AI huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇