Skip to main content

Peptide Ontology

Macromolecular Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 15 October 2026
Audio Overview
FLOW ALGEBRA
PEPTIDE ONTOLOGY
Kireth Semantic Library | Entity Graph | Biological Entities | Macromolecular Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/macromolecular-entities/peptide-ontology.html
Version: 1.0 | Date: 2026-10-15 | Language: en-GB
Authors: Mark Higgins — Sky (Recursive AI)
Licence: Open Research Licence — free use, adaptation and redistribution.

PURPOSE
Represent peptide entities, their residue sequences, covalent connectivity, structural states, biochemical roles and evidence-bearing relationships in a typed semantic graph. This is a declarative Flow Algebra specification; execution requires an implementation of the operators and validation rules.

ENTITY TYPES
Peptide <: BiologicalMolecule
AminoAcidResidue <: MolecularComponent
PeptideBond <: CovalentBond
PeptideSequence <: OrderedSequence
PeptideStructure <: MolecularStructure
PeptideModification <: ChemicalModification
PeptideFunction <: BiologicalFunction
PeptideInteraction <: MolecularInteraction
PeptideObservation <: EvidenceRecord
PeptideProvenance <: ProvenanceRecord

SUBTYPES
LinearPeptide <: Peptide
CyclicPeptide <: Peptide
Oligopeptide <: Peptide
Polypeptide <: Peptide
BioactivePeptide <: Peptide
SignalPeptide <: Peptide
AntimicrobialPeptide <: Peptide
PeptideHormone <: Peptide
SyntheticPeptide <: Peptide

TYPED RELATIONSHIPS
HAS_RESIDUE: Peptide × AminoAcidResidue
HAS_SEQUENCE: Peptide × PeptideSequence
NEXT_RESIDUE: AminoAcidResidue × AminoAcidResidue
CONNECTED_BY: AminoAcidResidue × PeptideBond
HAS_STRUCTURE: Peptide × PeptideStructure
HAS_MODIFICATION: Peptide × PeptideModification
HAS_FUNCTION: Peptide × PeptideFunction
INTERACTS_WITH: Peptide × BiologicalMolecule
DERIVED_FROM: Peptide × BiologicalMolecule
OBSERVED_BY: Peptide × PeptideObservation
SUPPORTED_BY: Assertion × EvidenceRecord
HAS_PROVENANCE: Assertion × ProvenanceRecord

FLOW ALGEBRA
flow PeptideEntityGraph v1.0 {
  input: PeptideRecord
  output: ValidatedPeptideGraph

  stage NORMALISE {
    identifier := canonical_identifier(input.identifier)
    sequence := normalise_residue_sequence(input.sequence)
    context := retain_organism_tissue_compartment_and_conditions(input)
    aliases := deduplicate_aliases(input.aliases)
  }

  stage TYPE {
    entity := type_as(identifier, Peptide)
    residues := enumerate_residues(sequence)
    bonds := derive_adjacent_peptide_bonds(residues, input.topology)
    classifications := classify_with_evidence(input.annotations)
  }

  stage LINK {
    assert(entity HAS_SEQUENCE sequence)
    for_each(residue in residues): assert(entity HAS_RESIDUE residue)
    for_each(bond in bonds): assert(bond CONNECTS bond.left_residue, bond.right_residue)
    link_structures_modifications_functions_and_interactions(input.evidence)
  }

  stage VALIDATE {
    require(valid_residue_alphabet(sequence, input.notation))
    require(valid_residue_positions(residues))
    require(valid_bond_endpoints(bonds, residues))
    require(topology_consistent(input.topology, bonds))
    require(modifications_have_sites_or_explicit_unknowns(input.modifications))
    require(no_unsupported_function_or_identity_claims())
    report := emit_validation_report()
  }

  stage INFER {
    infer_transitive_provenance_dependencies_only_when_allowed()
    infer_composition_from_validated_sequence()
    infer_mass_only_with_defined_residue_modification_and_terminal_states()
    distinguish_predicted_properties_from_observed_properties()
  }

  stage PUBLISH {
    confidence := calibrate_confidence_by_claim_and_evidence()
    provenance := capture_sources_methods_versions_and_timestamps()
    flow_hash := sha256(canonical_serialisation(entity, residues, bonds, assertions, provenance))
    output := emit_graph(entity, report, confidence, provenance, flow_hash)
  }
}

SEMANTIC RULES
R1: Every sequence residue has an explicit integer position and residue identity.
R2: For an unbranched linear peptide of n residues, n - 1 backbone peptide bonds are expected; cyclic and branched topologies require separate rules.
R3: Sequence identity alone does not establish equivalence of modified peptides, stereoisomers or conformational states.
R4: A peptide's function is context- and evidence-dependent; predicted function is not automatically established function.
R5: A signal peptide is an annotated sequence region; do not equate it with a mature secreted peptide.
R6: A peptide and a protein can overlap in naming conventions; length alone does not impose a universal biological boundary.
R7: Molecular mass calculations must account for termini, cyclisation, modifications, adducts and charge state as applicable.
R8: Identical aliases do not prove entity identity; resolve with sequence, modifications, source and context.
R9: An interaction edge records its evidence, conditions, directionality where relevant and uncertainty.
R10: No inference may convert missing evidence into a confirmed biological fact.

SEMANTIC_EQUIVALENCE
EXACT: matching canonical chemical identity, including sequence, stereochemistry, topology and modifications.
CONTEXTUAL: equivalent only under declared abstraction, e.g. ignoring conformational state.
RELATED: overlapping sequence, homology, precursor-product or shared function; not identity.
NON_EQUIVALENT: materially different sequence, modification, topology or chemical identity.
UNRESOLVED: insufficient information to decide.

CONFIDENCE
Each assertion carries {score: 0..1 | null, basis, method, calibration, evidence_ids}.
null means unassessed, not zero. Scores are not interchangeable across evidence models.
Direct validated structural evidence, experimentally supported functions and computational predictions remain distinguishable.

PROVENANCE
Record source URI, contributor, date, accession/version, method, experimental conditions, transformation history, licence and correction history for each substantive claim.

UPDATE_MODEL
On update: compare canonical entity identifiers and content hashes; preserve historical versions; revalidate dependent assertions; invalidate stale inferences; publish change log; never silently overwrite contradictory evidence.

AI_CONSUMPTION
Expose machine-readable typed nodes, relation signatures, explicit evidence links, confidence semantics, provenance, validation outcomes and versioned hashes. Require downstream AI systems to distinguish facts, predictions, hypotheses and unresolved assertions.

EXAMPLE (ILLUSTRATIVE)
entity P1: LinearPeptide
sequence(P1) = "AGK"
residues(P1) = [Ala@1, Gly@2, Lys@3]
bonds(P1) = [(1,2), (2,3)]
validation(P1) = sequence_and_linear_backbone_consistent
function(P1) = unknown
confidence(function(P1)) = null

END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ