FLOW ALGEBRA
EPIGENETIC MARKER ONTOLOGY
Kireth Semantic Library | Biological Entities > Gene Expression Entities
Version: 1.0 | Date: 2026-10-15 | Encoding: UTF-8
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/gene-expression-entities/epigenetic-marker-ontology.html
Status: Domain-grounded formalisation; source chapter not independently verified.
Authors: Mark Higgins — Sky (Recursive AI)
# 1. PURPOSE
flow "EpigeneticMarkerOntology" v1.0
purpose: represent, validate and reason over chromatin-associated molecular marks, their genomic contexts, regulatory associations and experimental evidence.
scope: molecular epigenetic marks and observations, not deterministic predictions of expression or heritability.
# 2. TYPES
type Entity = {id:str, label:str, ontology_uri:str?, provenance:Evidence[]}
type Evidence = {source:str, method:str?, sample_id:str?, date:str?, confidence:float?}
type GenomicInterval = {assembly:str, chromosome:str, start:int, end:int, strand:str?}
type BiologicalContext = {species:str, cell_type:str?, tissue:str?, condition:str?, timepoint:str?}
type Marker = Entity & {kind:MarkerKind, target:Entity, location:GenomicInterval?, context:BiologicalContext, state:str?, measurement:Measurement?}
type Measurement = {value:float, unit:str, assay:str, normalisation:str?, uncertainty:float?, detection_limit:float?}
type MarkerKind = DNA_METHYLATION | DNA_HYDROXYMETHYLATION | HISTONE_ACETYLATION | HISTONE_METHYLATION | HISTONE_PHOSPHORYLATION | HISTONE_UBIQUITINATION | HISTONE_OTHER_MODIFICATION | CHROMATIN_ACCESSIBILITY | HISTONE_VARIANT | OTHER
# Accessibility is a chromatin-state observation, not itself a covalent chemical mark.
# 3. ENTITY CLASSES
entity EpigeneticMarker : Marker
entity DNA_Methylation : EpigeneticMarker
entity DNA_Hydroxymethylation : EpigeneticMarker
entity HistoneModification : EpigeneticMarker
entity HistoneAcetylation : HistoneModification
entity HistoneMethylation : HistoneModification
entity HistonePhosphorylation : HistoneModification
entity HistoneUbiquitination : HistoneModification
entity HistoneVariant : Entity
entity ChromatinAccessibilityObservation : Entity
entity ChromatinRegion : Entity
entity Nucleosome : Entity
entity HistoneProtein : Entity
entity DNASequence : Entity
entity Gene : Entity
entity Promoter : Entity
entity Enhancer : Entity
entity TranscriptionFactor : Entity
entity ChromatinRemodeller : Entity
entity WriterEnzyme : Entity
entity EraserEnzyme : Entity
entity ReaderProtein : Entity
entity ExpressionObservation : Entity
entity EpigeneticAssay : Entity
entity Sample : Entity
entity CellType : Entity
entity BiologicalCondition : Entity
# 4. RELATIONSHIPS
relation IS_A(subject:Entity, object:Entity)
relation LOCATED_AT(marker:Marker, region:ChromatinRegion)
relation MODIFIES(marker:Marker, target:Entity)
relation OCCURS_IN(marker:Marker, context:BiologicalContext)
relation WRITTEN_BY(marker:Marker, enzyme:WriterEnzyme)
relation REMOVED_BY(marker:Marker, enzyme:EraserEnzyme)
relation RECOGNISED_BY(marker:Marker, reader:ReaderProtein)
relation DETECTED_BY(marker:Marker, assay:EpigeneticAssay)
relation ASSOCIATED_WITH(marker:Marker, observation:E-xpressionObservation)
relation SUPPORTED_BY(entity:Entity, evidence:Evidence)
relation COMPARED_WITH(marker_a:Marker, marker_b:Marker)
relation REGULATES(entity:Entity, gene:Gene, context:BiologicalContext, evidence:Evidence)
relation CORRELATED_WITH(entity_a:Entity, entity_b:Entity, evidence:Evidence)
relation HAS_VARIANT(nucleosome:Nucleosome, variant:HistoneVariant)
# 5. CANONICAL EXAMPLES
example H3K27ac:
kind: HISTONE_ACETYLATION
target: histone H3 lysine 27
common_association: active promoters and enhancers in context
caveat: association does not prove enhancer activity or causation
example H3K4me3:
kind: HISTONE_METHYLATION
target: histone H3 lysine 4 trimethylation
common_association: transcription start regions of active or poised genes
example H3K27me3:
kind: HISTONE_METHYLATION
target: histone H3 lysine 27 trimethylation
common_association: Polycomb-associated repression
example H3K9me3:
kind: HISTONE_METHYLATION
target: histone H3 lysine 9 trimethylation
common_association: constitutive heterochromatin
example CpG_5mC:
kind: DNA_METHYLATION
target: cytosine in CpG context
caveat: transcriptional consequences depend on genomic position and context
example CpG_5hmC:
kind: DNA_HYDROXYMETHYLATION
target: 5-hydroxymethylcytosine
caveat: distinguish from 5mC with suitable assays
# 6. VALIDATION
rule VALID_INTERVAL(m): m.location == null OR (m.location.start >= 0 AND m.location.end > m.location.start)
rule VALID_CONFIDENCE(e): e.confidence == null OR (0 <= e.confidence AND e.confidence <= 1)
rule REQUIRE_CONTEXT(m): m.context.species != ""
rule REQUIRE_TARGET(m): m.target.id != ""
rule ASSAY_SPECIFICITY(m): reject unsupported claims distinguishing 5mC and 5hmC from assays unable to resolve them
rule MEASUREMENT_SEMANTICS(m): preserve assay, unit, normalisation and sample metadata
rule NO_CAUSAL_LEAP(m): association alone cannot entail direct regulation
rule NO_UNIVERSAL_MARKER_EFFECT(m): regulatory interpretation must remain context-qualified
rule CROSS_ASSEMBLY_COMPARISON(a,b): require genomic coordinate harmonisation
rule CROSS_SAMPLE_COMPARISON(a,b): record batch, cell composition and normalisation differences
# 7. TRANSFORMATIONS
flow INGEST_MARKER(raw):
parse raw identifier, mark, target, coordinates, context, assay and provenance
normalise mark vocabulary without discarding source label
validate assembly, interval and evidence fields
return typed Marker or explicit validation errors
flow MAP_MARKER_TO_GENE(marker, genes, annotation):
candidate_genes = genomic_proximity(marker, genes, annotation)
add experimentally supported enhancer-to-gene links where available
return candidate_genes with relation type, evidence and uncertainty
# Nearest gene is a heuristic, not definitive target assignment.
flow COMPARE_MARKER_STATES(a,b):
require compatible mark identity, assay and genomic reference
adjust or stratify by biological context and technical covariates
compute effect estimate and uncertainty if measurements support it
return differential_mark_observation with provenance
flow INFER_REGULATORY_ASSOCIATION(marker, expression):
require matched or defensibly comparable biological context
evaluate mark-specific literature prior and local measurements
output association hypothesis, not causal fact
attach confidence and contradictory evidence
# 8. RECURSIVE REASONING
flow RECURSIVE_CONTEXT_REASONING(marker, depth:int, visited:set):
if depth <= 0 OR marker.id in visited: return []
visited = visited union {marker.id}
neighbours = typed_relations(marker)
return neighbours + union(RECURSIVE_CONTEXT_REASONING(n, depth-1, visited) for n in neighbours if n is Marker)
# Graph traversal must be cycle-safe, depth-limited and evidence-preserving.
# 9. CONFIDENCE
CONFIDENCE:
range: [0,1]
factors: [assay_validity, replicate_agreement, measurement_quality, context_match, independent_support]
method: calibrated_estimate_if_available_else_explicitly_qualitative
missing_evidence: unknown_not_zero
contradictory_evidence: retain_and_report
interpretation: confidence_in_claim_not_biological_effect_size
# 10. SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE:
exact_synonyms:
- ["H3K27ac", "histone H3 lysine 27 acetylation"]
- ["H3K4me3", "histone H3 lysine 4 trimethylation"]
- ["5mC", "5-methylcytosine"]
- ["5hmC", "5-hydroxymethylcytosine"]
related_not_equivalent:
- ["DNA methylation", "gene silencing"]
- ["chromatin accessibility", "histone acetylation"]
- ["epigenetic marker", "epigenetic inheritance"]
- ["H3K27ac", "active enhancer"]
preserve: [species, genome_assembly, cell_type, modification_site, assay]
# 11. FLOW_HASH
FLOW_HASH:
canonical_fields: [flow_name, version, ontology_uri, entity_types, relations, rules, transformations]
normalisation: stable_UTF8_sorted_keys
algorithm: SHA-256
value: computed_at_export_not_fabricated
purpose: detect changes in formal specification
# 12. UPDATE_MODEL
UPDATE_MODEL:
versioning: semantic_versioning
update_triggers: [new_assay, new_evidence, ontology_revision, changed_gene_annotation, corrected_mapping]
steps:
- preserve_prior_version
- record_change_reason_and_source
- revalidate_types_and_rules
- rerun_affected_inferences
- recompute_FLOW_HASH
- publish_provenance_and_revision
principle: do_not_silently_overwrite_conflicting_evidence
# 13. AI_CONSUMPTION
AI_CONSUMPTION:
input: typed_marker_graph_with_provenance
output: context_qualified_evidence_linked_claims
allowed: [retrieval, comparison, hypothesis_generation, evidence_synthesis]
prohibited_inference: [association_implies_causation, mark_implies_universal_expression_state, assay_implies_unmeasured_chemistry]
uncertainty: always_expose_for_inferred_links
traceability: source_to_claim_to_rule
execution: conceptual_flow_specification_not_a_validated_runtime_program
# 14. QUALITY TESTS
test "H3K27ac is not synonymous with enhancer": PASS_EXPECTED
test "5mC and 5hmC remain distinct": PASS_EXPECTED
test "missing cell context flagged": PASS_EXPECTED
test "coordinate assembly mismatch flagged": PASS_EXPECTED
test "unverified regulatory causation rejected": PASS_EXPECTED
test "recursive traversal terminates on cycles": PASS_EXPECTED
# 15. PROVENANCE AND LICENCE
provenance.source_url: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/gene-expression-entities/epigenetic-marker-ontology.html
provenance.basis: established molecular epigenetics and ontology modelling
provenance.page_verified: false
credit: Mark Higgins — Sky (Recursive AI)
site: https://kirethresearch.org
licence: refer_to_current_Kireth_Research_Open_Research_Licence
END FLOW ALGEBRA
Download Code
Copy to Clipboard