FLOW ALGEBRA
ENHANCER ONTOLOGY
Kireth Semantic Library | Genetic Entities
Version: 1.0 | Date: 2026-10-15 | Encoding: UTF-8
Source page: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/genetic-entities/enhancer-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Domain-grounded formalisation; source chapter not independently verified.
# 1. PURPOSE
flow "EnhancerOntology" v1.0
domain: molecular_genetics
entity_root: RegulatorySequence
target: Enhancer
semantics: typed_contextual_evidence_based
open_world: true
# 2. TYPES
type Entity
type BiologicalEntity extends Entity
type GeneticEntity extends BiologicalEntity
type RegulatorySequence extends GeneticEntity
type Enhancer extends RegulatorySequence
type Promoter extends RegulatorySequence
type Gene extends GeneticEntity
type Transcript extends GeneticEntity
type TranscriptionFactor extends BiologicalEntity
type Coactivator extends BiologicalEntity
type ChromatinRegion extends GeneticEntity
type CellType extends BiologicalEntity
type Tissue extends BiologicalEntity
type Organism extends BiologicalEntity
type GenomicInterval extends GeneticEntity
type Evidence extends Entity
type Experiment extends Entity
type Variant extends GeneticEntity
type Confidence = real[0,1]
type Strand = {plus,minus,unknown}
type ActivityState = {active,poised,inactive,unknown}
# 3. ENTITY SCHEMA
entity Enhancer {
id: string
genome_assembly: string?
chromosome: string?
start: integer?
end: integer?
coordinate_convention: string?
strand: Strand = unknown
sequence: string?
cell_context: CellType?
tissue_context: Tissue?
activity_state: ActivityState = unknown
evidence: Evidence[]
provenance: string[]
confidence: Confidence
}
# 4. INVARIANTS
rule valid_interval(e:Enhancer) =
known(e.start,e.end) => e.start >= 0 and e.end > e.start
rule coordinates_require_assembly(e:Enhancer) =
known(e.chromosome,e.start,e.end) => known(e.genome_assembly)
rule context_dependent_activity(e:Enhancer,c:CellType) =
activity(e,c) != universal_activity(e)
rule enhancer_not_necessarily_nearest_gene(e:Enhancer,g:Gene) =
nearest_gene(e,g) does_not_imply regulates(e,g)
rule enhancer_not_always_orientation_dependent(e:Enhancer) =
orientation_independence_is_common_not_absolute(e)
# 5. CLASSIFICATION
class Enhancer
class DistalEnhancer extends Enhancer
class IntronicEnhancer extends Enhancer
class IntergenicEnhancer extends Enhancer
class PromoterProximalEnhancer extends Enhancer
class DevelopmentalEnhancer extends Enhancer
class StimulusResponsiveEnhancer extends Enhancer
class SuperEnhancerCluster extends ChromatinRegion
note: super-enhancer is an operationally defined cluster, not a universal molecular type
# 6. TYPED RELATIONSHIPS
relation located_at(Enhancer,GenomicInterval)
relation overlaps(Enhancer,GeneticEntity)
relation binds(TranscriptionFactor,Enhancer)
relation recruits(Enhancer,Coactivator)
relation contacts(Enhancer,Promoter)
relation potentially_regulates(Enhancer,Gene)
relation regulates(Enhancer,Gene)
relation modulates_transcription(Enhancer,Transcript)
relation active_in(Enhancer,CellType)
relation active_in_tissue(Enhancer,Tissue)
relation affected_by(Enhancer,Variant)
relation supported_by(Entity,Evidence)
relation homologous_to(Enhancer,Enhancer)
relation part_of(Enhancer,ChromatinRegion)
# 7. EVIDENCE AND CAUSALITY
evidence_types:
- reporter_assay
- CRISPR_interference
- CRISPR_deletion
- MPRA
- chromatin_accessibility
- histone_modification
- transcription_factor_binding
- chromosome_conformation_capture
- expression_QTL
- comparative_genomics
rule chromatin_contact_only(e,p) => hypothesis(regulates(e,target_of(p)))
rule accessibility_only(e) => candidate_enhancer(e)
rule perturbation_changes_expression(e,g,c) =>
evidence_for(regulates(e,g),context=c)
rule multiple_independent_evidence(e,g,c) =>
strengthen_confidence(regulates(e,g),context=c)
rule correlation_not_causation(e,g) =>
do_not_assert_causal_regulation_without_sufficient_evidence
# 8. ACTIVITY FLOW
flow "EnhancerActivity" {
input: enhancer e, cell_context c, evidence_set E
step 1: validate_coordinates_and_assembly(e)
step 2: resolve_cell_context(c)
step 3: assess_accessibility(e,c,E)
step 4: assess_factor_binding(e,c,E)
step 5: assess_chromatin_marks(e,c,E)
step 6: identify_candidate_promoter_contacts(e,c,E)
step 7: test_target_gene_links(e,c,E)
step 8: distinguish_correlative_from_perturbational_evidence(E)
output: candidate_targets, activity_state, confidence, provenance
}
# 9. GENE REGULATION FLOW
flow "EnhancerToGene" {
input: Enhancer e, Gene g, CellType c
precondition: compatible_genome_assembly(e,g)
observe: transcription_factor_occupancy(e,c)
observe: chromatin_contact(e,promoter_of(g),c)
observe: -expression_response_to_perturbation(e,g,c)
infer: regulates(e,g) only_if sufficient_evidence
output: relation_status, direction_of_effect?, confidence, evidence
}
# 10. VARIANT EFFECTS
flow "VariantEnhancerImpact" {
input: Variant v, Enhancer e, Gene g, CellType c
step 1: verify_variant_overlaps_or_modifies(e,v)
step 2: compare_allele_specific_factor_binding(v,e,c)
step 3: compare_accessibility_and_activity(v,e,c)
step 4: evaluate_expression_effect(v,g,c)
step 5: consider_linkage_disequilibrium_and_confounders
output: candidate_mechanism, effect_direction?, confidence
}
# 11. LOGICAL CONSTRAINTS
rule enhancer_can_regulate_multiple_genes(e) = possible
rule gene_can_have_multiple_enhancers(g) = possible
rule enhancer_can_act_at_distance(e,g) = possible
rule enhancer_can_be_intronic(e) = possible
rule enhancer_can_act_across_intervening_genes(e,g) = possible
rule enhancer_function_varies_by_context(e,c1,c2) = possible
rule enhancer_and_promoter_roles_can_overlap(region) = possible
rule active_histone_marks_not_definitive(e) = true
rule negative_assay_not_universal_absence(e) = true
# 12. RECURSIVE REASONING
flow "RecursiveEnhancerInference" {
input: enhancer e, context c, depth_limit n
initialise: hypotheses = candidate_target_genes(e,c)
recurse while depth < n and new_evidence_available:
expand: regulatory_network_neighbours(hypotheses)
evaluate: assembly_consistency, cell_context, evidence_independence
revise: relation_confidence_and_alternative_explanations
prevent: cycles_using_visited_entity_relation_context_keys
output: ranked_hypotheses, explanation_graph, uncertainty
}
# 13. CONFIDENCE
CONFIDENCE {
range: [0,1]
basis: evidence_quality, replication, context_match, assay_specificity
avoid: fixed_unvalidated_evidence_weights
calibration: required_for_probabilistic_interpretation
missing_evidence: unknown_not_false
contradictory_evidence: retain_and_reconcile
}
# 14. SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE {
canonical: "enhancer"
exact_aliases: ["transcriptional enhancer", "enhancer element"]
related_not_equivalent: ["promoter", "silencer", "super-enhancer", "open chromatin region"]
identity_conditions: same_assembly, matching_interval, compatible_definition
distinguish: functional_equivalence_from_coordinate_identity
}
# 15. PROVENANCE AND FLOW HASH
FLOW_HASH {
algorithm: SHA-256
canonicalise: normalise_field_order_and_utf8
input: flow_version, ontology_identifier, typed_rules, source_reference
purpose: integrity_and_version_tracking
note: hash_value_computed_by_implementation_not_fabricated
}
# 16. UPDATE MODEL
UPDATE_MODEL {
trigger: new_experiment, revised_genome_assembly, new_gene_annotation,
new_cell_context, reanalysis, contradictory_evidence
preserve: previous_assertions_and_evidence
action: recompute_contextual_inferences_and_confidence
version: increment_on_semantic_change
audit: record_timestamp, source, reason, affected_relations
}
# 17. AI CONSUMPTION
AI_CONSUMPTION {
format: UTF-8 plain text
ontology: EnhancerOntology
entity_resolution: assembly_aware_and_context_aware
output: typed_entities, relations, evidence, provenance, uncertainty
safeguards: no_unqualified_causal_claims, no_cross_assembly_coordinate_merges
interoperability: genomic_annotations, knowledge_graphs, semantic_search
}
# 18. VALIDATION EXAMPLES
test "candidate_is_not_confirmed" {
given: accessibility_peak_at_region
expect: candidate_enhancer
reject: confirmed_target_gene_without_evidence
}
test "cell_specificity" {
given: enhancer_active_in_cell_A
expect: no_automatic_activity_assertion_in_cell_B
}
test "coordinate_consistency" {
given: intervals_from_different_assemblies
expect: no_direct_interval_identity_without_liftover_validation
}
test "perturbation" {
given: replicated_perturbation_with_expression_effect
expect: increased_support_for_contextual_regulatory_link
}
# 19. SUMMARY
ontology_role: represent enhancer entities and evidence-qualified regulation
core_principle: genomic proximity or chromatin correlation alone is not causation
output_contract: traceable, typed, revisable, context-specific assertions
end flow "EnhancerOntology"
Download Code
Copy to Clipboard