Skip to content

The build

The pages of this section are for modellers first: this page and the tutorial show how a model is built and how the parts fit together; the pages of the parts say what each part does, which equations it generates and where its numbers come from.

How a model is built

How a model is composed The model package writes substances, chemistry, choices and PD components; build composes them with the physiology, the standard organ, the organ variants, the proteins, routes and sinks, impairment, observers and annotation of pkpdsim.pbpk into a comp model with one submodel per organ, which is flattened for simulation. model package (pkdb_models/models/<model>) Substances id, Mr, binding (fu), erythrocytes, Kp, urine Chemistry metabolism, transport, once per organ Choices organ variants, routes, sex, population PD components sbmlutils models with input and output ports build(definition, output_dir) pkpdsim.pbpk Physiology ICRP 89, scaling to BW Standard organ four parts, collapsing Organ variants zonated liver, nephron Proteins activity, inhibition Routes and sinks iv, oral, urine, bile Impairment Child-Pugh, CKD, NYHA Observers plasma, free, arm vein Annotation SBO, PBPKO, UBERON generated comp model, flattened result glimepiride_body.xml (comp) ├─ top: physiology, pools, substances, │ observers Carm, Chv, Aurine ├─ LI standard liver + GLI2M1, M12M2 ├─ KI standard kidney + filtration ├─ GU segmented intestine + oral dose └─ LU HE BR ... GO standard organs glimepiride_body_flat.xml: MODEL_PATH
  1. The model package describes its substances (Substance) and their chemistry (Metabolism, Transport, CustomReaction), and makes its choices in one PBPKDefinition: the organ variants (Variants, the standard organ everywhere else), the routes (Route), the PD components (PDComponent), the sex and the population.
  2. build(definition, output_dir) in the factory of the model validates the definition and composes the comp model: a top model with the physiology, the blood pools, the parameters of the substances, the sinks, the dose states and the observers (of the library and of the definition), the creators of the definition as model history, and one submodel per organ (LI, KI, GU, ...), the standard organ or a variant, which owns everything inside its boundary. Every port and every replacement is generated; the model package never writes a ReplacedElement.
  3. build writes the comp model <sid>.xml and flattens it into <sid>_flat.xml, the model which MODEL_PATH points at and which every simulation runs. Simulation never resolves comp. Both models are validated: the comp model without the units, the flat model with strict units, since libsbml checks the units of a comp model only in its top model and the flat model holds the math of every organ. The flattening copies the unit definitions of the model into every organ, so the flat model carried one set of units per organ and the math of an organ named the copy of its own submodel (LU__mmole); the copies are merged before the flat model is written (pkpdsim.sbml.flatten.merge_unit_definitions), so every unit is defined once and the math names the unit of the model (mmole).
  4. The experiments of the model set the covariates (BW, HEIGHT), the doses (PODOSE_<s>), the impairment (CP_severity, f_renal_function) and the activities of the proteins (LI__f_cyp2c9) as they do today, and read the observers (Carm_<s>, Aurine_<s>).

When a rebuild generates the same composed SBML, apart from generated model-history timestamps, build reuses the validated pair and preserves the contents and modification times of matching output files. The cache is the one of the user, pkpdsim/build of XDG_CACHE_HOME or of ~/.cache, where every entry is the pair of its key, so a build writes nothing into the directory of the models, which a model package tracks and compares against a rebuild. Set PKPDSIM_BUILD_CACHE to a directory to share validated builds between users or machines, or to off to run flattening and validation on every build. Changed SBML, validator versions or settings, and a damaged cache entry trigger a fresh validation. Builds with external SBML references always validate against their source files.

A definition

A simple substance needs a short specification and its chemistry: an oral drug, bound to albumin, with one Kp, renal filtration and a hepatic CYP3A4 metabolism into a metabolite.

from pkpdsim.pbpk import (
    MM,
    Binding,
    Excretion,
    Kp,
    Metabolism,
    Organ,
    PBPKDefinition,
    Route,
    Substance,
)

definition = PBPKDefinition(
    sid="api_body",
    substances=[
        Substance(
            "api",
            name="apixaban",
            mr=459.5,
            binding=Binding(fu=0.13, protein="albumin"),
            distribution=Kp(1.2, ftissue=5.0),
            excretion=Excretion(urine=True),
        ),
        Substance("api_m2", name="O-desmethyl apixaban", mr=445.5),
    ],
    chemistry=[
        Metabolism(
            "API2M2",
            Organ.LIVER,
            "api",
            products={"api_m2": 1.0},
            kinetics=MM(vmax=0.01, km=0.05),
            protein="CYP3A4",
        ),
    ],
    routes=[Route.iv("api"), Route.oral("api")],
)
definition.validate()
print([s.sid for s in definition.substances], definition.sex, definition.population)
['api', 'api_m2'] male european_icrp

The content of the model api_body: the anatomical figure (A) and the schematic (B), hover them for details (figures).

Everything else is a default: the standard organ in every organ (the segmented intestine for small and large intestine), the male ICRP 89 reference individual, the arm vein preset of PK-Sim. The tutorial builds and simulates such a model step by step.

How the parts fit

part what it is page
physiology the organs, their volumes, blood flows and blood (ICRP 89), the topology of the circulation, the scaling to the individual from BW and HEIGHT, the populations Physiology
standard organ plasma, blood cells, interstitial and intracellular space of every organ; only the parts a substance needs are built (collapsing) Standard organ
substances the mechanism flags of a substance: protein binding, erythrocytes, tissue distribution, excretion, inhibition and induction Substances
chemistry the processes of an organ, defined once per organ: metabolism, transport, custom reactions; the proteins with their activity factors Chemistry
organ variants alternatives of an organ with the boundary of the standard organ: the zonated liver, the nephron kidney, the intestines Organ variants
intestine and routes the lumen segments, dissolution, absorption, the mucosa, the bile and the enterohepatic circulation; the routes and the sinks Intestine and routes
impairment liver cirrhosis, chronic kidney disease and heart failure as parameter vectors on the physiology Impairment
observers the plasma, free and blood concentrations, the hepatic and the arm vein, the urinary excretion rate, the observers of a definition, the sampling sites of the fit mappings Observers
annotation the SBO, PBPKO, UBERON, NCIT, UniProt and ChEBI terms of every element Annotation

The migration guide explains the move of a hand-written model of pkdb_models onto the library, with the glimepiride model as example.

What is generated

Every quantity which depends on parameters only (the physiology, the impairment, the compartments, fu, BP, the coefficients and exchanges of the organs) is a constant with an initial assignment: an experiment which changes BW before the simulation changes every organ volume and flow with it, because sbmlsim evaluates the initial assignments again after the changes of an experiment. A change during a simulation is not followed, unless the definition names the parameter in PBPKDefinition.dynamic (an impairment changed in the middle of a study, a PD output): then every quantity downstream of it is an assignment rule. The start of the species of an endogenous substance (Substance.baseline, and the starts of a definition at the steady state of a production, PBPKDefinition.starts) is an initial assignment as well, which stays one under a dynamic parameter (see Substances). Only what reads a species is always an assignment rule: the outflow concentrations of the organs, the urinary excretion rate, the readouts and the observers; an observer of a definition which reads constants only is a constant with an initial assignment (see Observers). A model loaded with plain roadrunner sets a covariate with r.setValue("init(BW)", 100.0) and resets, so that the initial assignments are evaluated again.

Builds per sex

Sex is a choice of the build (PBPKDefinition.sex): it selects the male or female reference values when the model is built (the ICRP 89 anatomy, the hematocrit, the partition coefficients, the interstitial share, the GFR), and a study of both sexes uses one build per sex. A sex switch inside the SBML made the models load about ten times slower. The factory builds one definition for every sex of its studies, create_archive(DEFINITION, model_output_dir, model=..., copyright=..., sexes=(Sex.MALE, Sex.FEMALE)): the build of the sex of the definition keeps its id (<sid>_flat.xml, the master entry of the archive), the build of another sex is the definition with that sex and the id <sid>_<sex> (sex_definition, <sid>_female_flat.xml), each with its comp model, markdown and antimony in the archive. The master entry of the archive is the build of the sex of the definition, so a model with builds per sex keeps its definition male (the default): its master entry is the male build, the model_path of its model object. Without sexes the archive is the build of the sex of the definition, as before. The model object holds both builds (PKPDModel(model_path=..., female_model_path=...), see Models and their commands), the experiments choose one by the sex of their subjects (sex, see Experiments and their metadata), and the healthy GFR, the renal function of a clearance and the renal classes of an experiment are those of the build of its sex (see Impairment). The builds have the same ids, so a fit applies one parameter set to both.

Interactive panels

The interactive panels of a model (sbmlsim.panel.Panel, see the page Interactive panels of the sbmlsim documentation) are an annotation of the flat model of a build, which the factory writes with the model: create_archive(..., panels=...) takes one sequence of panels for every build or the panels of each build by its sex, e.g. panels={Sex.MALE: [...], Sex.FEMALE: [...]} (a key may be the text of the sex, "female"), and writes them into the flat model of their build (sbmlsim.panel_sbml.write_panels) before its ODEs, its antimony and the archive are written, so the archive holds the annotated models. A build without panels gets no annotation, and so does every build with panels=None, the default. A key which is no sex or names a sex which is not built, a panel id repeated within a build and an object which is no panel are refused before anything is written. pkpdsim.perfusion.create_archive(..., panels=[...]) writes the panels of a perfusion model into its flat model alike.

Values and their sources

Every number which the library writes into a model is a Value: the number, its unit and its source, a key of database/sources.toml (citation and DOI), and the generated SBML parameter carries the citation in its notes. The data files of the library (pkpdsim/database/tables/*.toml) give every number with its source; a number which no publication gives is a choice of the library with the source ModelChoice and a note which gives the reasoning. The tables of these pages are generated from the data files.

A number of a definition is a plain float (the unit of the model is implied), a Value, or a Formula over ids of the top model, which ties it to other parameters (a metabolite with the Kp of its parent, see Substances); a fitted value enters with its uncertainty from the record of its fit, fitted(FITS.parameter("Kp_api", unit=U.dimensionless)), and keeps the id which FITS.parameter and check_model resolve. The units are those of the models: time in min, amount in mmole, volume in litre, area in m2.

The id scheme

One id scheme for every model, built by the functions of pkpdsim.pbpk.ids, so that organs, observers, experiments and fits agree on the ids. The ids of the hand-written models are kept where they fit the scheme (Cve_<s>, Aurine_<s>, BW, f_renal_function, the submodel prefixes LI__, KI__, GU__). A local id of an organ is prefixed by its submodel in the flat model (LI__Cpl_api), an id of the top model is not. A substance id must be unique over all models (a metabolite takes the prefix of its parent, api_m2), must not contain __ and must not start with a token of the scheme (pl_, bc_, free_, z1_, ...).

id what made by
<O>__Cpl_<s> a local id of an organ in the flat model ids.flat(o, ids.species(part, s))
Cpl_<s> the plasma concentration in an organ (local) ids.species(part, s)
Cti_<s> the merged tissue (interstitial and intracellular) of an organ ids.species(Part.TISSUE, s)
Cu_ti_<s> the unbound tissue concentration of an organ ids.unbound(Part.TISSUE, s)
C<part>_pp_<s> the periportal mean of a part of a zonated organ, the mean of the first third of the sinusoid (local id, means of the zonated liver) ids.zonal_mean(part, s, True)
C<part>_pc_<s> the pericentral mean of a part of a zonated organ, the mean of the last third of the sinusoid (local id) ids.zonal_mean(part, s, False)
C<pool>_<s> the plasma concentration of a blood pool (ar, ve, po) ids.pool_species(pool, s)
C<pool>_bc_<s> the blood cells of a pool (kinetic erythrocytes) ids.pool_species(pool, s, Part.BLOOD_CELLS)
C<pool>_free_<s> the unbound plasma concentration of a pool ids.free(pool, s)
C<pool>_blood_<s> the blood concentration of a pool ids.blood(pool, s)
Carm_<s> the arm vein plasma concentration, the default fit target ids.arm(s)
Carm_free_<s> the unbound arm vein concentration ids.arm_free(s)
Chv_<s> the hepatic vein plasma concentration ids.hepatic_vein(s)
Cout_<o>_<s> the plasma leaving an organ ids.organ_outflow(o, s)
C<o>_<part>_<s> a species of an organ which a PD component or an observer reads (Cli_ic_<s>), an output of the organ ids.organ_species(o, ids.species(part, s))
Cu_<o>_<part>_<s> an unbound concentration of an organ part which a PD component or an observer reads (Cu_li_ic_<s>), an output of the organ ids.organ_species(o, ids.unbound(part, s))
Aurine_<s> the amount in urine ids.urine(s)
Rurine_<s> the urinary excretion rate (mmole/min), an output of the kidney ids.urine_rate(s)
Afeces_<s> the amount in feces ids.feces(s)
Aim_<s> the depot of a depot route (mmole), Asc_<s>, Arec_<s>, Ainh_<s> (the lung depot of an inhaled dose) ids.depot("im", s)
Aloss_im_<s> the amount of an injected depot which is not absorbed (mmole), Aloss_sc_<s>, Aloss_inh_<s> (the lost part of an inhaled dose); the rectal depot leaves into Afeces_<s> ids.depot_loss("im", s)
Alumen_<s> the dissolved amount in the intestinal lumen, the sum over the segments (mmole), a readout of the intestine ids.lumen_amount(s)
Rabs_<s> the absorption rate, the fluxes from the lumen into the intestinal wall (mmole/min), a readout of the intestine ids.absorption_rate(s)
Reff_<s> the efflux rate, the fluxes from the intestinal wall into the lumen (mmole/min), a readout of the intestine ids.efflux_rate(s)
Rfeces_<s> the fecal excretion rate, the net flux of the intestine into the feces (mmole/min), a readout of the intestine ids.feces_rate(s)
Aabs_<s> the amount absorbed from the lumen since the start, the integral of Rabs_<s> (mmole), a readout of the intestine ids.absorbed_amount(s)
Fa_<s> the gross absorbed fraction of the oral dose, Aabs_<s> over the oral dose given, a readout of the intestine ids.absorbed_fraction(s)
Aapp_<s> the oral dose which the intestine has applied, the integral of the outflows of the dose states (mmole), a local state of the intestine which Fa_<s> reads ids.oral_dose_applied(s)
Cbile_<s> the concentration in bile ids.bile(s)
Mr_<s> the molecular weight ids.mr(s)
fu_ref_<s> the unbound fraction of the healthy individual (input) ids.fu_ref(s)
fu_<s> the unbound fraction, fu_ref_<s> changed by the impairment ids.fu(s)
Kp_<s> the tissue to plasma coefficient of the substance ids.kp(s)
Kp_<o>_<s> the coefficient of one organ (an override, a Kp method or the interstitial share) ids.kp_organ(o, s)
fKp_<s> the factor of the coefficients of a Kp method or of the interstitial shares ids.fkp(s)
ftissue_<s> the whole-body exchange between plasma and tissue ids.ftissue(s)
PS_<s> the exchange of an organ (l/min, local id) ids.ps(s)
kps_<s> the exchange of an organ per litre of organ (ps, 1/min, local id) ids.kps(s)
Cslow_<s> the slow (deep) pool of the tissue of an organ (SlowPool, local id) ids.slow_species(s)
kslow_<s> the exchange of the slow pool per litre of tissue (1/min) ids.kslow(s)
Kpslow_<s> the slow pool to tissue coefficient at equilibrium ids.kp_slow(s)
PS_ref_<s> the exchange of the whole healthy liver (ps with ps_per_volume=False, l/min, local id) ids.ps_ref(s)
BP_<s> the blood to plasma ratio ids.bp(s)
Kbc_<s> the blood cell to plasma coefficient ids.kbc(s)
f_reabsorbed_<s> the constant fraction of the filtrate which is reabsorbed ids.fraction_reabsorbed(s)
reab_threshold_<s> the renal threshold of a saturable reabsorption, a concentration of the filtrate (mM) ids.reabsorption_threshold(s)
reab_n_<s> the sharpness of the threshold of a saturable reabsorption ids.reabsorption_n(s)
baseline_<s> the plasma concentration of an endogenous substance at the start (mM) ids.baseline(s)
CLss_<s> the clearance of the plasma of an organ at the generated steady state (l/min, local id); in the top model that of the arterial plasma by the body of a solved substance ids.steady_clearance(s)
Rss_<s> the net source into the plasma of an organ at the generated steady state (mmole/min, local id); in the top model that of the body of a solved substance ids.steady_rate(s)
Vss_<s> the capacity of the declared saturable rate of the plasma of an organ (mmole/min, local id) ids.steady_vmax(s)
Kss_<s> the Michaelis constant of the declared saturable rate of the plasma of an organ (mM, local id) ids.steady_km(s)
CLss_<o>_<s> a constant of the generated steady state of an organ in the top model, its output (Rss_<o>_<s>, Vss_<o>_<s>, Kss_<o>_<s> as well) ids.steady_clearance(s, o)
Css_<o>_<s> the plasma of the organ of a saturable process at the solved steady state (mM) ids.steady_plasma(o, s)
IVDOSE_<s> the intravenous dose state (mg) ids.iv_dose(s)
Ri_<s> the intravenous infusion (mg/min) ids.infusion_rate(s)
PODOSE_<s> the oral dose state of a tablet (mg) ids.po_dose(s)
SOLDOSE_<s> the oral dose state of a solution (mg) ids.sol_dose(s)
IMDOSE_<s> the dose state of a depot route (mg): intramuscular, SCDOSE_<s> subcutaneous ("sc"), RECDOSE_<s> rectal ("rectal"), INHDOSE_<s> inhaled ("inhaled") ids.depot_dose("im", s)
Ka_dis_<s> the first order dissolution of a tablet (1/hr) ids.dissolution(s)
ka_<s> the absorption rate constant of the small intestine (1/hr) ids.absorption(s)
Clumen_<seg>_<s> the dissolved substance in a lumen segment ids.lumen(s, seg)
Cmu_<seg>_<s> the mucosa (enterocytes) of a segment ids.mucosa(s, seg)
V<o> the volume of an organ (tissue and blood) ids.organ_volume(o)
Q<o> the blood flow of an organ (the hepatic artery for the liver) ids.organ_flow(o)
M<o> the tissue mass of an organ without blood ids.organ_mass(o)
f_vas_<o> the vascular fraction of the organ volume ids.vascular_fraction(o)
f_<protein> the activity of a protein in an organ (LI__f_cyp3a4) ids.activity(protein)
E_<protein> the turnover state of a protein in an organ ids.enzyme(protein)
Ki_<protein>_<s> the inhibition constant of a substance on a protein ids.ki(protein, s)
fimp_<o>_<protein> the factor of the impairment on a protein of an organ ids.impairment_activity(protein, o)
BW the body weight (kg) ids.BW
HEIGHT the height (cm) ids.HEIGHT
HCT the hematocrit ids.HCT
CO the cardiac output ids.CO
GFR the glomerular filtration rate ids.GFR
GFR_base the glomerular filtration rate at renal function 1 ids.GFR_BASE
f_renal_function the renal function, the GFR relative to healthy ids.F_RENAL_FUNCTION
f_cardiac_function the cardiac function, a factor on the cardiac output ids.F_CARDIAC_FUNCTION
CP_severity the severity of liver cirrhosis (0, Child-Pugh A 1, B 2, C 3) ids.CP_SEVERITY
HF_severity the severity of heart failure (0, NYHA I to IV 1 to 4) ids.HF_SEVERITY
f_shunt the portosystemic shunt of the liver ids.F_SHUNT
f_functional the functional fraction of the liver tissue ids.F_FUNCTIONAL
f_tubular the share of the tubular capacity of the kidney which follows the renal function (KI__f_tubular) ids.F_TUBULAR

Every other id of the scheme, the ids a model rarely reads: the physiology, the intestine and the nephron, the dissolution and the doses, the protein turnover, the starts and deltas of the observers and the reactions and local ids of the organs (<zone> a zone token z1, <tseg> a tubule segment pt, <kind> a dose iv, po or sol):

id what made by
AGE the age (yr), a covariate ids.AGE
CLOCK the clock time (hr) at the start of a simulation of a model with circadian rhythms, an initial value ids.CLOCK
GA the gestational age (weeks) of a pregnancy, an initial value ids.GA
BW_total the total body weight (kg) of a pregnant woman, with the masses of the pregnancy ids.BW_TOTAL
Qpla the blood flow of the placenta (l/min) ids.Q_PLACENTA
Vpla the volume of the placenta (l) ids.V_PLACENTA
Vfet the volume of the fetus (l) ids.V_FETUS
Cpla_<s> the concentration of a substance in the placenta (mM) ids.placenta_species(s)
Cfet_<s> the concentration of a substance in the fetus (mM) ids.fetus_species(s)
Kp_pla_<s> the placenta to plasma coefficient of a substance ids.kp_placenta(s)
Kp_fet_<s> the fetus to fetal plasma coefficient of a substance ids.kp_fetus(s)
PS_pla_<s> the transfer clearance of the placenta (l/min) ids.ps_placenta(s)
TOD the clock time (hr, 0 to 24) during a simulation of a model with circadian rhythms ids.TIME_OF_DAY
BMI the body mass index ids.BMI
BSA the body surface area (m2) ids.BSA
FFM the fat-free mass (kg) ids.FFM
FM the body fat mass (kg), BW - FFM (a model with adipose) ids.FM
FMI the fat mass index (kg/m2), the fat mass over the squared height ids.FMI
BFF the body fat fraction, the fat mass over the body weight ids.BFF
LBW the lean body weight (kg), the body weight without the adipose tissue ids.LBW
WAIST_base the waist circumference (cm) predicted from the covariates of the build ids.WAIST_BASE
f_waist the waist circumference over the predicted waist, the covariate of the visceral depot ids.F_WAIST
WAIST the waist circumference (cm) at the site of the WHO protocol ids.WAIST
WHtR the waist-to-height ratio ids.WHTR
f_vat the share of the adipose tissue which is visceral ids.F_VISCERAL
VAT the visceral adipose tissue (kg) ids.VAT
SAT the subcutaneous adipose tissue (kg) ids.SAT
BW0 the body weight (kg) at the start of a simulation of a model whose weight changes ids.BW_BASE
f_bw the fractional change of the body weight at the set point, the effect of the model ids.BW_EFFECT
BW_set the body weight (kg) the individual approaches, BW0*(1 + f_bw) ids.BW_SET
k_bw the rate (1/min) at which the body weight approaches its set point ids.K_BW
Mlean the mass of the lean organ tissues without their blood (kg) ids.MLEAN
SV_tis the scaling factor of the lean tissues, the blood and the cardiac output ids.SV_TIS
Vblood the total blood volume (l) ids.VBLOOD
CO_base the cardiac output without impairment, of which the organ flows are fractions ids.CO_BASE
b_CO the allometric exponent of the cardiac output on the body weight within a species (laboratory animals) ids.CO_EXPONENT
b_GFR the allometric exponent of the GFR on the body weight within a species (laboratory animals) ids.GFR_EXPONENT
Qh the total liver blood flow ids.QH
Qha the blood flow of the hepatic artery ids.QHA
Qpo the blood flow of the portal vein ids.QPO
PS_vas the exchange of plasma and interstitium of an organ (local id) ids.PS_VAS
PS_vas_<zone>_<s> the exchange of plasma and interstitium of a zone through its fenestrated endothelium, the sinusoid geometry (local id) ids.ps_vas(s, zone)
eGFR the GFR per 1.73 m2 body surface area of the renal function, which gives the CKD stage ids.EGFR
CKD_hepatic the switch (0 off, 1 on) of the hepatic changes of chronic kidney disease ids.CKD_HEPATIC
FED the prandial state, 0 fasted (default) and 1 fed, which slows the gastric emptying ids.FED
f_zone the volume fraction of a zone of a zonated organ, 1/n of n zones (local id) ids.F_ZONE
GU the submodel of the intestine (the small intestine, or the intestine which replaces small and large intestine) ids.GUT
Qgu the blood flow of small and large intestine (local id) ids.GUT_FLOW
Qgu_wall the blood flow of the intestinal wall past the mucosa (local id) ids.GUT_WALL_FLOW
Vgu the volume of the intestine which replaces small and large intestine (local id) ids.GUT_VOLUME
f_vas_gu the vascular fraction of the intestine (local id) ids.GUT_VASCULAR_FRACTION
f_int_gu the interstitial fraction of the intestine (local id) ids.GUT_INTERSTITIAL_FRACTION
f_wall the fraction of the intestinal tissue without the mucosa (local id) ids.WALL_FRACTION
f_mucosa_flow the fraction of the intestinal blood flow which perfuses the mucosa (local id) ids.F_MUCOSA_FLOW
f_mucosa_volume the fraction of the intestinal tissue which is mucosa (local id) ids.F_MUCOSA_VOLUME
Qmu_total the blood flow of the mucosa of all segments (local id) ids.MUCOSA_FLOW_TOTAL
Vmu_total the volume of the mucosa of all segments (local id) ids.MUCOSA_VOLUME_TOTAL
Vmu_si the volume of the mucosa of the segments of the small intestine (local id) ids.MUCOSA_VOLUME_SMALL
k_bile the rate of the transit of the bile into the intestinal lumen ids.K_BILE
t_lumen the transit time of the single intestinal lumen into the feces (local id) ids.T_LUMEN
T_st_fed the transit time of the stomach in the fed state (local id) ids.T_STOMACH_FED
T_st_eff the transit time of the stomach of the condition, (T_st + FED*(T_st_fed - T_st))*fimp_t_stomach (min), an output of the segmented intestine, an id of the top model ids.T_STOMACH
Vbile the volume of the bile, the compartment of Cbile_<s> ids.VBILE
Vfeces the compartment of the feces amounts Afeces_<s> ids.VFECES
Vim the compartment of the depots of a depot route, Vsc, Vrec, Vinh (amounts, nominal volume 1 l) ids.depot_compartment("im")
Vlumen the volume of the single intestinal lumen, the compartment of Clumen_<s> (local id) ids.VLUMEN
Vurine the compartment of the urine amounts Aurine_<s> ids.VURINE
<O> the submodel of an organ ids.submodel(o)
V<part> a compartment of an organ (local id) ids.compartment(part)
V<part>_<zone> a compartment of a zone of a zonated organ (local id) ids.compartment(part, zone)
z1 the token of the first zone of a zonated organ ids.zone(1)
Vti_wall a tissue compartment of the intestinal wall without the mucosa (local id) ids.wall_compartment(Part.TISSUE)
V<pool>_<part> a compartment of a blood pool ids.pool_compartment(pool, part)
V<pool> the volume of a blood pool ids.pool_volume(pool)
fV<pool> the volume of a blood pool as fraction of the blood volume ids.pool_fraction(pool)
V<pool>_pl_<s> the compartment of a pool species with erythrocytes in equilibrium ids.pool_capacity(pool, s)
Vpl_<s> the compartment of the plasma species of an organ with erythrocytes in equilibrium (local id) ids.plasma_capacity(s)
fQ<o> the blood flow of an organ as fraction of the cardiac output ids.flow_fraction(o)
f_int_<o> the interstitial fraction of the organ volume ids.interstitial_fraction(o)
GFR_ref the reference value of a parameter (GFR_ref, Mli_ref) ids.ref(ids.GFR)
fimp_GFR the factor of all impairments on a quantity ids.impairment_factor(ids.GFR)
fcp_albumin the factor of one condition (Child-Pugh, CKD) on a quantity ids.condition_factor('cp', 'albumin')
Vti_total_ref_<s> the reference tissue volume of the organs the substance enters ids.tissue_volume_total_ref(s)
K_int_pls_<s> the interstitial to plasma coefficient (local id) ids.k_int_pls(s)
K_cell_pls_<s> the intracellular to plasma coefficient (local id) ids.k_cell_pls(s)
K_or_<s> the organ to plasma coefficient of the flow-limited organ (local id) ids.k_organ(s)
kex_bc_<s> the exchange rate between plasma and blood cells (kinetic erythrocytes) ids.kbc_exchange(s)
Carm_blood_<s> the blood concentration of the arm vein ids.arm_blood(s)
w_arm_sk the weight of an organ outflow (or a pool) in the arm vein (w_arm_sk) ids.arm_weight(Organ.SKIN)
Chv_free_<s> the unbound concentration of the hepatic vein ids.hepatic_vein_free(s)
Chv_blood_<s> the blood concentration of the hepatic vein ids.hepatic_vein_blood(s)
Cout_<s> the concentration leaving an organ (local id) ids.outflow_conc(s)
Cout_bc_<s> the blood cell concentration leaving an organ (local id) ids.outflow_conc_bc(s)
Cout_<o>_bc_<s> the blood cell concentration leaving an organ ids.organ_outflow_bc(o, s)
Kiv_<s> the rate of an intravenous injection ids.injection_rate(s)
ti_<s> the half-life of an intravenous injection (s) ids.injection_time(s)
Ka_sol_<s> the rate of the application of a solution ids.solution(s)
ti_im_<s> the half-life of the application of a depot dose into its depot (s), ti_sc_<s>, ti_rec_<s>, ti_inh_<s> ids.depot_application_time("im", s)
ka_rec_<s> the rate of the absorption from a depot (1/hr), ka_im_<s>, ka_sc_<s>, ka_inh_<s> (from the lung depot) ids.depot_absorption_rate("rectal", s)
f_im_<s> the fraction of a depot which is absorbed, f_sc_<s>, f_rec_<s> ids.depot_fraction("im", s)
f_rec_portal_<s> the fraction of the absorbed rectal dose which enters the portal vein ids.rectal_portal_fraction(s)
f_inh_deposited_<s> the fraction of an inhaled dose which is deposited in the lung ids.inhaled_deposited_fraction(s)
f_inh_swallowed_<s> the fraction of an inhaled dose which is swallowed, added to PODOSE_<s> ids.inhaled_swallowed_fraction(s)
R_inh_swallow_<s> the swallowed part of an inhaled dose (mg/min), which the intestine adds to PODOSE_<s> ids.inhaled_swallow_rate(s)
fabs_<s> the fraction of the absorbed flux which enters the body ids.fraction_absorbed(s)
f_ka_colon_<s> the factor of the absorption in the large intestine (segmented intestine) ids.colon_absorption_factor(s)
f_ka_<seg>_<s> the factor of the absorption in a lumen segment, the regional absorption profile (segmented intestine) ids.regional_absorption_factor(s, seg)
kconv_<s>_<m> the rate constant (1/hr) of the conversion of <s> into the substance <m> in the lumen (segmented intestine) ids.lumen_conversion_rate(s, m)
J_conv_<seg>_<s>_<m> the conversion of <s> into the substance <m> in a lumen segment (local id) ids.lumen_conversion_reaction(s, m, seg)
J_dis_<seg>_<s> the dissolution in a lumen segment (local id) ids.dissolution_reaction(s, seg)
kdis_<s> the dissolution rate of a tablet (1/min, local id) ids.dissolution_rate(s)
f_dis_fed_<s> the factor of the dissolution rate in the fed state ids.dissolution_fed_factor(s)
f_dis_release_<s> the factor of the dissolution rate of a modified-release formulation ids.dissolution_release_factor(s)
lag_dis_<s> the lag time of a Weibull dissolution (min) ids.dissolution_lag(s)
t50_dis_<s> the time of half dissolution of a Weibull dissolution (min) ids.dissolution_t50(s)
shape_dis_<s> the shape of a Weibull dissolution ids.dissolution_shape(s)
D50_dis_<s> the undissolved amount of half the dissolution rate (mg) ids.dissolution_dose50(s)
age_dis_<s> the mean age of the undissolved dose (min, local id) ids.dissolution_age(s)
W_dis_<s> the age-weighted undissolved amount (mmole*min, local id) ids.dissolution_clock(s)
Asolid_<seg>_<s> the undissolved amount in a lumen segment (local id) ids.solid(s, seg)
Vlumen_<seg> the volume of a lumen segment (local id) ids.lumen_volume(seg)
T_<seg> the transit time of a lumen segment (local id) ids.transit_time(seg)
f_area_<seg> the absorption scaling of a lumen segment (local id) ids.area_factor(seg)
Vmu_<seg> the volume of the mucosa of a segment (local id) ids.mucosa_volume(seg)
Qmu_<seg> the blood flow of the mucosa of a segment (local id) ids.mucosa_flow(seg)
K_mu_<s> the mucosa to plasma coefficient (local id) ids.mucosa_coefficient(s)
Cu_mu_<seg>_<s> the unbound concentration in the mucosa of a segment (local id) ids.mucosa_unbound(s, seg)
kps_mu_<s> the exchange between the mucosal blood and the enterocytes per litre of mucosa (local id) ids.mucosa_kps(s)
PS_mu_ref_<s> the exchange between the mucosal blood and the enterocytes of the mucosa of the small intestine (local id) ids.mucosa_ps_ref(s)
PS_mu_<seg>_<s> the exchange between the mucosal blood and the enterocytes of a segment (local id) ids.mucosa_ps(s, seg)
Qgut_<seg>_<s> the hybrid flow of the permeability-limited mucosa of a segment (local id) ids.mucosa_qgut(s, seg)
Ctub_<tseg>_<s> the concentration in the lumen of a tubule segment of the nephron kidney (local id) ids.tubule(s, tseg)
Vtub_<tseg> the volume of the lumen of a tubule segment (local id) ids.tubule_volume(tseg)
f_tub_<tseg> the tubular flow leaving a segment as fraction of the GFR (local id) ids.tubule_flow_fraction(tseg)
kdeg_<protein> the degradation rate of a protein in an organ (turnover) ids.kdeg(protein)
Kiu_<protein>_<s> the uncompetitive constant of a mixed inhibition ids.kiu(protein, s)
kinact_<protein>_<s> the maximal inactivation rate of a mechanism-based inhibition ids.kinact(protein, s)
Emax_<protein>_<s> the maximal induction of a protein ids.emax(protein, s)
EC50_<protein>_<s> the half-maximal inducing concentration ids.ec50(protein, s)
Kstab_<protein>_<s> the stabilisation constant of a substance on a protein (halves the degradation) ids.kstab(protein, s)
p_cyp3a4_<zone> the relative abundance of a profile in a zone (local id) ids.placement_profile('cyp3a4', zone)
w_cyp3a4_<seg> the share of a process in a segment or a zone (local id) ids.placement_weight('cyp3a4', seg)
API2M_<seg> a process of the chemistry in a segment or a zone (local id) ids.segment_process('API2M', seg)
<p>_Vmax_ratio the ratio of a constant of a process to the same constant of another process of the organ, RateOf (local id) ids.rate_ratio('API2M', 'Vmax')
f_<p>_<s> the fraction of a metabolism which forms a product, a value or the remainder REST (local id) ids.product_fraction('API2M', s)
<p>_to_<s> the formation of a product of a metabolism with product fractions (local id) ids.product_reaction('API2M', s)
Asi_solid_<seg>_<s> an amount species of an organ which a PD component or an observer reads (A<x> as A<o>_<x>), an output of the organ ids.organ_species(Organ.SMALL_INTESTINE, ids.solid(s, seg))
Carm_api_0 the base of a delta, the value of an observer at the start (PBPKDefinition.deltas) ids.delta_base('Carm_api')
Carm_api_delta the change of an observer over its start (PBPKDefinition.deltas) ids.delta('Carm_api')
J_<kind>_<s> the application of a dose state (iv, po, sol) ids.dose_reaction(kind, s)
J_im_<s> the application of a depot dose into its depot, J_sc_<s>, J_rec_<s>, J_inh_<s> (the deposited part of an inhaled dose) ids.depot_application("im", s)
J_rec_abs_po_<s> the absorption from a depot into the venous plasma (J_im_abs_<s>), of the rectal depot also into the portal plasma, of the inhaled depot into the plasma of the lung (J_inh_abs_<s>, a local id of that organ) ids.depot_absorption("rectal", s, portal=True)
J_sc_loss_<s> the part of a depot which is not absorbed, into its sink, of an inhaled dose the part which is neither deposited nor swallowed (J_inh_loss_<s>) ids.depot_loss_reaction("sc", s)
J_ti_<s> the passive exchange into a part of an organ (local id) ids.exchange_reaction(Part.TISSUE, s)
J_slow_<s> the exchange between the tissue and its slow pool (local id) ids.slow_reaction(s)
J_in_ar_<part>_<s> the inflow from a pool into an organ (local id) ids.inflow_reaction(Pool.ARTERIAL, part, s)
J_out_<part>_<s> the outflow from an organ into its pool (local id) ids.outflow_reaction(part, s)
J_shunt_po_<part>_<s> the shunt from a pool past the liver (local id) ids.shunt_reaction(Pool.PORTAL, part, s)
J_sin_<zone>_<part>_<s> the flow from a zone into the next one (local id) ids.sinusoid_reaction(part, s, zone)
D_<zone>_<part>_<s> the axial diffusion from a zone into the next one, the sinusoid geometry (local id) ids.axial_reaction(part, s, zone)
J_bc_<pool>_<s> the exchange between plasma and blood cells of a pool ids.pool_exchange_reaction(pool, s)
J_gfr_<s> the glomerular filtration into the urine (local id) ids.filtration_reaction(s)
J_bile_<s> the transit of the bile into the intestinal lumen ids.bile_reaction(s)
J_abs_<seg>_<s> the absorption from a lumen segment (local id) ids.absorption_reaction(s, seg)
J_feces_<seg>_<s> the unabsorbed fraction of the absorption into the feces (local id) ids.feces_reaction(s, seg)
J_tr_<seg>_<s> the transit out of a lumen segment (local id) ids.transit_reaction(s, seg)
J_mu_in_<seg>_<s> a flow of the mucosa of a segment (local id) ids.mucosa_reaction('in', s, seg)
J_tub_<tseg>_<s> the tubular flow out of a tubule segment (local id) ids.tubule_reaction(s, tseg)
J_reab_<s> the reabsorbed fraction out of the collecting duct (local id) ids.tubule_reabsorption_reaction(s)
Vli_<lobe> the volume of a lobe of the liver, a state while it remodels ids.lobe_volume(lobe)
Vli_lobes the volume of the lobes which are there ids.VLI_LOBES
Vli_ref the volume of the intact liver of the individual ids.VLI_REF
f_remnant the fraction of the intact liver which is there, the remnant of a resection ids.F_REMNANT
f_vol_<lobe> the share of the liver volume a lobe holds at a time ids.lobe_volume_fraction(lobe)
f_vol_ref_<lobe> the share of the intact liver of a lobe, the anatomy of the lobe table ids.lobe_reference_fraction(lobe)
f_present_<lobe> whether a lobe is in place, 0 once it is resected ids.lobe_present(lobe)
f_ha_<lobe> the share of the hepatic arterial inflow a lobe takes ids.arterial_fraction(lobe)
f_po_<lobe> the share of the portal inflow a lobe takes ids.portal_fraction(lobe)
g_ha_<lobe> the patency of the hepatic artery branch of a lobe, 0 once it is ligated ids.arterial_conductance(lobe)
g_po_<lobe> the patency of the portal vein branch of a lobe ids.portal_conductance(lobe)
Qpo_<lobe> a hepatic flow of a single lobe, one per branch ids.lobe_flow(ids.QPO, lobe)
Qpo_ref_<lobe> the flow of a branch of a lobe of the liver at rest, the reference of the resistances and of the buffer response ids.lobe_reference_flow(ids.QPO, lobe)
CV_R_po_<lobe> the resistance of a branch of a lobe in the pressure network ids.lobe_resistance(ids.QPO, lobe)
CV_P_li_<lobe> the sinusoidal pressure node of a lobe ids.lobe_pressure(lobe)
CV_hepatic_balance_<lobe> the algebraic balance of the three branches at the node of a lobe ids.lobe_balance(lobe)
f_habr_<lobe> the factor the hepatic arterial buffer response puts on the arterial conductance of a lobe ids.buffer_factor(lobe)
habr_gain the gain of the hepatic arterial buffer response ids.HABR_GAIN
q_<lobe> the perfusion per volume of a lobe, the stimulus of the growth law ids.lobe_perfusion(lobe)
dVli_<lobe> the growth rate of the volume of a lobe ids.lobe_growth(lobe)
Cout_<o>_<lobe>_<s> the concentration of the blood leaving a lobe, the exposure of the lobe ids.lobe_outflow(o, lobe, s)
<lobe>_<zone> a site of the liver, the lobe and the zone of a part of the tissue ids.site(lobe, zone)
J_remodel_<lobe>_<zone>_<part>_<s> the amount atrophied tissue carries out of a site (local id) ids.remodelling_reaction(part, s, ids.site(lobe, zone))

A process of the chemistry keeps the id its definition gives (API2M2), its parameters are <p>_Vmax, <p>_Km, <p>_k, <p>_n in the organ (LI__API2M2_Vmax in the flat model), the ratio of a shared constant <p>_Vmax_ratio, the product fractions f_<p>_<s>, and the parameters of a custom reaction keep their ids in the organ (MU__k_deep). The tables are checked against pkpdsim.pbpk.ids by tests/docs/test_pbpk_ids.py: every row is made by its function, and every name of ids.__all__ has a row (but the tuples of the segment tokens and species_of, which lists ids), so a new id of the scheme fails the test until it is documented.