FLOW ALGEBRA
TITLE: Histone Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Gene Expression Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/gene-expression-entities/histone-ontology.html
STATUS: Domain-grounded formalisation; source chapter not independently verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
SITE: https://kirethresearch.org
# PURPOSE
flow "HistoneOntology" v1.0
purpose: represent histone proteins, nucleosomes, chromatin organisation,
post-translational modifications and gene-expression effects.
scope: eukaryotic canonical histones, variants, associated molecular processes.
# TYPES
entity HistoneProtein <: Protein
entity CoreHistone <: HistoneProtein
entity LinkerHistone <: HistoneProtein
entity HistoneVariant <: HistoneProtein
entity HistoneTail <: ProteinRegion
entity HistoneModification <: PostTranslationalModification
entity Nucleosome <: ChromatinComplex
entity HistoneOctamer <: ProteinComplex
entity DNAFragment <: NucleicAcid
entity ChromatinRegion <: GenomicRegion
entity ChromatinRemodeller <: ProteinComplex
entity HistoneWriter <: Enzyme
entity HistoneEraser <: Enzyme
entity HistoneReader <: Protein
entity Gene <: GeneticEntity
entity ExpressionObservation <: Measurement
entity ExperimentalEvidence <: Evidence
entity BiologicalContext <: Context
# CLASSIFICATION
class CoreHistone = {H2A, H2B, H3, H4}
class LinkerHistone = {H1, H5}
class HistoneVariant examples = {H2A.Z, H2A.X, macroH2A, H3.3, CENP-A}
class ModificationType = {acetylation, methylation, phosphorylation,
ubiquitination, sumoylation, ADP_ribosylation}
class ChromatinState = {accessible, compact, context_dependent, unknown}
# STRUCTURE AND CARDINALITY
rule canonical_octamer(o:HistoneOctamer):
count(o,H2A)=2 AND count(o,H2B)=2 AND count(o,H3)=2 AND count(o,H4)=2
rule nucleosome_core(n:Nucleosome):
wraps_around(DNAFragment,n.histone_octamer)
approximate_wrapped_DNA_bp(n)=147
note: canonical core particle; values may vary by experimental context.
rule linker_histone(h:LinkerHistone,n:Nucleosome):
may_bind(h,n.entry_exit_DNA)
may_support(h,chromatin_compaction)
# TYPED RELATIONSHIPS
relationship IS_A(HistoneProtein,Protein)
relationship PART_OF(CoreHistone,HistoneOctamer)
relationship COMPONENT_OF(HistoneOctamer,Nucleosome)
relationship WRAPS_AROUND(DNAFragment,HistoneOctamer)
relationship ASSOCIATES_WITH(LinkerHistone,Nucleosome)
relationship LOCATED_IN(Nucleosome,ChromatinRegion)
relationship MODIFIED_AT(HistoneModification,HistoneProtein.residue)
relationship CATALYSED_BY(HistoneModification,HistoneWriter)
relationship REMOVED_BY(HistoneModification,HistoneEraser)
relationship RECOGNISED_BY(HistoneModification,HistoneReader)
relationship MODULATES(ChromatinRegion,Gene.expression)
relationship SUPPORTED_BY(Assertion,ExperimentalEvidence)
# BIOLOGICAL PROCESSES
process NucleosomeAssembly:
input: histone_pool, DNAFragment, assembly_factors
output: Nucleosome
constraints: stoichiometry, chromatin_context, histone_variant_identity
process HistoneAcetylation:
input: HistoneProtein, acetyl_CoA, histone_acetyltransferase
output: acetylated_histone
effect: may_increase_chromatin_accessibility
caution: gene_expression_effect_is_context_dependent
process HistoneDeacetylation:
input: acetylated_histone, histone_deacetylase
output: deacetylated_histone
effect: may_reduce_accessibility
caution: no_universal_expression_direction
process HistoneMethylation:
input: histone_residue, SAM, histone_methyltransferase
output: methylated_residue
effect: depends_on_residue_and_methylation_state
examples:
H3K4me3: commonly_associated_with_active_promoters
H3K27me3: commonly_associated_with_polycomb_repression
H3K9me3: commonly_associated_with_constitutive_heterochromatin
process HistoneDemethylation:
input: methylated_histone, compatible_demethylase
output: changed_methylation_state
constraints: enzyme_specificity
process HistoneExchange:
input: chromatin, histone_chaperone, variant_histone
output: altered_nucleosome_composition
process ChromatinRemodelling:
input: nucleosome_array, ATP, remodelling_complex
output: repositioned_or_restructured_nucleosomes
# SEMANTIC RULES
rule R01:
IF x IS_A CoreHistone THEN x IS_A HistoneProtein.
rule R02:
IF modification(x, H3K27me3) AND supported_context(x)
THEN infer(association_with_repression, confidence=conditional).
rule R03:
IF modification(x, H3K4me3) AND promoter_context(x)
THEN infer(association_with_active_promoter, confidence=conditional).
rule R04:
IF observed(histone_mark, locus) AND observed(expression_change, gene)
THEN infer(correlation_only) UNLESS causal_evidence_exists.
rule R05:
IF x IS_A HistoneVariant THEN NOT necessarily(x IS_A CanonicalCoreHistone).
rule R06:
IF chromatin_state_unknown THEN do_not_infer_gene_silencing_from_compaction_alone.
# CONFIDENCE
CONFIDENCE:
range: [0.0,1.0]
inputs: evidence_quality, assay_specificity, reproducibility,
biological_context, provenance, model_uncertainty
policy: no fabricated numerical certainty; absent scores = null
levels:
high: multiple_independent_validated_lines_of_evidence
moderate: supported_but_context_limited
low: preliminary_or_indirect
distinguish: observed_fact | inferred_association | causal_claim
# SEMANTIC_EQUIVALENCE
SEMANTIC_EQUIVALENCE:
exact:
"histone H3": "H3" # only with matched organism and nomenclature
"nucleosome core particle": "nucleosome core particle"
related_not_equivalent:
histone: nucleosome
histone_modification: epigenetic_inheritance
histone_acetylation: transcriptional_activation
histone_variant: post_translational_modification
rule: require identity, organism, variant, residue and context before merging.
# RECURSIVE REASONING
recursive infer_histone_effect(mark, locus, context, evidence, depth):
guard: depth <= 5
stage_1: validate_histone_and_residue_identity
stage_2: resolve_modification_type_and_state
stage_3: resolve_cell_type_and_genomic_location
stage_4: traverse_reader_writer_eraser_and_chromatin_relations
stage_5: compare_expression_observations
stage_6: score_evidence_and_record_alternatives
stage_7: return qualified_inference_with_provenance
termination: repeated_state OR missing_evidence OR depth_limit
# VALIDATION
validate:
- histone_class_must_be_recognised_or_explicitly_unclassified
- residue_position_must_match_histone_reference_sequence
- species_and_isoform_required_for_precise_residue_mapping
- modifications_must_have_valid_target_residues
- correlations_must_not_be_relabelled_as_causation
- histone_mark_direction_must_not_be_universalised
- preserve_missing_data_and_conflicting_evidence
# FLOW_HASH
FLOW_HASH:
algorithm: SHA-256
input: canonical_UTF8(normalised_flow_without_hash_value)
value: compute_at_publication
rule: do_not_invent_hash
# UPDATE_MODEL
UPDATE_MODEL:
version: semantic_versioning
triggers: new_histone_variant, new_assay, corrected_annotation,
revised_functional_evidence, ontology_alignment_change
actions: validate -> provenance_check -> compare -> revise -> rehash -> publish
preserve: prior_versions, evidence_links, change_log
# AI_CONSUMPTION
AI_CONSUMPTION:
format: plain_text_flow_algebra
encoding: UTF-8
entity_resolution: typed_and_context_aware
retrieval_keys: [histone, nucleosome, chromatin, H2A, H2B, H3, H4,
H1, histone_variant, histone_mark, gene_expression]
outputs: [entity_graph, qualified_inference, evidence_trace,
confidence_state, unresolved_questions]
safety: do_not_fabricate_measurements_or_causal_findings
interoperability: link_to_gene_expression_and_epigenetic_marker_ontologies
# EXAMPLE QUERY
query: "Does H3K27me3 prove that a gene is silent?"
response:
association: repressive_chromatin_mark
conclusion: not_proof_of_silencing
requirements: cell_context, locus_specific_evidence, expression_measurement
confidence: evidence_dependent
END FLOW ALGEBRA
Download Code
Copy to Clipboard