Skip to content

pbpk ids and data

The id scheme, the annotation, the values with provenance, the data files and the units of the PBPK library, see Annotation. The values and the units of every model of pkpdsim are the SBML writing kit's, see sbml.

ids

The id scheme of the PBPK models.

Every id of a generated model is built here, so that the organs, the observers and the fits agree on them. A flat id is <ORGAN>__<local id> (LI__Cpl_api), the ids of substances are suffixed by _<substance>.

BW module-attribute

BW = 'BW'

The body weight (covariate).

HEIGHT module-attribute

HEIGHT = 'HEIGHT'

The height (covariate).

AGE module-attribute

AGE = 'AGE'

The age (covariate).

GA module-attribute

GA = 'GA'

The gestational age (weeks) of a pregnancy (pkpdsim.pbpk.pregnancy); 0 not pregnant, 40 term. An initial value, as the covariates.

BW_TOTAL module-attribute

BW_TOTAL = 'BW_total'

The total body weight of a pregnant woman (kg): the body weight of the covariates and the masses of the pregnancy.

Q_PLACENTA module-attribute

Q_PLACENTA = 'Qpla'

The blood flow of the placenta (l/min).

V_PLACENTA module-attribute

V_PLACENTA = 'Vpla'

The volume of the placenta (l).

V_FETUS module-attribute

V_FETUS = 'Vfet'

The volume of the fetus (l).

CLOCK module-attribute

CLOCK = 'CLOCK'

The clock time (hr) at the start of a simulation, time 0, of a model with circadian rhythms (pkpdsim.pbpk.circadian); an initial value.

TIME_OF_DAY module-attribute

TIME_OF_DAY = 'TOD'

The clock time (hr, 0 to 24) during a simulation of a model with circadian rhythms, CLOCK plus the time of the simulation.

BMI module-attribute

BMI = 'BMI'

The body mass index.

BW_BASE module-attribute

BW_BASE = 'BW0'

The body weight (kg) at the start of a simulation of a model whose body weight changes (pkpdsim.pbpk.adipose).

BW_SET module-attribute

BW_SET = 'BW_set'

The body weight (kg) the individual approaches, the weight at the start and the effect of the model, BW0*(1 + f_bw).

BW_EFFECT module-attribute

BW_EFFECT = 'f_bw'

The fractional change of the body weight at the set point, the effect of a model (negative for a loss).

K_BW module-attribute

K_BW = 'k_bw'

The rate (1/min) at which the body weight approaches its set point.

LBW module-attribute

LBW = 'LBW'

The lean body weight (kg), the body weight without the adipose tissue.

FM module-attribute

FM = 'FM'

The body fat mass (kg), the body weight without the fat-free mass.

FMI module-attribute

FMI = 'FMI'

The fat mass index (kg/m2), the body fat mass over the squared height.

BFF module-attribute

BFF = 'BFF'

The body fat fraction, the body fat mass over the body weight.

VAT module-attribute

VAT = 'VAT'

The visceral adipose tissue mass (kg).

SAT module-attribute

SAT = 'SAT'

The subcutaneous adipose tissue mass (kg), the rest of the adipose tissue.

F_VISCERAL module-attribute

F_VISCERAL = 'f_vat'

The visceral share of the adipose tissue.

WAIST module-attribute

WAIST = 'WAIST'

The waist circumference (cm) at the site of the WHO protocol.

WAIST_BASE module-attribute

WAIST_BASE = 'WAIST_base'

The waist circumference (cm) predicted from the covariates of the build.

F_WAIST module-attribute

F_WAIST = 'f_waist'

The waist circumference over the waist predicted from the covariates.

WHTR module-attribute

WHTR = 'WHtR'

The waist-to-height ratio.

BSA module-attribute

BSA = 'BSA'

The body surface area.

FFM module-attribute

FFM = 'FFM'

The fat-free mass.

HCT module-attribute

HCT = 'HCT'

The hematocrit.

CO module-attribute

CO = 'CO'

The cardiac output.

CO_BASE module-attribute

CO_BASE = 'CO_base'

The cardiac output without impairment, of which the organ flows are fractions.

GFR module-attribute

GFR = 'GFR'

The glomerular filtration rate.

GFR_BASE module-attribute

GFR_BASE = 'GFR_base'

The glomerular filtration rate at renal function 1, of which the renal function is the factor.

VBLOOD module-attribute

VBLOOD = 'Vblood'

The total blood volume.

MLEAN module-attribute

MLEAN = 'Mlean'

The mass of the lean organ tissues without their blood.

CO_EXPONENT module-attribute

CO_EXPONENT = 'b_CO'

The allometric exponent of the cardiac output on the body weight within a species (the builds of the laboratory animals, CO = CO_ref*(BW/BW_ref)^b_CO).

GFR_EXPONENT module-attribute

GFR_EXPONENT = 'b_GFR'

The allometric exponent of the GFR on the body weight within a species (the builds of the laboratory animals).

SV_TIS module-attribute

SV_TIS = 'SV_tis'

The scaling factor of the lean tissues, the blood and the cardiac output.

QHA module-attribute

QHA = 'Qha'

The hepatic arterial blood flow.

QPO module-attribute

QPO = 'Qpo'

The portal venous blood flow.

QH module-attribute

QH = 'Qh'

The total liver blood flow.

HEPATIC_FLOWS module-attribute

HEPATIC_FLOWS = (QHA, QPO, QH)

The blood flows of the liver which a lobe has its own share of (lobe_flow).

F_RENAL_FUNCTION module-attribute

F_RENAL_FUNCTION = 'f_renal_function'

The renal function relative to normal.

F_CARDIAC_FUNCTION module-attribute

F_CARDIAC_FUNCTION = 'f_cardiac_function'

The cardiac function (cardiac output) relative to normal.

F_SHUNT module-attribute

F_SHUNT = 'f_shunt'

The portosystemic shunt: the fraction of the liver inflow which bypasses the liver.

F_FUNCTIONAL module-attribute

F_FUNCTIONAL = 'f_functional'

The functional fraction of the liver tissue.

F_TUBULAR module-attribute

F_TUBULAR = 'f_tubular'

The share of the tubular capacity of the kidney which follows the renal function.

CP_SEVERITY module-attribute

CP_SEVERITY = 'CP_severity'

The severity of liver cirrhosis: 0 healthy, 1, 2, 3 the Child-Pugh classes A, B, C.

HF_SEVERITY module-attribute

HF_SEVERITY = 'HF_severity'

The severity of heart failure: 0 healthy, 1 to 4 the NYHA classes I to IV.

CKD_HEPATIC module-attribute

CKD_HEPATIC = 'CKD_hepatic'

The switch (0 off, 1 on) of the hepatic changes of chronic kidney disease.

EGFR module-attribute

EGFR = 'eGFR'

The GFR per 1.73 m2 body surface area of the renal function, which gives the CKD stage.

F_ZONE module-attribute

F_ZONE = 'f_zone'

The volume fraction of a zone of a zonated organ, 1/n of n zones.

VLI_REF module-attribute

VLI_REF = 'Vli_ref'

The id of the reference volume of the liver, the intact organ.

The liver volume the physiology derives from the body weight, which the lobes share.

VLI_LOBES module-attribute

VLI_LOBES = 'Vli_lobes'

The id of the sum of the volumes of the lobes, the liver which is there.

F_REMNANT module-attribute

F_REMNANT = 'f_remnant'

The share of the reference liver volume which is left: 1 intact, 1 - resected.

VBILE module-attribute

VBILE = 'Vbile'

The volume of the bile, the compartment of Cbile_<s>.

VURINE module-attribute

VURINE = 'Vurine'

The compartment of the urine amounts Aurine_<s>.

VLUMEN module-attribute

VLUMEN = 'Vlumen'

The local volume of the single intestinal lumen, the compartment of Clumen_<s>.

VFECES module-attribute

VFECES = 'Vfeces'

The compartment of the feces amounts Afeces_<s>.

K_BILE module-attribute

K_BILE = 'k_bile'

The rate of the transit of the bile into the intestinal lumen.

T_LUMEN module-attribute

T_LUMEN = 't_lumen'

The local transit time of the single intestinal lumen into the feces.

FED module-attribute

FED = 'FED'

The prandial state, 0 fasted (default) and 1 fed: it slows the gastric emptying.

GUT module-attribute

GUT = 'GU'

The id of the submodel of the intestine (the small intestine, or the segmented and single lumen intestine, which replace small and large intestine), the prefix of the hand-written models GU__.

GUT_VOLUME module-attribute

GUT_VOLUME = 'Vgu'

The local volume of the intestine which replaces small and large intestine, Vsi + Vla.

GUT_VASCULAR_FRACTION module-attribute

GUT_VASCULAR_FRACTION = 'f_vas_gu'

The local vascular fraction of the intestine of small and large intestine.

GUT_INTERSTITIAL_FRACTION module-attribute

GUT_INTERSTITIAL_FRACTION = 'f_int_gu'

The local interstitial fraction of the intestine of small and large intestine.

GUT_FLOW module-attribute

GUT_FLOW = 'Qgu'

The local blood flow of the intestine of small and large intestine, Qsi + Qla.

GUT_WALL_FLOW module-attribute

GUT_WALL_FLOW = 'Qgu_wall'

The local blood flow of the intestinal wall past the mucosa, Qgu - Qmu_total.

MUCOSA_FLOW_TOTAL module-attribute

MUCOSA_FLOW_TOTAL = 'Qmu_total'

The local blood flow of the mucosa of all segments.

MUCOSA_VOLUME_TOTAL module-attribute

MUCOSA_VOLUME_TOTAL = 'Vmu_total'

The local volume of the mucosa of all segments.

MUCOSA_VOLUME_SMALL module-attribute

MUCOSA_VOLUME_SMALL = 'Vmu_si'

The local volume of the mucosa of the segments of the small intestine, over which the exchange of the mucosa of the small intestine of a permeability-limited mucosa is normalised (PS_mu_ref_<s>); an intestine whose whole mucosa is that of the small intestine (the single lumen) uses Vmu_total.

WALL_FRACTION module-attribute

WALL_FRACTION = 'f_wall'

The local fraction of the intestinal tissue without the mucosa, 1 - Vmu_total/Vti.

F_MUCOSA_VOLUME module-attribute

F_MUCOSA_VOLUME = 'f_mucosa_volume'

The local fraction of the intestinal tissue which is mucosa.

F_MUCOSA_FLOW module-attribute

F_MUCOSA_FLOW = 'f_mucosa_flow'

The local fraction of the intestinal blood flow which perfuses the mucosa.

T_STOMACH_FED module-attribute

T_STOMACH_FED = 'T_st_fed'

The local transit time of the stomach in the fed state.

T_STOMACH module-attribute

T_STOMACH = 'T_st_eff'

The transit time of the stomach which the transit of the stomach reads: of the prandial state (FED, T_st fasted to T_st_fed fed) times the factor of the gastric emptying of chronic kidney disease, a constant of the segmented intestine and its output, an id of the top model (min).

GUT_SEGMENTS module-attribute

GUT_SEGMENTS = (
    "st",
    "du",
    "jej1",
    "jej2",
    "ile1",
    "ile2",
    "cae",
    "asc",
    "tra",
    "des",
    "sig",
    "rec",
)

The lumen segments of the segmented intestine, in the order of the transit: stomach, duodenum, upper and lower jejunum, upper and lower ileum, caecum, colon ascendens, transversum, descendens, sigmoid and rectum.

TUBULE_SEGMENTS module-attribute

TUBULE_SEGMENTS = ('pt', 'lh', 'dt', 'cd')

The tubule segments of the nephron kidney, in the order of the tubular flow: proximal tubule, loop of Henle, distal tubule and collecting duct.

PS_VAS module-attribute

PS_VAS = 'PS_vas'

The local id of the exchange between plasma and interstitium of an organ.

HABR_GAIN module-attribute

HABR_GAIN = 'habr_gain'

The gain of the hepatic arterial buffer response.

The fraction of a lost portal inflow of a lobe which the hepatic artery of that lobe compensates (pkpdsim.pbpk.lobes.HABR, cardiovascular.toml).

impairment_factor

impairment_factor(pid)

The id of the factor of all impairments on a quantity, fimp_GFR.

The product of the factors of the conditions (Child-Pugh, chronic kidney disease, heart failure) on the quantity pid of the body.

condition_factor

condition_factor(condition, key)

The id of the factor of one condition, fcp_albumin, fckd_hematocrit.

Parameters:

Name Type Description Default
condition str

the condition, cp (Child-Pugh), ckd (chronic kidney disease) or hf (heart failure).

required
key str

the key of the factor in database/tables/impairment.toml, a protein in lower case.

required

impairment_activity

impairment_activity(protein, organ=None)

The id of the factor of the impairments on the activity of a protein in an organ.

In the organ the local input fimp_cyp3a4, in the body fimp_li_cyp3a4; the rates of the protein in the organ run with f_<protein> times it, so that a genotype or an interaction which sets LI__f_cyp3a4 acts on top of the impairment.

ref

ref(pid)

The id of the reference value of a parameter, FFM_ref, Vli_ref.

submodel

submodel(organ)

The id of the submodel of an organ, the organ id in capitals, LI.

The small intestine is the submodel GU (gut) for every intestine variant: the segmented and the single lumen intestine replace small and large intestine with it; with the standard organs as intestine the small intestine is GU and the large intestine LA.

flat

flat(organ, local)

The id of a local id in the flattened model, LI__<local>.

zone

zone(i)

The token of zone i of a zonated organ, z1 (periportal) to z<n>.

site

site(lobe, zone)

The token of a place in the liver: a lobe, a zone, or a zone of a lobe.

The lobe and the zone are the two spatial axes of the liver: the lobes are perfused in parallel, the zones of a lobe in series along its sinusoid. The composite token carries both, lll_z3, and is the token every zone keyed id takes (compartment, species, exchange_reaction, sinusoid_reaction, placement_weight), so a second axis costs those ids nothing. A liver of one lobe has no lobe token and a liver of one zone no zone token, so the ids of a model without lobes do not move.

Parameters:

Name Type Description Default
lobe str | None

the token of the lobe, None for a liver of one lobe.

required
zone str | None

the token of the zone, None for a lobe which is not zonated.

required

Returns:

Type Description
str | None

The composite token, or None for the liver of one lobe and one zone.

lobe_volume

lobe_volume(lobe)

The id of the volume of a lobe of the liver, Vli_<lobe> [l].

lobe_volume_fraction

lobe_volume_fraction(lobe)

The id of the reference share of the liver volume of a lobe, f_vol_<lobe>.

lobe_present

lobe_present(lobe)

The id of the switch of a lobe, f_present_<lobe>: 1 in place, 0 resected.

lobe_flow

lobe_flow(flow, lobe)

The id of a hepatic blood flow of a lobe, Qha_<lobe>, Qpo_<lobe>, Qh_<lobe>.

Parameters:

Name Type Description Default
flow str

the whole liver flow, QHA, QPO or QH.

required
lobe str

the token of the lobe.

required

Returns:

Type Description
str

The flow of the lobe.

Raises:

Type Description
ValueError

for a flow which is not a hepatic flow of the liver.

remodelling_reaction

remodelling_reaction(part, s, site)

The local id of the loss of s from a shrinking site, J_remodel_<site>_<part>_<s>.

The tissue an atrophying lobe loses carries its content away, so every part of every site of the lobe has one.

lobe_reference_fraction

lobe_reference_fraction(lobe)

The id of the reference share of a lobe of the liver volume, f_vol_ref_<lobe>.

The share of the intact liver which the lobe holds, the constant of the lobe table; the share f_vol_<lobe> follows the volume of the lobe and leaves it when the anatomy of the liver changes.

lobe_growth

lobe_growth(lobe)

The id of the growth of the volume of a lobe, dVli_<lobe> (l/min).

The rate of change of the volume of the lobe, which the remodelling drives: positive is hypertrophy, negative atrophy. It is a quantity of the model and not a derivative of the solver, so the liver reads it for the amount which atrophied tissue carries away.

arterial_fraction

arterial_fraction(lobe)

The id of the reference share of the hepatic artery inflow of a lobe, f_ha_<lobe>.

portal_fraction

portal_fraction(lobe)

The id of the reference share of the portal vein inflow of a lobe, f_po_<lobe>.

lobe_perfusion

lobe_perfusion(lobe)

The id of the perfusion per volume of a lobe, q_<lobe> [1/min].

lobe_pressure

lobe_pressure(lobe)

The id of the sinusoidal pressure of a lobe, CV_P_li_<lobe> [mmHg].

The node of the lobe of the pressure driven circulation, which the balance of its three branches solves. A lobe whose both branches are closed has no inflow, so its node sits at the venous pressure.

lobe_resistance

lobe_resistance(flow, lobe)

The id of the resistance of a branch of a lobe, CV_R_ha_<lobe> [mmHg*min/l].

Parameters:

Name Type Description Default
flow str

the whole liver flow of the branch, QHA (the hepatic artery), QPO (the portal vein) or QH (the hepatic vein).

required
lobe str

the token of the lobe.

required

Returns:

Type Description
str

The resistance of the branch of the lobe.

Raises:

Type Description
ValueError

for a flow which is not a hepatic flow of the liver.

lobe_balance

lobe_balance(lobe)

The id of the volume balance of the node of a lobe, CV_hepatic_balance_<lobe>.

buffer_factor

buffer_factor(lobe)

The id of the hepatic arterial buffer response of a lobe, f_habr_<lobe>.

The factor on the conductance of the hepatic artery branch of the lobe: 1 while the lobe has its reference portal inflow and more when it lost part of it (pkpdsim.pbpk.lobes.HABR).

lobe_reference_flow

lobe_reference_flow(flow, lobe)

The id of the reference flow of a branch of a lobe, Qha_ref_<lobe> [l/min].

The flow of the branch of the intact, unimpaired individual, which the resistance of the branch is calibrated from and which the buffer response measures a loss against.

Parameters:

Name Type Description Default
flow str

the whole liver flow of the branch, QHA, QPO or QH.

required
lobe str

the token of the lobe.

required

Returns:

Type Description
str

The reference flow of the branch of the lobe.

Raises:

Type Description
ValueError

for a flow which is not a hepatic flow of the liver.

lobe_outflow

lobe_outflow(organ, lobe, s)

The id of the plasma concentration leaving a lobe, Cout_li_<lobe>_<s>.

The organ drains the flow weighted mix of its lobes under the unchanged id organ_outflow; this is the concentration of the one lobe, which a study of a regional intervention reads and computes the exposure of a lobe from.

arterial_conductance

arterial_conductance(lobe)

The id of the patency of the hepatic artery branch of a lobe, g_ha_<lobe>.

1 is the open branch, 0 the ligated one. An occlusion acts on the conductance and never on a resistance, so no rate law divides by zero.

portal_conductance

portal_conductance(lobe)

The id of the patency of the portal vein branch of a lobe, g_po_<lobe>.

1 is the open branch, 0 the ligated one (portal vein ligation).

compartment

compartment(part, zone=None)

The local id of a compartment of an organ, Vpl; of a zone Vpl_z1.

species

species(part, s, zone=None)

The local id of a species of substance s in a part, Cpl_<s>; of a zone Cpl_z1_<s>.

zonal_mean

zonal_mean(part, s, periportal, lobe=None)

The local id of a mean over a third of a zonated organ, Cpl_pp_<s>.

The mean concentration of s in a part of the first (periportal, pp) or the last (pericentral, pc) third of the sinusoid, the observers of the zonation engine (pkpdsim.zonation.observers): the zones of the third weighted by their overlap with it. The tokens cannot be a zone (z1 to z<n>), so a mean is no species of a zone.

pool_compartment

pool_compartment(pool, part)

The id of a compartment of a blood pool, Vve_pl.

pool_species

pool_species(pool, s, part=PLASMA)

The id of a species in a blood pool, Cve_<s> (plasma), Cve_bc_<s> (blood cells).

organ_volume

organ_volume(organ)

The id of the volume of an organ, Vli.

organ_flow

organ_flow(organ)

The id of the blood flow of an organ, Qli.

organ_mass

organ_mass(organ)

The id of the tissue mass of an organ without its blood, Mad.

flow_fraction

flow_fraction(organ)

The id of the blood flow of an organ as fraction of cardiac output, fQli.

pool_volume

pool_volume(pool)

The id of the volume of a blood pool, Vve.

pool_fraction

pool_fraction(pool)

The id of the volume of a blood pool as fraction of the blood volume, fVve.

pool_capacity

pool_capacity(pool, s)

The id of the compartment of a pool species of s with erythrocytes in equilibrium.

The pool volume times the blood to plasma ratio, Vve_pl_<s>: the plasma species then holds the amount of the blood.

plasma_capacity

plasma_capacity(s, zone=None)

The local id of the compartment of Cpl_<s> with erythrocytes in equilibrium.

The vascular volume of the organ times the blood to plasma ratio, Vpl_<s> (of a zone Vpl_z1_<s>): the plasma species then holds the amount of the blood.

vascular_fraction

vascular_fraction(organ)

The id of the vascular fraction of the organ volume, f_vas_li.

interstitial_fraction

interstitial_fraction(organ)

The id of the interstitial fraction of the organ volume, f_int_li.

tissue_volume_total_ref

tissue_volume_total_ref(s)

The id of the reference tissue volume of the organs s enters, Vti_total_ref_<s>.

The tissue volume of the reference individual summed over the organs whose exchange is a share of ftissue_<s>; the exchange of an organ is ftissue_<s> * Vti_o / Vti_total_ref_<s>, so it scales with the individual.

ps

ps(s)

The local id of the exchange of s between plasma and tissue, PS_<s>.

ps_ref

ps_ref(s)

The local id of the exchange of the whole healthy liver, PS_ref_<s>.

The exchange of the whole liver in l/min (ps with ps_per_volume=False): the liver has PS_<s> = PS_ref_<s> * f_functional.

ps_vas

ps_vas(s, zone)

The local id of the exchange of s through the endothelium of a zone, PS_vas_z1_<s>.

The exchange between the plasma and the interstitium of a zone of a geometry which gives every zone and every substance its own conductance (the fenestrated endothelium of the sinusoid of the zonated liver), in l/min; the generic endothelium of an organ is the one PS_VAS of all of them, whose share a zone takes.

kps

kps(s)

The local id of the exchange of s per litre of organ, kps_<s>.

The exchange of an organ given per litre of organ (ps of the distribution with ps_per_volume, 1/min): the organ has PS_<s> = kps_<s> * V<o>.

slow_species

slow_species(s)

The local id of the slow pool of s in the tissue of an organ, Cslow_<s>.

A concentration in the tissue compartment Vti (SlowPool), exposed to the observers as C<o>_slow_<s> (organ_species).

kslow

kslow(s)

The id of the exchange of the slow pool of s per litre of tissue, kslow_<s> (1/min).

kp_slow

kp_slow(s)

The id of the slow pool of s to the tissue at equilibrium, Kpslow_<s>.

slow_reaction

slow_reaction(s)

The local id of the exchange of s between the tissue and its slow pool, J_slow_<s>.

k_int_pls

k_int_pls(s)

The local id of the interstitial to plasma coefficient, K_int_pls_<s>.

k_cell_pls

k_cell_pls(s)

The local id of the intracellular to plasma coefficient, K_cell_pls_<s>.

k_organ

k_organ(s)

The local id of the organ to plasma coefficient (flow-limited), K_or_<s>.

organ_outflow

organ_outflow(organ, s)

The id of the plasma concentration leaving an organ, Cout_li_<s>.

organ_species

organ_species(organ, local)

The id of the top model of an element of an organ which a PD component or an observer reads.

The organ exposes the element as an output, which replaces this parameter of the top model: the organ token follows the prefix of the local id. A concentration C<part>_<s> is C<o>_<part>_<s>, Cli_ic_api for the cells of the liver (LI__Cic_api in the flat model); an unbound concentration Cu_<part>_<s> is Cu_<o>_<part>_<s> (Cu_li_ic_api), the one spelling of the unbound concentration of an organ (the pools keep theirs, C<pool>_free_<s>); an amount A<x> is A<o>_<x> (Asi_solid_du_api).

Raises:

Type Description
ValueError

if the local id is no concentration C... and no amount A....

organ_outflow_bc

organ_outflow_bc(organ, s)

The id of the blood cell concentration leaving an organ, Cout_li_bc_<s>.

Only for a substance with kinetic blood cells.

inflow_reaction

inflow_reaction(pool, part, s, site=None)

The local id of the inflow of s from a pool into an organ, J_in_ar_pl_<s>.

part is the part of the blood which carries it, plasma or blood cells. A lobed liver has one inflow per lobe, into the first site of its chain, so the id carries that site: J_in_ar_pl_<s>_lll_z1.

outflow_reaction

outflow_reaction(part, s, site=None)

The local id of the outflow of s from an organ into its pool, J_out_pl_<s>.

A lobed liver drains each lobe out of the last site of its chain, so the id carries that site: J_out_pl_<s>_lll_z3.

shunt_reaction

shunt_reaction(pool, part, s, site=None)

The local id of the shunt of s from a pool past the liver, J_shunt_po_pl_<s>.

part is the part of the blood which carries it, plasma or blood cells. A lobed liver shunts the inflow of each lobe, so the id carries its site.

filtration_reaction

filtration_reaction(s)

The local id of the glomerular filtration of s into the urine, J_gfr_<s>.

exchange_reaction

exchange_reaction(part, s, zone=None)

The local id of the passive exchange of s into a part of an organ, J_ti_<s>.

From plasma into the tissue, the interstitium or the blood cells, from the interstitium into the cells (J_ic_<s>); in a zone J_ti_z1_<s>.

sinusoid_reaction

sinusoid_reaction(part, s, zone)

The local id of the flow of s from a zone into the next one, J_sin_z1_pl_<s>.

part is the part of the blood which carries it, plasma or blood cells (the whole organ of a flow-limited substance carries it as plasma).

axial_reaction

axial_reaction(part, s, zone)

The local id of the axial diffusion of s from a zone into the next, D_z1_pl_<s>.

part is the part the substance diffuses in along the sinusoid, the plasma or the interstitium (the space of Disse) of the zone.

outflow_conc

outflow_conc(s, lobe=None)

The local id of the concentration leaving an organ, Cout_<s>.

A lobed liver has one per lobe, Cout_<lobe>_<s>; the whole liver Cout_<s> is then the flow weighted mix of them, which is what the body receives.

outflow_conc_bc

outflow_conc_bc(s, lobe=None)

The local id of the blood cell concentration leaving an organ, Cout_bc_<s>.

mr

mr(s)

The id of the molecular weight, Mr_<s>.

fu

fu(s)

The id of the unbound fraction in plasma, fu_<s>.

fu_ref

fu_ref(s)

The id of the reference unbound fraction in plasma, fu_ref_<s>.

baseline

baseline(s)

The id of the plasma concentration of an endogenous substance at the start, baseline_<s>.

kp

kp(s)

The id of the tissue to plasma coefficient, Kp_<s>.

kp_organ

kp_organ(organ, s)

The id of the tissue to plasma coefficient of an organ, Kp_li_<s>.

fkp

fkp(s)

The id of the factor of a Kp method or of the interstitial shares, fKp_<s>.

ftissue

ftissue(s)

The id of the whole-body exchange factor, ftissue_<s>.

placenta_species

placenta_species(s)

The id of the substance in the placenta, Cpla_<s>.

fetus_species

fetus_species(s)

The id of the substance in the fetus, Cfet_<s>.

kp_placenta

kp_placenta(s)

The id of the placenta to plasma coefficient, Kp_pla_<s>.

kp_fetus

kp_fetus(s)

The id of the fetus to fetal plasma coefficient, Kp_fet_<s>.

ps_placenta

ps_placenta(s)

The id of the transfer clearance of the placenta, PS_pla_<s>.

bp

bp(s)

The id of the blood to plasma ratio, BP_<s>.

kbc

kbc(s)

The id of the blood cell to plasma coefficient, Kbc_<s>.

kbc_exchange

kbc_exchange(s)

The id of the exchange rate between plasma and blood cells, kex_bc_<s>.

fraction_reabsorbed

fraction_reabsorbed(s)

The id of the fraction of the filtrate which is reabsorbed, f_reabsorbed_<s>.

reabsorption_threshold

reabsorption_threshold(s)

The id of the renal threshold of a saturable reabsorption (mM), reab_threshold_<s>.

reabsorption_n

reabsorption_n(s)

The id of the sharpness of the threshold of a saturable reabsorption, reab_n_<s>.

urine

urine(s)

The id of the amount in urine, Aurine_<s>.

urine_rate

urine_rate(s)

The id of the urinary excretion rate, Rurine_<s> (mmole/min).

The sum of the fluxes of the kidney into the urine Aurine_<s>, an output of the kidney which replaces the parameter of the top model.

feces

feces(s)

The id of the amount in feces, Afeces_<s>.

feces_rate

feces_rate(s)

The id of the fecal excretion rate, Rfeces_<s> (mmole/min).

A readout of the intestine (PBPKDefinition.readouts): the net flux of the reactions of the intestine into the feces Afeces_<s>, an output of the intestine which replaces the parameter of the top model.

lumen_amount

lumen_amount(s)

The id of the dissolved amount of s in the intestinal lumen, Alumen_<s> (mmole).

A readout of the intestine (PBPKDefinition.readouts): the sum over the lumen segments of Vlumen_<seg>*Clumen_<seg>_<s>, an output of the intestine; the undissolved drug of a tablet is not in it.

absorption_rate

absorption_rate(s)

The id of the absorption rate of s, Rabs_<s> (mmole/min).

A readout of the intestine (PBPKDefinition.readouts): the sum of the fluxes from the lumen into the intestinal wall (the mucosa, else the wall), the absorption of every segment and an apical influx; not the absorption rate constant ka_<s> (absorption).

absorbed_amount

absorbed_amount(s)

The id of the amount of s absorbed from the lumen, Aabs_<s> (mmole).

A readout of the intestine (PBPKDefinition.readouts): the integral of the absorption rate Rabs_<s> (the fluxes from the lumen into the wall, an apical influx included) since the start, a state of the intestine.

absorbed_fraction

absorbed_fraction(s)

The id of the gross absorbed fraction of the oral dose of s, Fa_<s>.

A readout of the intestine (PBPKDefinition.readouts): the absorbed amount Aabs_<s> over the oral dose given until then (tablet and solution, mmole), 0 before a dose; gross, before the first pass of the wall and the liver, so above the bioavailability.

oral_dose_applied

oral_dose_applied(s)

The local id of the oral dose of s which the intestine has applied, Aapp_<s> (mmole).

The integral of the outflows of the oral dose states (dissolution and emptying of a tablet, the application of a solution), a state of the intestine which Fa_<s> reads: with the dose states it is the oral dose given, also over several doses.

efflux_rate

efflux_rate(s)

The id of the efflux rate of s into the intestinal lumen, Reff_<s> (mmole/min).

A readout of the intestine (PBPKDefinition.readouts): the sum of the fluxes from the intestinal wall into the lumen, the apical efflux of every segment.

bile

bile(s)

The id of the concentration in bile, Cbile_<s>.

lumen

lumen(s, seg=None)

The local id of the concentration in an intestinal lumen segment, Clumen_du_<s>.

Without a segment the single lumen, Clumen_<s>.

lumen_volume

lumen_volume(seg=None)

The local id of the volume of a lumen segment, Vlumen_du (single: Vlumen).

solid

solid(s, seg)

The local id of the undissolved amount of s in a lumen segment, Asolid_du_<s>.

In the stomach (and the single lumen) the dose state PODOSE_<s> is the undissolved drug.

tubule

tubule(s, seg)

The local id of the concentration in the lumen of a tubule segment, Ctub_pt_<s>.

The segment is always part of the id (TUBULE_SEGMENTS), so the id names its substance without ambiguity.

tubule_volume

tubule_volume(seg)

The local id of the volume of the lumen of a tubule segment, Vtub_pt.

tubule_flow_fraction

tubule_flow_fraction(seg)

The local id of the tubular flow leaving a segment as fraction of the GFR, f_tub_pt.

tubule_reaction

tubule_reaction(s, seg)

The local id of the tubular flow of s out of a segment, J_tub_pt_<s>.

Out of the collecting duct the urinary excretion J_tub_cd_<s>.

tubule_reabsorption_reaction

tubule_reabsorption_reaction(s)

The local id of the reabsorbed fraction of s out of the collecting duct, J_reab_<s>.

mucosa

mucosa(s, seg=None)

The local id of the concentration in the mucosa of a segment, Cmu_du_<s>.

mucosa_unbound

mucosa_unbound(s, seg=None)

The local id of the unbound concentration in the mucosa of a segment, Cu_mu_du_<s>.

wall_compartment

wall_compartment(part)

The local id of a tissue compartment of the intestinal wall without the mucosa, Vti_wall.

The compartment of the tissue species of a substance with mucosa species: the mucosa is carved out of the wall, so the capacity of the intestine stays that of the wall without mucosa.

mucosa_volume

mucosa_volume(seg=None)

The local id of the volume of the mucosa of a segment, Vmu_du.

mucosa_flow

mucosa_flow(seg=None)

The local id of the blood flow of the mucosa of a segment, Qmu_du.

mucosa_coefficient

mucosa_coefficient(s)

The local id of the mucosa to plasma coefficient, K_mu_<s>.

mucosa_kps

mucosa_kps(s)

The local id of the exchange of the mucosa per litre of mucosa, kps_mu_<s>.

The permeability-surface product of the mucosa of a substance given per litre of mucosa (mucosa_ps of the intestine with mucosa_ps_per_volume, 1/min): a segment has PS_mu_<seg>_<s> = kps_mu_<s> * Vmu_<seg>.

mucosa_ps_ref

mucosa_ps_ref(s)

The local id of the exchange of the mucosa of the small intestine, PS_mu_ref_<s>.

The permeability-surface product of the mucosa of the small intestine in l/min (mucosa_ps of the intestine with mucosa_ps_per_volume=False, the CLperm of the Qgut model, which the literature measures for that organ): a segment has its share of it by mucosa volume relative to the mucosa of the small intestine (PS_mu_ref_<s>*Vmu_<seg>/Vmu_si), so the segments of the small intestine sum to it and the colon has its own share at the same exchange per litre of mucosa.

mucosa_ps

mucosa_ps(s, seg=None)

The local id of the exchange of the mucosa of a segment, PS_mu_du_<s>.

The permeability-surface product between the mucosal blood and the enterocytes of the segment (l/min), of the permeability-limited mucosa.

mucosa_qgut

mucosa_qgut(s, seg=None)

The local id of the hybrid flow of the mucosa of a segment, Qgut_du_<s>.

The Qgut of the Qgut model (Yang 2007) of the permeability-limited mucosa, the series of the mucosal blood flow and the permeability clearance of the unbound drug (l/min).

transit_time

transit_time(seg=None)

The local id of the transit time of a lumen segment, T_du (single: t_lumen).

area_factor

area_factor(seg)

The local id of the absorption scaling of a lumen segment, f_area_du.

fraction_absorbed

fraction_absorbed(s)

The id of the fraction of the absorbed flux entering the body, fabs_<s>.

colon_absorption_factor

colon_absorption_factor(s)

The id of the factor of the absorption in the large intestine, f_ka_colon_<s>.

Of the segmented intestine: scales ka_<s>*f_area_<seg> of the segments of the large intestine.

regional_absorption_factor

regional_absorption_factor(s, seg)

The id of the factor of the absorption of s in a lumen segment, f_ka_<seg>_<s>.

Of the regional absorption profile of the segmented intestine (RegionalAbsorption): scales ka_<s>*f_area_<seg> of the segment.

lumen_conversion_rate

lumen_conversion_rate(substrate, product)

The id of the rate constant of a conversion in the lumen (1/hr), kconv_<s>_<m>.

Of a LumenConversion of the segmented intestine, a parameter of the top model: the substrate <s> converts into the product <m> with kconv/60*V*C in every segment of the conversion.

lumen_conversion_reaction

lumen_conversion_reaction(substrate, product, seg)

The local id of a conversion in a lumen segment, J_conv_<seg>_<s>_<m>.

transit_reaction

transit_reaction(s, seg=None, solid=False)

The local id of the transit of s out of a lumen segment, J_tr_du_<s>.

The undissolved drug J_trs_du_<s>.

dissolution_reaction

dissolution_reaction(s, seg)

The local id of the dissolution of s in a lumen segment, J_dis_du_<s>.

mucosa_reaction

mucosa_reaction(kind, s, seg=None)

The local id of a flow of the mucosa of a segment, J_mu_in_du_<s>.

kind is in (the arterial inflow of the mucosa), out (its outflow into the portal vein), bc (the blood cells of the mucosal blood, which pass it) or blood (of the permeability-limited mucosa: the mucosal blood which passes the enterocytes, from the artery into the portal vein).

placement_weight

placement_weight(key, seg)

The local id of the share of a process in a segment or a zone, w_cyp3a4_du.

key is the protein (or profile) in lower case or uniform (by mucosa volume); in the zone of a zonated organ w_cyp3a4_z1.

placement_profile

placement_profile(key, zone)

The local id of the relative abundance of a profile in a zone, p_cyp3a4_z1.

segment_process

segment_process(pid, seg)

The local id of a process of the chemistry in a segment or a zone, CYP3A4_DRG_du.

In the mucosa of a segment of the intestine or a zone of a zonated organ (CYP3A4_DRG_z1).

rate_ratio

rate_ratio(process, constant)

The local id of the ratio of a constant of a process to another, <p>_Vmax_ratio.

The factor of RateOf: the constant <p>_Vmax (or <p>_k) of the process is this ratio times the constant of the other process of the organ.

Parameters:

Name Type Description Default
process str

the id of the process.

required
constant str

the constant, Vmax or k.

required

product_fraction

product_fraction(process, product)

The local id of the fraction of a metabolism which forms a product, f_<p>_<s>.

A constant of the organ when the fractions of the metabolism are values or the remainder REST, which is 1 - sum of the others.

product_reaction

product_reaction(process, product)

The local id of the formation of a product of a metabolism, <p>_to_<s>.

The reaction of a metabolism with product fractions as constants forms the product with its fraction of the rate of the metabolism, f_<p>_<s> * <p> (in a zone or a segment <p>_to_<s>_<zone>).

dissolution_rate

dissolution_rate(s)

The local id of the dissolution rate of a tablet (1/min), kdis_<s>.

An assignment rule of the intestine for a Weibull or dose-dependent dissolution; a first order dissolution is the constant Ka_dis_<s>.

dissolution_age

dissolution_age(s)

The local id of the mean age of the undissolved dose (min), age_dis_<s>.

dissolution_clock

dissolution_clock(s)

The local id of the age-weighted undissolved amount (mmole*min), W_dis_<s>.

The state whose ratio to the undissolved amount is the mean time since the dose (age_dis_<s>) of a Weibull dissolution.

iv_dose

iv_dose(s)

The id of the intravenous dose state (mg), IVDOSE_<s>.

injection_time

injection_time(s)

The id of the half-life of an intravenous injection (s), ti_<s>.

injection_rate

injection_rate(s)

The id of the rate of an intravenous injection, Kiv_<s>.

infusion_rate

infusion_rate(s)

The id of the rate of an intravenous infusion (mg/min), Ri_<s>.

po_dose

po_dose(s)

The id of the oral dose state of a tablet (mg), PODOSE_<s>.

sol_dose

sol_dose(s)

The id of the oral dose state of a solution (mg), SOLDOSE_<s>.

depot_dose

depot_dose(kind, s)

The id of the dose state of a depot route (mg), IMDOSE_<s>, SCDOSE_<s>, RECDOSE_<s>, INHDOSE_<s>.

depot

depot(kind, s)

The id of the depot of a depot route (mmole), Aim_<s>, Asc_<s>, Arec_<s>, Ainh_<s>.

The amount at the site of the administration (muscle, subcutis, rectum, lung) which the dose state applies and which is absorbed from there, a species of the top model in the depot compartment of the route.

depot_compartment

depot_compartment(kind)

The id of the compartment of the depots of a route, Vim, Vsc, Vrec, Vinh.

A compartment of amounts with the nominal volume 1 l, as the urine.

depot_application_time

depot_application_time(kind, s)

The id of the half-life of the application of a depot dose (s), ti_im_<s>.

depot_absorption_rate

depot_absorption_rate(kind, s)

The id of the rate of the absorption from a depot (1/hr), ka_im_<s>, ka_rec_<s>.

depot_fraction

depot_fraction(kind, s)

The id of the fraction of a depot which is absorbed, f_im_<s>, f_rec_<s>.

The inhaled route has no such fraction: its dose splits into the deposited and the swallowed fraction (inhaled_deposited_fraction, inhaled_swallowed_fraction).

rectal_portal_fraction

rectal_portal_fraction(s)

The id of the fraction of the absorbed rectal dose which enters the portal vein, f_rec_portal_<s>.

inhaled_deposited_fraction

inhaled_deposited_fraction(s)

The id of the fraction of an inhaled dose deposited in the lung, f_inh_deposited_<s>.

The part of the dose which enters the lung depot Ainh_<s> and is absorbed from there by the lung.

inhaled_swallowed_fraction

inhaled_swallowed_fraction(s)

The id of the fraction of an inhaled dose which is swallowed, f_inh_swallowed_<s>.

The part of the dose which is added to the oral dose state PODOSE_<s>.

inhaled_swallow_rate

inhaled_swallow_rate(s)

The id of the swallowed part of an inhaled dose (mg/min), R_inh_swallow_<s>.

The rate at which the inhaled dose state adds to the oral dose state, an assignment rule of the top model which the intestine reads in the rate rule of PODOSE_<s>.

depot_loss

depot_loss(kind, s)

The id of the amount of an injected depot which is not absorbed (mmole), Aloss_im_<s>.

The sink of the intramuscular and the subcutaneous depot (degraded at the site of the injection) and of the inhaled dose (Aloss_inh_<s>, exhaled or left in the device and the mouth); the rectal depot which is not absorbed leaves into the feces Afeces_<s>, which this function gives for it.

depot_application

depot_application(kind, s)

The id of the application of a depot dose into the depot, J_im_<s>, J_rec_<s>.

Of an inhaled dose (J_inh_<s>) the deposited part only, the rest is swallowed or lost (depot_loss_reaction).

depot_absorption

depot_absorption(kind, s, portal=False)

The id of the absorption from a depot, J_im_abs_<s>; J_rec_abs_po_<s> into the portal vein.

The absorption of the inhaled depot (J_inh_abs_<s>) is a reaction of the lung, which absorbs it into its plasma: a local id of that organ.

depot_loss_reaction

depot_loss_reaction(kind, s)

The id of the part of a depot which is not absorbed, into its sink, J_im_loss_<s>.

Of an inhaled dose (J_inh_loss_<s>) the part which is neither deposited in the lung nor swallowed.

dissolution

dissolution(s)

The id of the rate of the dissolution of a tablet, Ka_dis_<s>.

dissolution_fed_factor

dissolution_fed_factor(s)

The id of the factor of the dissolution rate in the fed state, f_dis_fed_<s>.

dissolution_release_factor

dissolution_release_factor(s)

The id of the factor of a modified-release formulation, f_dis_release_<s>.

dissolution_t50

dissolution_t50(s)

The id of the time of half dissolution of a Weibull dissolution (min), t50_dis_<s>.

dissolution_shape

dissolution_shape(s)

The id of the shape of a Weibull dissolution, shape_dis_<s>.

dissolution_lag

dissolution_lag(s)

The id of the lag time of a Weibull dissolution (min), lag_dis_<s>.

dissolution_dose50

dissolution_dose50(s)

The id of the undissolved amount of half the dissolution rate (mg), D50_dis_<s>.

solution

solution(s)

The id of the rate of the application of a solution, Ka_sol_<s>.

absorption

absorption(s)

The id of the rate of the absorption from the intestinal lumen, ka_<s>.

The first order absorption of the single lumen; in the segmented intestine the absorption rate constant of the small intestine, which the area factor of a segment scales.

dose_reaction

dose_reaction(kind, s)

The id of the application of a dose state, J_iv_<s>, J_po_<s>, J_sol_<s>.

absorption_reaction

absorption_reaction(s, seg=None)

The local id of the absorption from a lumen segment, J_abs_du_<s>.

feces_reaction

feces_reaction(s, seg=None)

The local id of the unabsorbed fraction of the absorption into the feces, J_feces_du_<s>.

Of a lumen segment with fabs_<s>, J_feces_<s> of the single lumen.

bile_reaction

bile_reaction(s)

The id of the transit of the bile into the intestinal lumen, J_bile_<s>.

Into the feces when the intestine has no lumen (standard organs).

pool_exchange_reaction

pool_exchange_reaction(pool, s)

The id of the exchange of s between plasma and blood cells of a pool, J_bc_ve_<s>.

arm

arm(s)

The id of the plasma concentration at the arm-vein site, Carm_<s>.

arm_free

arm_free(s)

The id of the unbound concentration at the arm-vein site, Carm_free_<s>.

arm_blood

arm_blood(s)

The id of the blood concentration at the arm-vein site, Carm_blood_<s>.

arm_weight

arm_weight(site)

The id of the weight of an organ outflow or a pool in the arm vein, w_arm_sk.

free

free(pool, s)

The id of the unbound concentration in a pool, Cve_free_<s>.

blood

blood(pool, s)

The id of the blood concentration in a pool, Cve_blood_<s>.

hepatic_vein

hepatic_vein(s)

The id of the concentration in the hepatic vein, Chv_<s>.

hepatic_vein_free

hepatic_vein_free(s)

The id of the unbound concentration in the hepatic vein, Chv_free_<s>.

hepatic_vein_blood

hepatic_vein_blood(s)

The id of the blood concentration in the hepatic vein, Chv_blood_<s>.

unbound

unbound(part, s, zone=None)

The local id of the unbound concentration of s in a tissue part, Cu_ti_<s>.

In a zone of a zonated organ Cu_ti_z1_<s>.

activity

activity(protein)

The id of the base activity of a protein in an organ, f_cyp3a4.

A constant of every organ in which a process uses the protein (flat LI__f_cyp3a4), relative to normal (1): the factor which genotype, impairment and the experiments set. Interactions act on top of it, not on it: mechanism-based inhibition and induction through the turnover state E_<protein> of the organ, reversible inhibition through the inhibitor terms in the rate of every process of the protein. A process of the protein runs with f_<protein> (times E_<protein>) on its Vmax or clearance.

enzyme

enzyme(protein)

The id of the turnover state of a protein in an organ, E_cyp3a4.

The amount of the protein relative to its baseline (initially 1), a state of the organs with a process of the protein when a substance of the definition inactivates (mechanism-based) or induces it.

kdeg

kdeg(protein)

The id of the degradation rate of a protein in an organ, kdeg_cyp3a4.

ki

ki(protein, s)

The id of the inhibition constant of s on a protein, Ki_cyp3a4_<s>.

The competitive constant of a mixed inhibition, the KI (half-maximal inactivation) of a mechanism-based inhibition.

kiu

kiu(protein, s)

The id of the uncompetitive constant of a mixed inhibition, Kiu_cyp3a4_<s>.

kinact

kinact(protein, s)

The id of the maximal inactivation rate of s on a protein, kinact_cyp3a4_<s>.

emax

emax(protein, s)

The id of the maximal induction of a protein by s, Emax_cyp3a4_<s>.

ec50

ec50(protein, s)

The id of the half-maximal inducing concentration of s, EC50_cyp3a4_<s>.

kstab

kstab(protein, s)

The id of the stabilisation constant of s on a protein, Kstab_cyp2e1_<s>.

The unbound concentration of the stabiliser which halves the degradation of the protein, kdeg*E/(1 + I/Kstab).

species_of

species_of(s, ids)

The flat species ids of substance s, by the id scheme.

Only species of exactly this substance match: api does not match the species of api_m2, drg not those of xdrg.

Parameters:

Name Type Description Default
s str

the substance id.

required
ids Iterable[str]

the ids to select from.

required

Returns:

Type Description
list[str]

The ids which are an organ species (of a zone as well), a slow

list[str]

pool of a tissue, a pool species, a blood cell pool species, a lumen,

list[str]

undissolved or mucosa species, a tubule species or the depot of a

list[str]

depot route (Aim_<s>) of s, in the order of ids. This includes

list[str]

the additional blood reservoirs of the optional dynamic heart.

steady_clearance

steady_clearance(s, organ=None)

The id of a clearance of the generated steady state, CLss_<s> [l/min].

In an organ (organ None) the clearance of its plasma at the steady state of s, the declared clearances of its tissue included (pkpdsim.pbpk.stationary); with organ its output in the top model, CLss_<o>_<s>. In the top model CLss_<s> is the clearance of the arterial plasma by the body at the steady state (without the organ of a saturable process), of a substance whose baseline the library solves.

steady_rate

steady_rate(s, organ=None)

The id of a net source of the generated steady state, Rss_<s> [mmole/min].

In an organ the net source into its plasma at the steady state of s (the declared rates of plasma and tissue), with organ its output in the top model, Rss_<o>_<s>; in the top model Rss_<s> is the net source of the body at the steady state (without the organ of a saturable process), see steady_clearance.

steady_vmax

steady_vmax(s, organ=None)

The id of the capacity of a saturable process at the steady state, Vss_<s> [mmole/min].

In an organ, with organ its output in the top model Vss_<o>_<s>.

steady_km

steady_km(s, organ=None)

The id of the Michaelis constant of a saturable process at the steady state, Kss_<s> [mM].

In an organ, with organ its output in the top model Kss_<o>_<s>.

steady_plasma

steady_plasma(organ, s)

The id of the plasma of the organ of a saturable process at the steady state, Css_<o>_<s> [mM].

A parameter of the top model, the root of the quadratic of the steady state of a substance whose baseline the library solves.

delta_base

delta_base(sid)

The id of the base of a delta, <sid>_0: the value of an observer at the start.

The constant which <sid>_delta subtracts (PBPKDefinition.deltas). It is no start of a species (PBPKDefinition.starts): the word "start" of the library names the initial concentrations of the species only.

delta

delta(sid)

The id of the change of an observer over its base, <sid>_delta.

annotation

The annotation of every element the library creates (#63).

Every generator annotates an element when it creates it, with annotate(element, kind, ...): the kind names what the element is (an organ volume, the plasma of an organ, a metabolism) and selects one row of the table KINDS, which holds its SBO term and its ontology terms. The context of the element adds the terms of where it is: the organ (UBERON and the compartment terms of pkpdsim.annotations, the PBPKO compartment), the blood pool, the lumen segment, the protein of a process (UniProt, NCIT) and the substance of a species (the annotations of its specification).

The PBPKO terms are those of the pinned pymetadata (PBPKO): a kind gives its PBPKO term, and an organ-specific term (VOLUME_OF_LIVER) where PBPKO has one for the organ. Where PBPKO has no term, the kind takes the nearest broader PBPKO term and names the missing one (requested); every missing term is listed in docs/pbpk/annotation.md ("terms requested upstream", requested_terms).

Every resource is written in one format, the identifiers.org collection/term of pkpdsim.annotations: pbpko/PBPKO:00558, uberon/UBERON:0002107, uniprot/P08684.

The qualifiers: BQB.IS for what the element is (the PBPKO term, the kind's terms, the protein of a process, the substance of a species); the location is BQB.IS_PART_OF for a compartment, BQB.IS_PROPERTY_OF for a parameter and BQB.OCCURS_IN for a reaction; a parameter of a protein (activity, inhibition constant) is BQB.IS_PROPERTY_OF the protein.

The annotations which every library of pkpdsim writes, the initial assignment of a constant (initial_assignment) and the taxon of a build (TAXA), are the SBML writing kit's (pkpdsim.sbml.annotation); this module is the import path of the library and re-exports them unchanged.

annotate, KINDS and the places (ORGANS, POOLS, SEGMENTS, SITES) stay here, and on purpose. annotate is called by this library only: the zonation engine and the machine perfusion library write their own annotations and take initial_assignment and TAXA from the kit. And the PBPKO term of a kind is resolved through the vocabulary of this library, _resolve over the organ, the blood pool and the tokens of a _Place. Moving the table down would mean a registry which this library fills with its kinds and a hook which it fills with its resolver - machinery for one registrant, and a rewrite of the function whose output is the byte-pinned SBML of tests/pbpk/data.

The condition under which it should move: a second library of pkpdsim needs annotate. Then Kind, _Place and the registry belong in pkpdsim.sbml.annotation, every library registering its kinds and the resolver of a place, and this module keeps the PBPK rows and the PBPK resolver. Until then the smaller shape is the right one.

TAXA module-attribute

TAXA = {
    Species.HUMAN: "taxonomy/9606",
    Species.RAT: "taxonomy/10116",
    Species.MOUSE: "taxonomy/10090",
    Species.PIG: "taxonomy/9823",
}

The NCBI taxon of every species of a build.

PBPKO_URL module-attribute

PBPKO_URL = 'https://bioregistry.io/'

The prefix of the resources of PBPKO terms, https://bioregistry.io/PBPKO:00558.

Term module-attribute

Term = tuple[BQB, str]

An annotation: the qualifier and the resource, collection/term.

ORGANS module-attribute

ORGANS = {
    Organ.LUNG: _organ(
        "lu", "lung", ("LUNG",), "LUNG_COMPARTMENT"
    ),
    Organ.HEART: _organ(
        "he", "heart", ("HEART",), "HEART_COMPARTMENT"
    ),
    Organ.BRAIN: _organ(
        "br", "brain", ("BRAIN",), "BRAIN_COMPARTMENT"
    ),
    Organ.LIVER: _organ(
        "li", "liver", ("LIVER",), "LIVER_COMPARTMENT"
    ),
    Organ.KIDNEY: _organ(
        "ki", "kidney", ("KIDNEY",), "KIDNEY_COMPARTMENT"
    ),
    Organ.STOMACH: _organ(
        "stomach",
        "stomach",
        ("STOMACH",),
        "STOMACH_COMPARTMENT",
    ),
    Organ.SMALL_INTESTINE: _organ(
        "si",
        "small intestine",
        ("SMALL_INTESTINE", "INTESTINE"),
        "SMALL_INTESTINE_COMPARTMENT",
    ),
    Organ.LARGE_INTESTINE: _organ(
        "la",
        "large intestine",
        ("LARGE_INTESTINE", "INTESTINE"),
        "LARGE_INTESTINE_COMPARTMENT",
    ),
    Organ.SPLEEN: _organ(
        "sp", "spleen", ("SPLEEN",), "SPLEEN_COMPARTMENT"
    ),
    Organ.PANCREAS: _organ(
        "pa",
        "pancreas",
        ("PANCREAS",),
        "PANCREAS_COMPARTMENT",
    ),
    Organ.MUSCLE: _organ(
        "mu", "muscle", ("MUSCLE",), "MUSCLE_COMPARTMENT"
    ),
    Organ.SKIN: _organ(
        "sk", "skin", ("SKIN",), "SKIN_COMPARTMENT"
    ),
    Organ.ADIPOSE: _organ(
        "ad", "adipose", ("FAT",), "ADIPOSE_COMPARTMENT"
    ),
    Organ.BONE: _organ("bo", "bone", ("BONE",), None),
    Organ.GONADS: _organ(
        "go", "gonads", ("GONAD",), "GONAD_COMPARTMENT"
    ),
}

The terms of the organs; the PBPKO token of adipose tissue is FAT, the intestines take the terms of the intestine where PBPKO has none of their own (MAXIMUM_RATE_IN_INTESTINE); PBPKO has no compartment of the bone (only of the bone marrow).

POOLS module-attribute

POOLS = {
    Pool.ARTERIAL: _Place(
        "arterial blood",
        (
            (BQB.IS_PART_OF, "uberon/UBERON:0013755"),
            *_location_terms("ar"),
        ),
        "ARTERIAL_BLOOD_COMPARTMENT",
    ),
    Pool.VENOUS: _Place(
        "venous blood",
        (
            (BQB.IS_PART_OF, "uberon/UBERON:0013756"),
            *_location_terms("ve"),
        ),
        "VENOUS_BLOOD_COMPARTMENT",
    ),
    Pool.PORTAL: _Place(
        "portal vein blood",
        (
            (BQB.IS_PART_OF, "uberon/UBERON:0002017"),
            *_location_terms("po"),
        ),
        None,
    ),
}

The terms of the blood pools; PBPKO has no compartment of the portal vein.

SEGMENTS module-attribute

SEGMENTS = {
    "st": _Place(
        "stomach",
        tuple(_compartments["stomach"]),
        "STOMACH_COMPARTMENT",
    ),
    "du": _Place(
        "duodenum",
        tuple(_compartments["duodenum"]),
        "DUODENUM_COMPARTMENT",
    ),
    "jej1": _Place(
        "upper jejunum",
        tuple(_compartments["jejunum"]),
        "JEJUNUM_COMPARTMENT",
    ),
    "jej2": _Place(
        "lower jejunum",
        tuple(_compartments["jejunum"]),
        "JEJUNUM_COMPARTMENT",
    ),
    "ile1": _Place(
        "upper ileum",
        tuple(_compartments["ileum"]),
        "ILEUM_COMPARTMENT",
    ),
    "ile2": _Place(
        "lower ileum",
        tuple(_compartments["ileum"]),
        "ILEUM_COMPARTMENT",
    ),
    "cae": _Place(
        "caecum",
        tuple(_compartments["caecum"]),
        "CECUM_COMPARTMENT",
    ),
    "asc": _Place(
        "ascending colon",
        tuple(_compartments["ascending colon"]),
        "ASCENDING_COLON_COMPARTMENT",
    ),
    "tra": _Place(
        "transverse colon",
        tuple(_compartments["transverse colon"]),
        "TRANSVERSE_COLON_COMPARTMENT",
    ),
    "des": _Place(
        "descending colon",
        tuple(_compartments["descending colon"]),
        "DESCENDING_COLON_COMPARTMENT",
    ),
    "sig": _Place(
        "sigmoid colon",
        tuple(_compartments["sigmoid colon"]),
        "SIGMOID_COLON_COMPARTMENT",
    ),
    "rec": _Place(
        "rectum",
        tuple(_compartments["rectum"]),
        "RECTUM_COMPARTMENT",
    ),
    "pt": _Place(
        "proximal tubule",
        tuple(_compartments["proximal tubule"]),
        "PROXIMAL_TUBULE_COMPARTMENT",
    ),
    "lh": _Place(
        "loop of Henle",
        tuple(_compartments["loop of Henle"]),
        "LOOP_OF_HENLE_COMPARTMENT",
    ),
    "dt": _Place(
        "distal tubule",
        tuple(_compartments["distal tubule"]),
        "DISTAL_TUBULE_COMPARTMENT",
    ),
    "cd": _Place(
        "collecting duct",
        tuple(_compartments["collecting duct"]),
        "COLLECTING_DUCT_COMPARTMENT",
    ),
}

The terms of the lumen segments of the intestine and of the tubule of the nephron kidney, by their id token.

SITES module-attribute

SITES = {
    "hepatic_vein": _Place(
        "hepatic vein",
        (
            *_location_terms("hv"),
            (BQB.IS_PART_OF, "uberon/UBERON:0001143"),
        ),
        None,
    ),
    "arm_vein": _Place(
        "arm vein", _location_terms("fov"), None
    ),
}

The terms of the sampling sites of the observers which are no blood pool.

KINDS module-attribute

KINDS = {
    "plasma": Kind(
        _C,
        "PLASMA_COMPARTMENT",
        pools={
            Pool.ARTERIAL: "ARTERIAL_PLASMA",
            Pool.VENOUS: "VENOUS_PLASMA_COMPARTMENT",
        },
        terms=_PLASMA,
        domain=NONNEGATIVE,
    ),
    "blood_cells": Kind(
        _C,
        "RED_BLOOD_CELL_COMPARTMENT",
        terms=_BLOOD_CELLS,
        domain=NONNEGATIVE,
    ),
    "capacity": Kind(
        SBO.IMPLICIT_COMPARTMENT,
        "COMPARTMENT",
        terms=(
            (BQB.IS_VERSION_OF, pbpko("BLOOD_COMPARTMENT")),
        ),
        requested="plasma-equivalent capacity of the blood (volume times BP)",
        domain=NONNEGATIVE,
    ),
    "organ": Kind(
        _C,
        "COMPARTMENT",
        is_place=True,
        domain=NONNEGATIVE,
    ),
    "tissue": Kind(
        _C,
        "COMPARTMENT",
        terms=((BQB.IS, "uberon/UBERON:0000479"),),
        requested="tissue compartment (interstitial and intracellular space)",
        domain=NONNEGATIVE,
    ),
    "interstitial": Kind(
        _C,
        "COMPARTMENT",
        terms=(
            (BQB.IS, "uberon/UBERON:0000913"),
            (BQB.IS, "ncit/C120839"),
        ),
        requested="interstitial compartment",
        domain=NONNEGATIVE,
    ),
    "intracellular": Kind(
        _C,
        "COMPARTMENT",
        organ="{}_INTRACELLULAR_SPACE_COMPARTMENT",
        terms=((BQB.IS, "go/GO:0005622"),),
        requested="intracellular space compartment",
        per_organ=False,
        domain=NONNEGATIVE,
    ),
    "urine": Kind(
        _C,
        "URINE_COMPARTMENT",
        terms=tuple(_compartments["urine"]),
        domain=NONNEGATIVE,
    ),
    "feces": Kind(
        _C,
        "FECES_COMPARTMENT",
        terms=tuple(_compartments["feces"]),
        domain=NONNEGATIVE,
    ),
    "remodelled_tissue": Kind(
        SBO.IMPLICIT_COMPARTMENT,
        "COMPARTMENT",
        requested="compartment of the tissue a liver lobe has lost",
        domain=NONNEGATIVE,
    ),
    "bile": Kind(
        _C,
        "BILE_COMPARTMENT",
        terms=tuple(_compartments["bi"]),
        domain=NONNEGATIVE,
    ),
    "lumen": Kind(
        _C,
        "GUT_LUMEN_COMPARTMENT",
        terms=tuple(_compartments["gu_lumen"]),
        domain=NONNEGATIVE,
    ),
    "mucosa": Kind(
        _C,
        "COMPARTMENT",
        terms=(
            (BQB.IS, "uberon/UBERON:0001242"),
            (
                BQB.IS_PART_OF,
                pbpko("INTESTINAL_TISSUE_COMPARTMENT"),
            ),
        ),
        requested="intestinal mucosa compartment (enterocytes)",
        domain=NONNEGATIVE,
    ),
    "gut_wall": Kind(
        _C,
        "COMPARTMENT",
        terms=(
            (
                BQB.IS_PART_OF,
                pbpko("INTESTINAL_TISSUE_COMPARTMENT"),
            ),
        ),
        requested="intestinal tissue compartment without the mucosa",
        domain=NONNEGATIVE,
    ),
    "tubule": Kind(
        _C, "FILTRATE_COMPARTMENT", domain=NONNEGATIVE
    ),
    "body_weight": Kind(
        _P, "BODYWEIGHT", domain=NONNEGATIVE
    ),
    "body_weight_change": Kind(
        _P, "BODYWEIGHT", domain=REAL
    ),
    "height": Kind(_P, "HEIGHT", domain=NONNEGATIVE),
    "age": Kind(
        _P, "AGE_IN_PBPK_MODEL", domain=NONNEGATIVE
    ),
    "bmi": Kind(_P, "BODY_MASS_INDEX", domain=NONNEGATIVE),
    "bsa": Kind(
        _P,
        "SURFACE_AREA",
        terms=((BQB.IS, "ncit/C25157"),),
        domain=NONNEGATIVE,
    ),
    "lean_mass": Kind(
        _P,
        _PHYS,
        terms=((BQB.IS, "ncit/C71258"),),
        requested="fat-free mass",
        domain=NONNEGATIVE,
    ),
    "scaling_factor": Kind(
        _P,
        _PHYS,
        requested="covariate scaling factor",
        domain=NONNEGATIVE,
    ),
    "organ_mass": Kind(
        _P,
        _PHYS,
        organ="{}_MASS",
        requested="mass of organ",
        per_organ=False,
        domain=NONNEGATIVE,
    ),
    "organ_volume": Kind(
        _P,
        "VOLUME_OF_COMPARTMENT",
        organ="VOLUME_OF_{}",
        domain=NONNEGATIVE,
    ),
    "blood_volume": Kind(
        _P, "VOLUME_OF_BLOOD", domain=NONNEGATIVE
    ),
    "pool_volume": Kind(
        _P,
        "VOLUME_OF_COMPARTMENT",
        pools={
            Pool.ARTERIAL: "ARTERIAL_VOLUME",
            Pool.VENOUS: "VENOUS_VOLUME",
            Pool.PORTAL: "VOLUME_OF_PORTAL_VEIN",
        },
        domain=NONNEGATIVE,
    ),
    "pool_fraction": Kind(
        _P,
        _PHYS,
        requested="fraction of the blood volume in a blood pool",
        domain=FRACTION,
    ),
    "vascular_fraction": Kind(
        _P, "VOLUME_FRACTION_OF_BLOOD", domain=FRACTION
    ),
    "interstitial_fraction": Kind(
        _P,
        _PHYS,
        requested="interstitial volume fraction of an organ",
        domain=FRACTION,
    ),
    "tissue_volume": Kind(
        _P, "VOLUME_OF_COMPARTMENT", domain=NONNEGATIVE
    ),
    "zone_fraction": Kind(
        _P,
        _PHYS,
        requested="volume fraction of a zone of the liver",
        domain=FRACTION,
    ),
    "lobe_volume": Kind(
        _P,
        "VOLUME_OF_COMPARTMENT",
        requested="volume of a lobe of the liver",
        domain=NONNEGATIVE,
    ),
    "lobe_fraction": Kind(
        _P,
        _PHYS,
        requested="volume fraction of a lobe of the liver",
        domain=NONNEGATIVE,
    ),
    "lobe_supply_fraction": Kind(
        _P,
        "FRACTION_OF_BLOOD_FLOW_TO_A_COMPARTMENT",
        requested="fraction of the hepatic blood flow to a lobe of the liver",
        domain=FRACTION,
    ),
    "lobe_flow": Kind(
        _P,
        "BLOOD_FLOW_RATE_TO_COMPARTMENT",
        requested="blood flow to a lobe of the liver",
        domain=NONNEGATIVE,
    ),
    "lobe_perfusion": Kind(
        _P,
        _PHYS,
        requested="blood flow per volume of a lobe of the liver",
        domain=NONNEGATIVE,
    ),
    "lobe_growth": Kind(
        _P,
        _PHYS,
        requested="rate of change of the volume of a lobe of the liver (positive hypertrophy, negative atrophy)",
        domain=REAL,
    ),
    "remodelling_time": Kind(
        _P,
        _PHYS,
        requested="time constant of the remodelling of a lobe of the liver",
        domain=NONNEGATIVE,
    ),
    "lobe_patency": Kind(
        _P,
        _PHYS,
        requested="patency of a vascular branch of a lobe of the liver (1 open, 0 ligated)",
        domain=FRACTION,
    ),
    "lobe_present": Kind(
        _P,
        _PHYS,
        requested="presence of a lobe of the liver (1 in place, 0 resected)",
        domain=BOOLEAN,
    ),
    "remnant_fraction": Kind(
        _P,
        _PHYS,
        requested="share of the liver which is left after a resection",
        domain=NONNEGATIVE,
    ),
    "lobe_pressure": Kind(
        _P,
        _PHYS,
        requested="blood pressure in the sinusoids of a lobe of the liver",
        domain=NONNEGATIVE,
    ),
    "lobe_resistance": Kind(
        _P,
        _PHYS,
        requested="vascular resistance of a branch of a lobe of the liver",
        domain=NONNEGATIVE,
    ),
    "buffer_response": Kind(
        _P,
        _PHYS,
        requested="gain of the hepatic arterial buffer response",
        domain=NONNEGATIVE,
    ),
    "hematocrit": Kind(
        _P,
        "VOLUME_FRACTION_OF_RED_BLOOD_CELLS",
        terms=(
            (BQB.IS_PROPERTY_OF, "uberon/UBERON:0000178"),
        ),
        domain=FRACTION,
    ),
    "cardiac_output": Kind(
        _P, "CARDIAC_OUTPUT_RATE", domain=NONNEGATIVE
    ),
    "flow_fraction": Kind(
        _P,
        "FRACTION_OF_BLOOD_FLOW_TO_A_COMPARTMENT",
        organ="FRACTION_OF_BLOOD_FLOW_TO_{}",
        domain=FRACTION,
    ),
    "organ_flow": Kind(
        _P,
        "BLOOD_FLOW_RATE_TO_COMPARTMENT",
        organ="BLOOD_FLOW_RATE_TO_{}",
        domain=NONNEGATIVE,
    ),
    "hepatic_artery_flow": Kind(
        _P,
        "BLOOD_FLOW_RATE_TO_COMPARTMENT",
        requested="hepatic artery blood flow",
        domain=NONNEGATIVE,
    ),
    "portal_flow": Kind(
        _P,
        "BLOOD_FLOW_RATE_TO_PORTAL_VEIN",
        domain=NONNEGATIVE,
    ),
    "hepatic_flow": Kind(
        _P, "HEPATIC_VEIN_BLOOD_FLOW", domain=NONNEGATIVE
    ),
    "gfr": Kind(
        _P,
        "GLOMERULAR_FILTRATION_RATE",
        domain=NONNEGATIVE,
    ),
    "gfr_base": Kind(
        _P,
        _PHYS,
        terms=(
            (
                BQB.IS_VERSION_OF,
                pbpko("GLOMERULAR_FILTRATION_RATE"),
            ),
        ),
        requested="glomerular filtration rate at normal renal function",
        domain=NONNEGATIVE,
    ),
    "egfr": Kind(
        _P,
        "GLOMERULAR_FILTRATION_RATE",
        terms=((BQB.IS, "ncit/C110935"),),
        domain=NONNEGATIVE,
    ),
    "organ_function": Kind(
        _P,
        _PHYS,
        requested="relative organ function",
        domain=NONNEGATIVE,
    ),
    "tubular_share": Kind(
        _P,
        _PHYS,
        requested="share of the tubular capacity which follows the renal function",
        domain=FRACTION,
    ),
    "shunt": Kind(
        _P,
        _PHYS,
        requested="portosystemic shunt fraction",
        domain=FRACTION,
    ),
    "child_pugh": Kind(
        _P,
        _PHYS,
        terms=(_DISEASES["child_pugh"],),
        requested="severity of hepatic impairment",
        domain=Domain(0.0, 3.0),
    ),
    "heart_failure": Kind(
        _P,
        _PHYS,
        terms=(_DISEASES["heart_failure"],),
        requested="severity of heart failure",
        domain=Domain(0.0, 4.0),
    ),
    "ckd": Kind(
        _P,
        _PHYS,
        terms=(_DISEASES["ckd"],),
        requested="switch of the hepatic changes of chronic kidney disease",
        domain=BOOLEAN,
    ),
    "cirrhosis_factor": Kind(
        _P,
        _PHYS,
        terms=(_DISEASES["cirrhosis"],),
        requested="impairment factor",
        domain=NONNEGATIVE,
    ),
    "ckd_factor": Kind(
        _P,
        _PHYS,
        terms=(_DISEASES["ckd"],),
        requested="impairment factor",
        domain=NONNEGATIVE,
    ),
    "heart_failure_factor": Kind(
        _P,
        _PHYS,
        terms=(_DISEASES["heart_failure"],),
        requested="impairment factor",
        domain=NONNEGATIVE,
    ),
    "impairment_factor": Kind(
        _P,
        _PHYS,
        requested="impairment factor",
        domain=NONNEGATIVE,
    ),
    "age_factor": Kind(
        _P,
        _PHYS,
        requested="factor of the age on a physiological quantity",
        domain=NONNEGATIVE,
    ),
    "sex_factor": Kind(
        _P,
        _PHYS,
        requested="factor of the sex on a physiological quantity",
        domain=NONNEGATIVE,
    ),
    "body_composition": Kind(
        _P,
        _PHYS,
        requested="body composition of an individual",
        domain=NONNEGATIVE,
    ),
    "body_composition_change": Kind(
        _P,
        _PHYS,
        requested="body composition of an individual",
        domain=REAL,
    ),
    "fat_mass": Kind(
        _P,
        _PHYS,
        requested="body fat mass",
        domain=NONNEGATIVE,
    ),
    "adipose_depot": Kind(
        _P,
        _PHYS,
        requested="mass of an adipose tissue depot",
        domain=NONNEGATIVE,
    ),
    "obesity_factor": Kind(
        _P,
        _PHYS,
        requested="factor of obesity on a physiological quantity",
        domain=NONNEGATIVE,
    ),
    "weight_change": Kind(
        SBO.KINETIC_CONSTANT,
        _PHYS,
        requested="rate of the change of the body weight",
        domain=NONNEGATIVE,
    ),
    "gestational_age": Kind(
        _P,
        _PHYS,
        requested="gestational age of a pregnancy",
        domain=NONNEGATIVE,
    ),
    "pregnancy": Kind(
        _P,
        _PHYS,
        requested="factor of the pregnancy on a physiological quantity",
        domain=NONNEGATIVE,
    ),
    "placenta": Kind(
        _C,
        "COMPARTMENT",
        requested="placenta compartment",
        domain=NONNEGATIVE,
    ),
    "fetus": Kind(
        _C,
        "COMPARTMENT",
        requested="fetus compartment",
        domain=NONNEGATIVE,
    ),
    "clock_time": Kind(
        _P,
        _PHYS,
        requested="clock time of a simulation",
        domain=Domain(0.0, 24.0),
    ),
    "circadian": Kind(
        _P,
        _PHYS,
        requested="circadian rhythm of a physiological quantity",
        domain=NONNEGATIVE,
    ),
    "molecular_weight": Kind(
        SBO.MOLECULAR_MASS,
        "MOLECULAR_WEIGHT",
        domain=NONNEGATIVE,
    ),
    "fu": Kind(
        _P, "FRACTION_UNBOUND_PLASMA", domain=FRACTION
    ),
    "fraction_reabsorbed": Kind(
        _P, "RESORPTION", domain=FRACTION
    ),
    "reabsorption_threshold": Kind(
        _P,
        _BIOCHEM,
        requested="renal threshold of a saturable reabsorption",
        domain=NONNEGATIVE,
    ),
    "reabsorption_n": Kind(
        _P,
        _BIOCHEM,
        requested="sharpness of the renal threshold of a saturable reabsorption",
        domain=NONNEGATIVE,
    ),
    "baseline": Kind(
        _P,
        "CONCENTRATION_IN_PLASMA",
        requested="endogenous baseline plasma concentration",
        domain=NONNEGATIVE,
    ),
    "steady_clearance": Kind(
        _P, "CLEARANCE_RATE", domain=NONNEGATIVE
    ),
    "steady_rate": Kind(
        _P,
        _BIOCHEM,
        requested="net production rate at the steady state",
        domain=REAL,
    ),
    "steady_vmax": Kind(
        SBO.MAXIMAL_VELOCITY,
        "MAXIMUM_RATE",
        domain=NONNEGATIVE,
    ),
    "steady_km": Kind(
        SBO.MICHAELIS_CONSTANT,
        _BIOCHEM,
        requested="Michaelis constant",
        domain=NONNEGATIVE,
    ),
    "steady_plasma": Kind(
        _P, "CONCENTRATION_IN_PLASMA", domain=NONNEGATIVE
    ),
    "kp": Kind(
        _P,
        "TISSUE_PLASMA_PARTITION_COEFFICIENT",
        domain=NONNEGATIVE,
    ),
    "kp_organ": Kind(
        _P,
        "TISSUE_PLASMA_PARTITION_COEFFICIENT",
        organ="{}_PLASMA_PARTITION_COEFFICIENT",
        domain=NONNEGATIVE,
    ),
    "kp_factor": Kind(
        _P,
        _BIOCHEM,
        requested="factor of the partition coefficients",
        domain=NONNEGATIVE,
    ),
    "partition": Kind(
        _P, "PARTITION_COEFFICIENT", domain=NONNEGATIVE
    ),
    "slow_pool_exchange": Kind(
        _P,
        _BIOCHEM,
        requested="exchange rate constant of a slow tissue pool per tissue volume",
        domain=NONNEGATIVE,
    ),
    "tissue_composition": Kind(
        _P,
        _PHYS,
        requested="tissue composition (water, protein, lipid fractions)",
        domain=FRACTION,
    ),
    "concentration_ratio": Kind(
        _P,
        _PHYS,
        requested="tissue composition (water, protein, lipid fractions)",
        domain=NONNEGATIVE,
    ),
    "permeability": Kind(
        _P,
        _BIOCHEM,
        requested="permeability surface area product (exchange flow)",
        domain=NONNEGATIVE,
    ),
    "pore_permeability": Kind(
        _P,
        _BIOCHEM,
        requested="permeability of a solute through a membrane or a pore (a velocity)",
        domain=NONNEGATIVE,
    ),
    "diffusion": Kind(
        None, "DIFFUSION_COEFFICIENT", domain=NONNEGATIVE
    ),
    "sinusoid_geometry": Kind(
        _P,
        _PHYS,
        requested="geometry of the hepatic sinusoid (the radius and the length of the lumen, the lateral area of an interface, the fenestral porosity of the endothelium)",
        domain=NONNEGATIVE,
    ),
    "bp": Kind(
        _P, "BLOOD_PLASMA_RATIO", domain=NONNEGATIVE
    ),
    "kbc": Kind(
        _P,
        "RED_BLOOD_CELLS_PARTITION_COEFFICIENT",
        domain=NONNEGATIVE,
    ),
    "exchange_rate": Kind(
        _P,
        _BIOCHEM,
        requested="exchange rate constant of plasma and blood cells",
        domain=NONNEGATIVE,
    ),
    "endothelial_exchange": Kind(
        _P,
        _PHYS,
        requested="endothelial exchange rate constant per organ volume",
        domain=NONNEGATIVE,
    ),
    "activity": Kind(
        SBO.RELATIVE_ACTIVITY,
        _BIOCHEM,
        requested="relative activity of enzyme or transporter",
        domain=NONNEGATIVE,
    ),
    "enzyme_amount": Kind(
        SBO.RELATIVE_ACTIVITY,
        _BIOCHEM,
        requested="relative amount of enzyme or transporter",
        domain=NONNEGATIVE,
    ),
    "kdeg": Kind(
        SBO.DECAY_CONSTANT,
        "DEGRADATION_RATE_CONSTANT",
        domain=NONNEGATIVE,
    ),
    "ki": Kind(
        SBO.INHIBITORY_CONSTANT,
        "INHIBITION_CONSTANT",
        domain=NONNEGATIVE,
    ),
    "kinact": Kind(
        SBO.INACTIVATION_RATE_CONSTANT,
        _BIOCHEM,
        requested="maximal inactivation rate constant",
        domain=NONNEGATIVE,
    ),
    "emax": Kind(
        _P,
        _BIOCHEM,
        requested="maximal induction",
        domain=NONNEGATIVE,
    ),
    "ec50": Kind(
        SBO.EC50,
        _BIOCHEM,
        requested="half-maximal effective concentration",
        domain=NONNEGATIVE,
    ),
    "placement_weight": Kind(
        _P,
        _MISC,
        requested="abundance weight of a protein or process",
        domain=FRACTION,
    ),
    "relative_abundance": Kind(
        _P,
        _MISC,
        requested="abundance weight of a protein or process",
        domain=NONNEGATIVE,
    ),
    "vmax": Kind(
        SBO.MAXIMAL_VELOCITY,
        "MAXIMUM_RATE",
        organ="MAXIMUM_RATE_IN_{}",
        per_organ=False,
        domain=NONNEGATIVE,
    ),
    "vmax_basolateral": Kind(
        SBO.MAXIMAL_VELOCITY,
        "MAXIMUM_RATE_OF_BASOLATERAL_TRANSPORTER",
        domain=NONNEGATIVE,
    ),
    "vmax_apical": Kind(
        SBO.MAXIMAL_VELOCITY,
        "MAXIMUM_RATE_OF_APICAL_TRANSPORTER",
        domain=NONNEGATIVE,
    ),
    "km": Kind(
        SBO.MICHAELIS_CONSTANT,
        _BIOCHEM,
        organ="MICHAELIS_CONSTANT__{}",
        requested="Michaelis constant",
        per_organ=False,
        domain=NONNEGATIVE,
    ),
    "km_basolateral": Kind(
        SBO.MICHAELIS_CONSTANT,
        "MICHAELIS_CONSTANT_BASO",
        domain=NONNEGATIVE,
    ),
    "km_apical": Kind(
        SBO.MICHAELIS_CONSTANT,
        "MICHAELIS_CONSTANT_APICAL",
        domain=NONNEGATIVE,
    ),
    "hill": Kind(
        SBO.HILL_COEFFICIENT,
        "HILL_COEFFICIENT",
        domain=NONNEGATIVE,
    ),
    "k_metabolism": Kind(
        SBO.KINETIC_CONSTANT,
        "INTRINSIC_CLEARANCE_RATE",
        domain=NONNEGATIVE,
    ),
    "k_influx": Kind(
        SBO.KINETIC_CONSTANT,
        "CLEARANCE_RATE",
        domain=NONNEGATIVE,
    ),
    "k_efflux": Kind(
        SBO.KINETIC_CONSTANT,
        "CLEARANCE_RATE",
        domain=NONNEGATIVE,
    ),
    "k_metabolism_volume": Kind(
        SBO.KINETIC_CONSTANT,
        _BIOCHEM,
        terms=(
            (
                BQB.IS_VERSION_OF,
                pbpko("INTRINSIC_CLEARANCE_RATE"),
            ),
        ),
        requested="intrinsic clearance per organ volume",
        domain=NONNEGATIVE,
    ),
    "k_transport_volume": Kind(
        SBO.KINETIC_CONSTANT,
        _BIOCHEM,
        terms=(
            (BQB.IS_VERSION_OF, pbpko("CLEARANCE_RATE")),
        ),
        requested="transport clearance per organ volume",
        domain=NONNEGATIVE,
    ),
    "rate_ratio": Kind(
        _P,
        _BIOCHEM,
        requested="ratio of the capacity of a process to another process",
        domain=NONNEGATIVE,
    ),
    "product_fraction": Kind(
        _P,
        _BIOCHEM,
        requested="fraction of a metabolism which forms a product",
        domain=FRACTION,
    ),
    "custom_parameter": Kind(None, _MISC),
    "definition_parameter": Kind(None, _MISC),
    "custom_species": Kind(
        None,
        "CONCENTRATION_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "custom_amount": Kind(
        None,
        "AMOUNT_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "dose": Kind(
        _P,
        "PARAMETER",
        terms=((BQB.IS, "ncit/C25488"),),
        requested="dose",
        domain=NONNEGATIVE,
    ),
    "iv_time": Kind(
        _P,
        "PARAMETER",
        terms=_IV_BOLUS,
        requested="injection time of an intravenous dose",
        domain=NONNEGATIVE,
    ),
    "iv_rate": Kind(
        SBO.FORWARD_RATE_CONSTANT,
        "PARAMETER",
        terms=_IV_BOLUS,
        requested="injection rate constant of an intravenous dose",
        domain=NONNEGATIVE,
    ),
    "infusion_rate": Kind(
        _P,
        "PARAMETER",
        terms=_IV_INFUSION,
        requested="infusion rate of an intravenous infusion",
        domain=NONNEGATIVE,
    ),
    "dissolution": Kind(
        _P,
        _MISC,
        requested="dissolution of a formulation",
        domain=NONNEGATIVE,
    ),
    "application_rate": Kind(
        SBO.FORWARD_RATE_CONSTANT,
        "ABSORPTION_RATE_CONSTANT",
        domain=NONNEGATIVE,
    ),
    "absorption_rate": Kind(
        SBO.FORWARD_RATE_CONSTANT,
        "ABSORPTION_RATE_CONSTANT_INTESTINE",
        domain=NONNEGATIVE,
    ),
    "transit_time": Kind(
        _P, "INTESTINAL_TRANSIT_TIME", domain=NONNEGATIVE
    ),
    "gastric_transit_time": Kind(
        _P,
        _PHYS,
        requested="gastric emptying time",
        domain=NONNEGATIVE,
    ),
    "fed": Kind(
        _P,
        _MISC,
        terms=((BQB.IS_VERSION_OF, "ncit/C65056"),),
        requested="prandial state (fed or fasted)",
        domain=FRACTION,
    ),
    "intestine_geometry": Kind(
        _P,
        _PHYS,
        requested="intestinal mucosa and absorption geometry",
        domain=NONNEGATIVE,
    ),
    "gut_flow": Kind(
        _P, "BLOOD_FLOW_RATE_TO_GUT", domain=NONNEGATIVE
    ),
    "gut_volume": Kind(
        _P, "VOLUME_OF_GUT", domain=NONNEGATIVE
    ),
    "mucosa_flow": Kind(
        _P,
        "BLOOD_FLOW_RATE_TO_COMPARTMENT",
        requested="blood flow rate to intestinal mucosa",
        domain=NONNEGATIVE,
    ),
    "mucosa_volume": Kind(
        _P, "ENTEROCYTE_VOLUME", domain=NONNEGATIVE
    ),
    "bile_transit": Kind(
        SBO.FORWARD_RATE_CONSTANT,
        _PHYS,
        requested="bile transit rate constant",
        domain=NONNEGATIVE,
    ),
    "tubule_fraction": Kind(
        _P,
        _PHYS,
        requested="tubular flow fraction of the glomerular filtration rate",
        domain=FRACTION,
    ),
    "fraction_absorbed": Kind(
        _P, "UPTAKE_FRACTION_TO_BLOOD", domain=FRACTION
    ),
    "colon_absorption": Kind(
        _P,
        _PHYS,
        requested="absorption factor of the large intestine",
        domain=NONNEGATIVE,
    ),
    "regional_absorption": Kind(
        _P,
        _BIOCHEM,
        requested="relative absorption of a substance in an intestinal segment",
        domain=NONNEGATIVE,
    ),
    "lumen_conversion_rate": Kind(
        SBO.FORWARD_RATE_CONSTANT,
        _BIOCHEM,
        requested="rate constant of a conversion in the intestinal lumen",
        domain=NONNEGATIVE,
    ),
    "arm_weight": Kind(
        _P,
        _PHYS,
        requested="weight of a tissue in the arm vein sampling site",
        domain=FRACTION,
    ),
    "outflow": Kind(
        _P,
        "TOTAL_VENOUS_CONCENTRATION_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "outflow_blood_cells": Kind(
        _P,
        "CONCENTRATION_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "outflow_lobe": Kind(
        _P,
        "TOTAL_VENOUS_CONCENTRATION_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "organ_concentration": Kind(
        _P,
        "CONCENTRATION_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "organ_amount": Kind(
        _P,
        "AMOUNT_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "plasma_concentration": Kind(
        _P, "CONCENTRATION_IN_PLASMA", domain=NONNEGATIVE
    ),
    "free_concentration": Kind(
        _P,
        "UNBOUND_CONCENTRATION_IN_PLASMA",
        domain=NONNEGATIVE,
    ),
    "blood_concentration": Kind(
        _P, "CONCENTRATION_IN_BLOOD", domain=NONNEGATIVE
    ),
    "unbound_concentration": Kind(
        _P,
        "UNBOUND_CONCENTRATION_OF_COMPUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "urine_rate": Kind(
        _P,
        "OUTPUT_PARAMETER",
        terms=((BQB.IS_VERSION_OF, pbpko("URINARY_RATE")),),
        requested="urinary excretion rate (amount of compound per time)",
        domain=NONNEGATIVE,
    ),
    "lumen_amount": Kind(
        _P, "AMOUNT_IN_LUMEN", domain=NONNEGATIVE
    ),
    "intestine_absorption": Kind(
        _P,
        "OUTPUT_PARAMETER",
        terms=((BQB.IS_VERSION_OF, pbpko("ABSORPTION")),),
        requested="intestinal absorption rate (amount of compound per time)",
        domain=NONNEGATIVE,
    ),
    "intestine_efflux": Kind(
        _P,
        "OUTPUT_PARAMETER",
        terms=(
            (
                BQB.IS_VERSION_OF,
                pbpko("DISTRIBUTION_PROCESS"),
            ),
        ),
        requested="intestinal efflux rate into the lumen (amount of compound per time)",
        domain=NONNEGATIVE,
    ),
    "feces_rate": Kind(
        _P,
        "OUTPUT_PARAMETER",
        terms=(
            (BQB.IS_VERSION_OF, pbpko("FECAL_EXCRETION")),
        ),
        requested="fecal excretion rate (amount of compound per time)",
        domain=NONNEGATIVE,
    ),
    "absorbed_amount": Kind(
        _P,
        "OUTPUT_PARAMETER",
        terms=((BQB.IS_VERSION_OF, pbpko("ABSORPTION")),),
        requested="amount of compound absorbed from the intestinal lumen",
        domain=NONNEGATIVE,
    ),
    "absorbed_fraction": Kind(
        _P,
        "OUTPUT_PARAMETER",
        terms=((BQB.IS_VERSION_OF, pbpko("ABSORPTION")),),
        requested="fraction of the oral dose absorbed from the intestinal lumen",
        domain=NONNEGATIVE,
    ),
    "oral_dose_applied": Kind(
        _P,
        "OUTPUT_PARAMETER",
        requested="amount of the oral dose applied to the intestinal lumen",
        domain=NONNEGATIVE,
    ),
    "observer": Kind(_P, "OUTPUT_PARAMETER", domain=REAL),
    "concentration": Kind(
        _SPECIES,
        "CONCENTRATION_OF_COMPOUND_IN_COMPARTMENT",
        domain=NONNEGATIVE,
    ),
    "concentration_plasma": Kind(
        _SPECIES,
        "CONCENTRATION_IN_PLASMA",
        domain=NONNEGATIVE,
    ),
    "concentration_tissue": Kind(
        _SPECIES,
        "CONCENTRATION_OF_COMPOUND_IN_COMPARTMENT",
        organ="CONCENTRATION_IN_{}",
        domain=NONNEGATIVE,
    ),
    "concentration_lumen": Kind(
        _SPECIES,
        "CONCENTRATION_IN_LUMEN",
        domain=NONNEGATIVE,
    ),
    "concentration_mucosa": Kind(
        _SPECIES,
        "CONCENTRATION_IN_INTESTINAL_TISSUE",
        domain=NONNEGATIVE,
    ),
    "concentration_bile": Kind(
        _SPECIES,
        "CONCENTRATION_IN_BILE",
        domain=NONNEGATIVE,
    ),
    "concentration_tubule": Kind(
        _SPECIES,
        "CONCENTRATION_IN_FILTRATE",
        domain=NONNEGATIVE,
    ),
    "amount_urine": Kind(
        _SPECIES,
        "CUMULATIVE_AMOUNT_IN_URINE",
        domain=NONNEGATIVE,
    ),
    "amount_feces": Kind(
        _SPECIES,
        "CUMULATIVE_AMOUNT_IN_FECES",
        domain=NONNEGATIVE,
    ),
    "amount_undissolved": Kind(
        _SPECIES,
        "AMOUNT_IN_LUMEN",
        requested="amount of undissolved drug",
        domain=NONNEGATIVE,
    ),
    "amount_remodelled": Kind(
        _SPECIES,
        "AMOUNT_OF_COMPOUND_IN_COMPARTMENT",
        requested="cumulative amount carried away by atrophied tissue",
        domain=NONNEGATIVE,
    ),
    "blood_flow": Kind(
        _T,
        "DISTRIBUTION_PROCESS",
        terms=((BQB.IS, "go/GO:0008015"),),
    ),
    "exchange": Kind(_T, "DISTRIBUTION_PROCESS"),
    "remodelling": Kind(
        _T,
        "DISTRIBUTION_PROCESS",
        requested="loss of a compound with the tissue a liver lobe has lost",
    ),
    "metabolism": Kind(
        SBO.BIOCHEMICAL_REACTION,
        "LINEAR_ELIMINATION",
        terms=((BQB.IS, "go/GO:0008152"),),
    ),
    "metabolism_saturable": Kind(
        SBO.BIOCHEMICAL_REACTION,
        "NON_LINEAR_ELIMINATION",
        terms=((BQB.IS, "go/GO:0008152"),),
    ),
    "gut_metabolism": Kind(
        SBO.BIOCHEMICAL_REACTION,
        "GUT_METABOLISM",
        terms=((BQB.IS, "go/GO:0008152"),),
    ),
    "metabolism_product": Kind(
        SBO.BIOCHEMICAL_REACTION,
        None,
        terms=((BQB.IS_PART_OF, "go/GO:0008152"),),
    ),
    "transport": Kind(
        _T,
        "DISTRIBUTION_PROCESS",
        terms=((BQB.IS, "go/GO:0055085"),),
    ),
    "biliary_excretion": Kind(
        _T,
        "BILIARY_ELIMINATION",
        terms=((BQB.IS, "go/GO:0055085"),),
    ),
    "renal_secretion": Kind(
        _T,
        "RENAL_EXCRETION",
        terms=((BQB.IS, "go/GO:0097254"),),
    ),
    "reabsorption": Kind(
        _T,
        "RESORPTION",
        terms=((BQB.IS, "go/GO:0055085"),),
    ),
    "filtration": Kind(
        _T,
        "RENAL_EXCRETION",
        terms=((BQB.IS, "go/GO:0003094"),),
    ),
    "tubular_flow": Kind(
        _T,
        None,
        terms=(
            (BQB.IS_PART_OF, pbpko("RENAL_EXCRETION")),
            (BQB.IS_PART_OF, "go/GO:0007588"),
        ),
    ),
    "absorption": Kind(
        _T,
        "ABSORPTION",
        terms=((BQB.IS, "go/GO:0050892"),),
    ),
    "dissolution_reaction": Kind(
        _T,
        None,
        terms=((BQB.IS_PART_OF, pbpko("ABSORPTION")),),
        requested="dissolution process",
    ),
    "transit": Kind(
        _T,
        None,
        terms=((BQB.IS_VERSION_OF, "go/GO:0022600"),),
        requested="gastrointestinal transit process",
    ),
    "fecal_excretion": Kind(
        _T,
        "FECAL_EXCRETION",
        terms=((BQB.IS, "go/GO:0007588"),),
    ),
    "lumen_conversion": Kind(
        SBO.BIOCHEMICAL_REACTION,
        None,
        terms=(
            (BQB.IS_VERSION_OF, pbpko("GUT_METABOLISM")),
        ),
        requested="conversion in the intestinal lumen",
    ),
    "bile_flow": Kind(
        _T,
        None,
        terms=(
            (
                BQB.IS_PART_OF,
                pbpko("ENTEROHEPATIC_RECIRCULATION"),
            ),
        ),
    ),
    "iv_application": Kind(
        _T,
        None,
        terms=(
            (
                BQB.IS_VERSION_OF,
                pbpko("INTRAVENOUS_BOLUS_EXPOSURE"),
            ),
            (
                BQB.IS_VERSION_OF,
                pbpko("INTRAVENOUS_INFUSION_EXPOSURE"),
            ),
        ),
    ),
    "oral_application": Kind(_T, "ORAL_EXPOSURE"),
    **_depot_kinds(),
    "rectal_portal_fraction": Kind(
        _P,
        _PHYS,
        terms=(
            (BQB.IS_VERSION_OF, pbpko("ROUTE_OF_EXPOSURE")),
            (
                BQB.IS_PROPERTY_OF,
                _DEPOT_ROUTES["rectal"].route,
            ),
        ),
        requested="fraction of the absorbed rectal dose into the portal vein",
        domain=FRACTION,
    ),
    "inhaled_swallowed_fraction": Kind(
        _P,
        _PHYS,
        terms=(
            (
                BQB.IS_PROPERTY_OF,
                pbpko("INHALATION_EXPOSURE"),
            ),
            (
                BQB.IS_PROPERTY_OF,
                _DEPOT_ROUTES["inhaled"].route,
            ),
        ),
        requested="fraction of an inhaled dose which is swallowed",
        domain=FRACTION,
    ),
    "inhaled_swallow_rate": Kind(
        _P,
        "OUTPUT_PARAMETER",
        terms=(
            (BQB.IS_PART_OF, pbpko("INHALATION_EXPOSURE")),
            (
                BQB.IS_PART_OF,
                _DEPOT_ROUTES["inhaled"].route,
            ),
        ),
        requested="swallowed part of an inhaled dose (mass per time)",
        domain=NONNEGATIVE,
    ),
    "depot_loss_inhaled": Kind(
        _T,
        None,
        terms=(
            (BQB.IS_PART_OF, pbpko("INHALATION_EXPOSURE")),
            (
                BQB.IS_PART_OF,
                _DEPOT_ROUTES["inhaled"].route,
            ),
        ),
        requested="loss of an inhaled dose which is neither deposited nor swallowed",
    ),
    "custom_reaction": Kind(
        SBO.BIOCHEMICAL_OR_TRANSPORT_REACTION,
        None,
        terms=((BQB.IS_VERSION_OF, "go/GO:0008150"),),
    ),
}

The kinds of the elements the library creates.

Kind dataclass

Kind(
    sbo,
    pbpko,
    organ=None,
    pools=dict(),
    terms=(),
    requested=None,
    per_organ=True,
    is_place=False,
    domain=None,
)

What an element is: its SBO term and its ontology terms.

Attributes:

Name Type Description
sbo str | None

the SBO term, None keeps the SBO term of the element.

pbpko str | None

the name of the PBPKO term, the broader term where PBPKO has no term for the kind (requested), None for no PBPKO term.

organ str | None

the name of the organ-specific PBPKO term with {} for the token of the organ (VOLUME_OF_{}), which replaces pbpko where PBPKO has it.

pools Mapping[Pool, str]

the PBPKO term of the kind by blood pool, which replaces pbpko.

terms tuple[Term, ...]

further terms of the kind (BQB.IS, other ontologies).

requested str | None

the PBPKO term which is missing, if pbpko is a broader term.

per_organ bool

the organ-specific terms which PBPKO lacks are requested for every organ (the physiology), not only where PBPKO has some (the kinetics of the processes, MICHAELIS_CONSTANT__LIVER).

is_place bool

the element is the place itself (the whole organ of a flow-limited organ), so the terms of the place are BQB.IS.

domain Domain | None

the values the model accepts for an element of the kind (an interval, and whether every real number in it, the integers or the two truth values), written as its domain uncertainty. None for a kind whose element holds no number (a reaction) and for the two kinds of a constant the model states itself (definition_parameter, custom_parameter), whose ModelParameter states its own.

initial_assignment

initial_assignment(symbol, formula, unit, name)

Get the initial assignment of a constant, with a name and an SBO term.

Every quantity of the library which depends on parameters only is a constant with an initial assignment; the assignment carries the name of its target and the SBO term of a mathematical expression, so the factory has nothing to hint about.

Parameters:

Name Type Description Default
symbol str

the id of the target.

required
formula str

the formula.

required
unit UnitType

the unit of the formula.

required
name str

the name of the target.

required

Returns:

Type Description
InitialAssignment

The initial assignment.

pbpko

pbpko(name)

Get the resource of a term of the pinned PBPKO by its name.

Parameters:

Name Type Description Default
name str

the name of the term in the pymetadata enum, LIVER_COMPARTMENT.

required

Returns:

Type Description
str

The resource https://bioregistry.io/PBPKO:00558: identifiers.org

str

does not register PBPKO, so pymetadata cannot parse a

str

pbpko/PBPKO:00558 (it logs a MIRIAM error and writes an

str

identifiers.org url which does not resolve); the bioregistry url is

str

written as given and resolves.

Raises:

Type Description
AttributeError

if PBPKO has no term of the name.

annotate

annotate(
    element,
    kind,
    *,
    organ=None,
    pool=None,
    segment=None,
    site=None,
    protein=None,
    substance=None,
)

Annotate an element the library creates by its kind and its place.

Parameters:

Name Type Description Default
element S

the compartment, species, parameter or reaction.

required
kind str

the kind of the element, a key of KINDS.

required
organ Organ | None

the organ of the element.

None
pool Pool | None

the blood pool of the element.

None
segment str | None

the lumen segment of the element (du, pt), a key of SEGMENTS.

None
site str | None

the sampling site of an observer, a key of SITES.

None
protein str | None

the protein of a process or of its parameters; a protein which is not in the protein table adds no terms (a definition checks its proteins, PBPKDefinition.validate).

None
substance Substance | None

the substance of a species, whose annotations it takes.

None

Returns:

Type Description
S

The element, with the SBO term of the kind (a kind which keeps the

S

SBO term of the element gives a generic one to an element without)

S

and its terms added to its annotations; a term of the place whose

S

resource the element has already (as what it is) is not repeated.

S

The domain of the kind is appended to its uncertainties, unless the

S

element states a domain already (a ModelParameter does), so an

S

element never carries two.

Raises:

Type Description
KeyError

if the kind, the segment or the site is unknown.

model_annotations

model_annotations(substances, species=HUMAN)

Get the annotations of a PBPK model: its type, the taxon and the approach.

A model is perfusion-limited when every substance which enters tissue does so flow-limited (Mode.PERFUSION), permeability-limited when one has a finite exchange.

Parameters:

Name Type Description Default
substances Iterable[Substance]

the substances of the model.

required
species Species

the species of the build, its taxon.

HUMAN

Returns:

Type Description
list[Term]

The terms of the model.

requested_terms

requested_terms()

Get the PBPKO terms the library needs and the pinned PBPKO lacks.

Returns:

Name Type Description
dict[str, str]

The missing terms with the broader PBPKO term the library uses

instead dict[str, str]

the requested terms of the kinds and the organ-specific

dict[str, str]

terms of the kinds which PBPKO lacks for an organ.

values

Value, Formula, ModelParameter, fitted and the checks of a number are the kit's, documented at sbml; pkpdsim.pbpk.values re-exports them unchanged and keeps the import path of the library.

data

The numbers of the PBPK library from the parameter database.

The library holds no numbers of its own: they are the tables and the studies of pkpdsim.database. This module reads them for the library, value as a Value with the unit of the model, its source and its uncertainty.

Source dataclass

Source(key, citation, doi=None)

A publication a number is taken from.

Attributes:

Name Type Description
key str

the key of the source, e.g. ICRP89.

citation str

the citation.

doi str | None

the DOI of the publication.

cite

cite(key)

Get the citation of a source with its DOI.

Parameters:

Name Type Description Default
key str

the key of the source.

required

Returns:

Type Description
str

The citation, followed by the DOI if the source has one.

Raises:

Type Description
KeyError

if no source has the key.

load

load(name)

Load a table.

Parameters:

Name Type Description Default
name str

the name of the table without extension, e.g. routes.

required

Returns:

Type Description
dict[str, Any]

The content of tables/<name>.toml, a copy which the caller may change.

sources cached

sources()

Get the sources by their key.

sbml_uncertainty

sbml_uncertainty(uncertainty, unit, source)

Get the SBML uncertainty of a number of the database.

Parameters:

Name Type Description Default
uncertainty Uncertainty

the uncertainty the source states.

required
unit UnitDefinition

the unit of the number in the model.

required
source str

the key of the source.

required

Returns:

Type Description
Uncertainty

The distrib uncertainty: the standard deviation, the standard error,

Uncertainty

the coefficient of variation, the sample size and the 95 % confidence

Uncertainty

interval which the source states.

value

value(name, section, key)

Get a number of a table with its unit, source, notes and uncertainty.

Parameters:

Name Type Description Default
name str

the name of the table without extension, e.g. routes.

required
section str

the table of the number.

required
key str

the key of the number in the table.

required

Returns:

Type Description
Value

The value, with the uncertainty its source states.

Raises:

Type Description
ValueError

if the unit of the number is not a unit of the model or the number is a vector.

units

U and MODEL_UNITS, the units of every model, are the kit's and are documented at sbml; pkpdsim.pbpk.units re-exports them and keeps the import path of the library. The units outside U, which a model defines only where it uses one, and the labels of the figures are the library's own.

The units of the PBPK models.

Time is in min, substance in mmole, volume in litre and area in m2, the model_units of the models. Every unit of U is a unit definition of every model; a unit outside U (EXTRA_UNITS, ML_PER_MIN_1P73M2) is one only of a model which uses it.

U and MODEL_UNITS are the SBML writing kit's (pkpdsim.sbml.units), which every library of pkpdsim shares; this module is the import path of the library and re-exports them unchanged. The units outside U and the labels of the figures are the library's own.

ML_PER_MIN_1P73M2 module-attribute

ML_PER_MIN_1P73M2 = UnitDefinition(
    "ml_per_min_1p73m2",
    "ml/min/(1.73*meter^2)",
    name="ml/min/1.73 m2",
)

Millilitre per minute per 1.73 m2 body surface area, the unit of a clearance or a GFR per body surface area (eGFR, CLrenal/BSA).

1 ml/min/1.73 m2 = 1e-3/1.73 l/min/m2: a quantity in l/min divided by the body surface area BSA (m2) is 1730 times the number in this unit, in consistent units GFR / BSA * 1730 ml_per_min_1p73m2 * 1 m2 / 1 l_per_min. Not a unit of U, so the models without it keep their unit definitions; a model defines it wherever it uses it (an observer, a parameter of the definition, a custom reaction, a number of a formula).

HOUR module-attribute

HOUR = UnitDefinition('hr', 'hr', name='hour')

The hour, the unit of the clock time of the circadian rhythms (CLOCK, the acrophases); a model defines it only when it has the rhythms.

WEEK module-attribute

WEEK = UnitDefinition('week', 'week', name='week')

The week, the unit of the gestational age GA of a pregnancy (pkpdsim.pbpk.pregnancy); a model defines it only when it is pregnant.

KG_PER_MIN module-attribute

KG_PER_MIN = UnitDefinition(
    "kg_per_min", "kg/min", name="kg/min"
)

Kilogram per minute, the unit of the rate rule of the body weight of a model with an effect on the weight (pkpdsim.pbpk.adipose); a model defines it only when its weight changes.

EXTRA_UNITS module-attribute

The units of the library outside U: a model defines one when it uses it, as the unit of an element or by its id in a formula.

UNIT_LABELS module-attribute

UNIT_LABELS = MappingProxyType(
    {
        "ml_per_min_1p73m2": "ml/min/1.73\xa0m²",
        "hr": "h",
        "week": "week",
        "kg_per_min": "kg/min",
    }
)

The text of a unit of EXTRA_UNITS on a figure, by the unit id.

sbmlsim writes a unit which pint does not read (a unit id of the model, ml_per_min_1p73m2) on an axis as it is given; the figures show this text instead (unit_label, axis). The words of a text are joined by a non-breaking space (U+00A0, 1.73 m²): a renderer may wrap a label which is longer than its axis at its spaces, and a unit is not broken. The unit definition keeps its name in the SBML.

unit_label

unit_label(unit)

The text of a unit on a figure.

Parameters:

Name Type Description Default
unit str | None

the unit of an axis, a unit id of the model or a unit which pint reads.

required

Returns:

Type Description
str

The text of UNIT_LABELS for a unit of EXTRA_UNITS by id, else the

str

short form of sbmlsim (h for hr, empty for dimensionless).

axis

axis(label, unit, **kwargs)

An axis of sbmlsim in a unit, with the text of the unit on the figure.

The unit stays what the data and the model are converted to (ml_per_min_1p73m2, a unit of the model), the label of the axis is <label> [<unit_label(unit)>]: a clearance per body surface area reads [ml/min/1.73 m²], not the unit id which sbmlsim writes.

Parameters:

Name Type Description Default
label str

the label of the axis.

required
unit str | None

the unit of the axis.

required
**kwargs Any

further arguments of sbmlsim.plot.Axis (scale, min, ...).

{}

Returns:

Type Description
Axis

The axis, its name the label with the text of the unit.