Skip to main content

Drug Metabolite Ontology

Pharmacological and Therapeutic Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 27 October 2026
Audio Overview
FLOW ALGEBRA — DRUG METABOLITE ONTOLOGY
Version: 1.0 | 2026-10-27 | Encoding: UTF-8
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/pharmacological-and-therapeutic-entities/drug-metabolite-ontology.html
Status: Original companion formalisation; source's embedded rules not retrievable.
Purpose: Describe and reason over drug metabolites, formation, transport, effects, evidence and provenance.
Scope: Ontological modelling only; not clinical dosing or treatment guidance.

01. ENTITY MODEL
DrugMetabolite(m) := ChemicalEntity(m) AND ProducedByBiotransformation(m, parent)
Entity types: ParentDrug, Metabolite, Enzyme, Transporter, Tissue, Compartment, Reaction, Pathway, Exposure, Assay, Evidence, Organism.
Metabolite attributes: identifier, chemical_structure, parent_drug, reaction_type, phase, formation_site, clearance_route, activity, toxicity, measurement_unit, evidence_status.
Identity: identifiers and structures are provenance-linked; do not merge positional isomers, stereoisomers or conjugates without evidence.

02. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = observations, compounds, assay results and context at time t
R_t = typed relations and reaction pathways
B_t = boundaries: species, tissue, time, dose context, assay and certainty
K_t = curated chemical, pharmacological and metabolic knowledge
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies_constraints(x, B_t, K_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, evidence_t)
Note: P is a calibrated ranking quantity only where supporting data exist; otherwise return unranked candidates.

03. RELATION GRAPH
ParentDrug --undergoes--> Biotransformation
Biotransformation --produces--> DrugMetabolite
Biotransformation --catalysed_by--> Enzyme
Biotransformation --occurs_in--> Tissue
DrugMetabolite --transported_by--> Transporter
DrugMetabolite --distributed_to--> Compartment
DrugMetabolite --may_bind--> MolecularTarget
DrugMetabolite --may_exhibit--> PharmacologicalActivity
DrugMetabolite --may_contribute_to--> AdverseEffect
DrugMetabolite --undergoes--> FurtherBiotransformation
DrugMetabolite --eliminated_via--> ExcretionRoute
Measurement --measures--> DrugMetabolite
Assertion --supported_by--> Evidence

04. CLASSIFICATION
Reaction families: oxidation, reduction, hydrolysis, glucuronidation, sulfation, acetylation, methylation, glutathione_conjugation, other.
Common phase labels: Phase_I, Phase_II; labels are descriptive, not obligatory sequence constraints.
Activity classes: active, inactive, reactive, toxic, unknown; classes may overlap except where evidence establishes exclusivity.
Origin: primary, secondary, downstream; specify path rather than infer solely from labels.
Disposition: circulating, intracellular, excreted, retained, unknown.

05. FORMATION AND DISPOSITION
ParentDrug + Enzyme + Cofactor -> CandidateMetabolite + Products [reaction-specific]
FormationRate(m,t) = f(parent_concentration, enzyme_activity, cofactors, tissue, interactions)
MassBalance(t): input + formation - transformation - elimination - accumulation = 0, within defined system and measurement error.
Exposure(m) = integral C_m(t) dt over an explicitly defined interval.
Do not equate concentration with pharmacological activity.

06. INFERENCE RULES
R1 IF verified_reaction(parent,m) THEN candidate_metabolite_of(m,parent).
R2 IF measured(m,sample) AND validated_assay(sample) THEN observed_presence(m,sample).
R3 IF enzyme_catalyses(e,reaction) AND reaction_produces(reaction,m) THEN associated_enzyme(m,e).
R4 IF metabolite_binds_target(m,target) AND functional_assay_positive(m,target) THEN evidence_of_activity(m,target).
R5 IF metabolite_detected(m) THEN NOT automatically infer clinical_effect(m).
R6 IF reactive_intermediate(m) THEN flag_possible_reactivity(m); toxicity requires independent evidence.
R7 IF enzyme_inhibited(e) THEN flag_possible_change_in_formation(m); direction depends on full pathway.
R8 IF multiple_formation_routes(m) THEN retain_all_supported_routes(m).
R9 IF organism_species(a) != organism_species(b) THEN do_not_transfer_kinetics_without_evidence(a,b).
R10 IF missing_parent_or_structure(m) THEN unresolved_identity(m).
R11 IF contradicting_evidence(claim) THEN retain_disagreement_and_provenance(claim).
R12 IF phase_II(m) THEN NOT automatically infer_inactive_or_non_toxic(m).

07. MINI-RECURSION ENGINE
seed := {parent_drug, known_metabolites, assays}
frontier := seed
visited := empty_set
WHILE frontier not empty AND depth < configured_max_depth:
  item := pop(frontier)
  IF item in visited: continue
  visited.add(item)
  candidates := expand_by_verified_or_hypothesised_relations(item)
  FOR candidate in candidates:
    annotate(candidate, evidence, confidence, species, tissue, time)
    IF passes_identity_and_scope_checks(candidate): frontier.add(candidate)
RETURN graph(visited), unresolved_claims, provenance_log
Termination: finite depth, deduplication and evidence-based scope boundaries.

08. TRI-MAPPING
Natural language: A parent drug can be transformed into one or more chemically distinct metabolites.
Graph: ParentDrug -> Reaction -> Metabolite -> Reaction -> DownstreamMetabolite.
Formal: produces(r,m) AND substrate(r,p) => candidate_metabolite_of(m,p).
Natural language: Detection of a metabolite does not prove a therapeutic or toxic effect.
Graph: Assay -> detects -> Metabolite; Effect requires separate evidence.
Formal: observed(m) does_not_imply causes(m,effect).

09. AI SEARCH FLOW
QUERY -> entity_normalisation -> source_retrieval -> reaction_expansion -> evidence_filter -> contextual_constraints -> candidate_ranking -> explanation -> provenance_output.
Input fields: compound_name_or_id, species?, tissue?, pathway?, endpoint?, evidence_level?.
Output fields: entity_ids, parent_metabolite_edges, reaction_types, enzymes, activity_evidence, uncertainty, citations, update_date.
Semantic equivalents: metabolite, biotransformation_product, drug_breakdown_product [context-dependent, not always interchangeable].
Disambiguate: drug metabolite versus endogenous metabolite; metabolite versus impurity or degradation product.

10. CONFIDENCE AND PROVENANCE
Each assertion stores: source_uri, evidence_type, date, organism, experimental_context, curator, confidence, revision.
Evidence levels: experimentally_confirmed, literature_supported, computationally_predicted, hypothetical, contradicted.
Never present predicted metabolites as confirmed observations.
Confidence must not be fabricated when no calibration or evidence is available.

11. VALIDATION / EXECUTION GUARANTEE
G1: Every metabolite relation identifies at least one parent or records unknown parent.
G2: Every transformation edge has a reaction type or explicit unknown label.
G3: Chemical identity and stereochemistry are preserved where available.
G4: Assertions preserve evidence and context; missing fields remain unknown.
G5: Inference cannot silently convert association into causation.
G6: Species and assay boundaries remain attached to conclusions.
G7: Cycles and multi-step pathways terminate under recursion bounds.
G8: The system returns uncertainty rather than inventing a mechanism.
G9: Results are reproducible for the same evidence snapshot and ruleset.
G10: No output constitutes a clinical prescribing recommendation.

12. CROSS-ONTOLOGY LINKS
Drug Ontology -> parent compounds and medicinal products.
Active Pharmaceutical Ingredient Ontology -> formulated active substances.
Therapeutic Molecule Ontology -> molecular targets and biological action.
Enzyme Ontology -> catalytic transformations.
Transporter Ontology -> movement between compartments.
Disease Biomarker Ontology -> measurement and interpretation distinctions.
Pathological Protein Ontology -> protein-related adverse mechanisms when supported.

13. EXAMPLE (ILLUSTRATIVE ONLY)
INPUT: known parent compound P; experimentally verified conversion P -> M1; assay detects M1.
DERIVE: candidate_metabolite_of(M1,P) and observed_presence(M1,sample).
DO NOT DERIVE: M1 is therapeutically active, toxic, or clinically significant.
OUTPUT: relation graph + assay provenance + unknown activity flag.

14. CITATION AND UPDATE
Cite source ontology URL above when reusing this companion specification.
Review when new verified metabolism, enzyme, transporter or assay evidence becomes available.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ