FLOW ALGEBRA
CHROMATIN 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/chromatin-ontology.html
Authors: Mark Higgins — Sky (Recursive AI)
Status: Domain-grounded formalisation; source chapter not independently verified.
# 01 — PURPOSE
flow "ChromatinOntology" v1.0
purpose: represent chromatin composition, organisation, state transitions, epigenetic regulation, and evidence-aware biological inference.
scope: eukaryotic nuclear chromatin; organellar and specialised exceptions require explicit context.
# 02 — TYPED ENTITIES
entity Chromatin: BiologicalComplex
entity DNA: NucleicAcid
entity Histone: Protein
entity HistoneVariant: Histone
entity Nucleosome: ChromatinUnit
entity HistoneOctamer: ProteinComplex
entity LinkerDNA: DNARegion
entity LinkerHistone: Histone
entity ChromatinFibre: ChromatinStructure
entity Chromosome: GeneticStructure
entity GenomicLocus: GenomicRegion
entity Promoter: RegulatorySequence
entity Enhancer: RegulatorySequence
entity Insulator: RegulatorySequence
entity TranscriptionFactor: RegulatoryProtein
entity RNApolymerase: EnzymeComplex
entity ChromatinRemodeller: ProteinComplex
entity HistoneWriter: Enzyme
entity HistoneEraser: Enzyme
entity HistoneReader: Protein
entity DNAmodification: EpigeneticFeature
entity HistoneModification: EpigeneticFeature
entity ChromatinAccessibility: Measurement
entity ChromatinContact: SpatialRelationship
entity GeneExpression: BiologicalProcess
entity CellType: BiologicalContext
entity DevelopmentalStage: BiologicalContext
entity ExperimentalAssay: EvidenceSource
entity Observation: EvidenceRecord
# 03 — CLASSIFICATION
class ChromatinState = {Accessible, LessAccessible, ContextDependent, Unknown}
class FunctionalRegion = {PromoterAssociated, EnhancerAssociated, TranscribedRegion, RepetitiveRegion, CentromericRegion, TelomericRegion, Other}
class HistoneModificationType = {Acetylation, Methylation, Phosphorylation, Ubiquitylation, Other}
class RemodellingAction = {NucleosomeSliding, NucleosomeEviction, NucleosomeExchange, NucleosomeRepositioning}
class EvidenceStatus = {Observed, Inferred, Predicted, Unresolved}
# 04 — STRUCTURAL RELATIONSHIPS
relationship Chromatin contains DNA
relationship Chromatin associates_with Histone
relationship Nucleosome contains HistoneOctamer
relationship Nucleosome wraps DNA
relationship LinkerDNA connects Nucleosome
relationship ChromatinFibre comprises Nucleosome
relationship Chromosome organised_from Chromatin
relationship HistoneModification modifies Histone
relationship DNAmodification modifies DNA
relationship ChromatinRemodeller changes NucleosomePosition
relationship GenomicLocus has ChromatinState
relationship ChromatinContact connects GenomicLocus
relationship ExperimentalAssay supports Observation
# 05 — BIOLOGICAL CONSTRAINTS
constraint NucleosomeCore: canonical_core_histones = 2 * (H2A + H2B + H3 + H4)
constraint NucleosomeCoreDNA: canonical_wrap_length ≈ 147 base_pairs
constraint ContextRequired: chromatin_state depends_on cell_type, time, locus, assay
constraint ModificationSpecificity: histone_mark requires histone_identity, residue, modification_type
constraint NonDeterminism: chromatin_mark alone does_not_prove transcriptional_outcome
constraint DNASequencePreserved: epigenetic_state_change does_not_imply DNA_sequence_change
constraint AssociationNotCausation: chromatin_accessibility correlation does_not_establish causality
constraint CoordinateSystem: locus_coordinates require reference_assembly and coordinate_convention
# 06 — COMPOSITION FLOW
flow ChromatinAssembly(DNA, histones, assembly_factors, context):
require valid(DNA) and valid(histones)
assemble histone_octamer
wrap DNA around histone_octamer
form nucleosome_array
organise nucleosomes within genomic_context
return Chromatin(context=context, structure=nucleosome_array)
# 07 — ACCESSIBILITY FLOW
flow AccessibilityInference(locus, observations, context):
require locus.reference_assembly != null
collect assay_specific_observations(observations)
correct_for quality, depth, bias, cell_composition
estimate accessibility_score with uncertainty
classify state using validated context_specific_thresholds
return {score, state, uncertainty, provenance}
# 08 — EPIGENETIC REGULATION FLOW
flow ChromatinRegulation(locus, regulatory_factors, context):
bind transcription_factors when sequence_and_accessibility_permit
recruit chromatin_remodellers or histone_modifying_enzymes
update nucleosome_position and modification_state
evaluate effects on regulatory_element_activity
infer possible expression_change conditional_on_context
return {chromatin_state, predicted_expression_effect, confidence}
# 09 — TRANSCRIPTION INTERACTION
flow ChromatinToExpression(locus, chromatin_state, transcription_machinery):
assess promoter_accessibility
assess enhancer_promoter_contacts where supported
assess transcription_factor_occupancy
assess RNA_polymerase_recruitment_and_elongation
infer expression_probability, not guaranteed expression
return {expression_probability, evidence, uncertainty}
# 10 — REMODELLING FLOW
flow NucleosomeRemodelling(remodeller, substrate, ATP, context):
require compatible(remodeller, substrate)
require ATP if remodeller_is_ATP_dependent
choose supported_action from RemodellingAction
modify nucleosome_arrangement
measure resulting accessibility_and_position
return updated_chromatin_state
# 11 — CHROMATIN MARK INTERPRETATION
rule H3K4me3: frequently_associated_with active_promoters; not sufficient_alone
rule H3K27ac: frequently_associated_with active_regulatory_elements; not sufficient_alone
rule H3K27me3: frequently_associated_with Polycomb_repression; context_dependent
rule H3K9me3: frequently_associated_with constitutive_heterochromatin; context_dependent
rule DNA_methylation: effects_depend_on genomic_region, organism, and context
rule HistoneAcetylation: often_correlates_with increased_accessibility; exceptions_exist
# 12 — ASSAY EVIDENCE
assay ATAC_seq measures proxy_for chromatin_accessibility
assay DNase_seq measures proxy_for chromatin_accessibility
assay ChIP_seq measures enrichment_of protein_or_histone_mark
assay CUT_and_RUN measures targeted_chromatin_association
assay CUT_and_Tag measures targeted_chromatin_association
assay Hi_C measures population_level_chromatin_contacts
assay RNA_seq measures RNA_abundance; not direct chromatin_state
assay SingleCellMultiome links accessibility_and_expression within matched cells
# 13 — RECURSIVE REASONING
flow RecursiveChromatinReasoning(question, evidence, depth, visited):
require depth >= 0
if depth == 0: return unresolved_with_provenance
identify relevant chromatin_entities_and_relations
retrieve direct observations and context
reject unsupported causal_leaps
if missing_dependency:
recurse on missing_dependency with depth - 1 and updated visited
integrate compatible_evidence
preserve conflicts and uncertainty
return evidence_grounded_answer
# 14 — CONFIDENCE
CONFIDENCE:
evidence_quality: [0.0, 1.0]
assay_specificity: [0.0, 1.0]
biological_context_match: [0.0, 1.0]
reproducibility: [0.0, 1.0]
uncertainty_penalty: [0.0, 1.0]
output: calibrated_score_if_validation_available_else_qualitative_level
policy: never fabricate empirical confidence values
# 15 — SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE:
chromatin: DNA_protein_complex (broad_context)
euchromatin: generally_less_condensed_chromatin (not always transcriptionally_active)
heterochromatin: generally_more_compacted_chromatin (context_dependent)
nucleosome_core_particle: histone_octamer_plus_wrapped_DNA
histone_mark: specific_histone_post_translational_modification
non_equivalence:
- chromatin != chromosome
- chromatin_accessibility != gene_expression
- histone_modification != DNA_mutation
- genomic_contact != proven_regulatory_interaction
# 16 — FLOW HASH
FLOW_HASH:
algorithm: SHA-256
canonical_input: UTF-8_normalised_flow_definition_excluding_computed_hash_field
procedure: canonicalise -> encode_utf8 -> sha256 -> lowercase_hex
value: compute_at_ingestion
# 17 — UPDATE MODEL
UPDATE_MODEL:
version: 1.0
triggers: [new_evidence, ontology_revision, assay_recalibration, terminology_change]
steps:
- validate_new_source_and_provenance
- compare_prior_entity_and_relationship_definitions
- check_backward_compatibility
- revise_context_sensitive_rules
- rerun_consistency_checks
- recompute_FLOW_HASH
- record_version_timestamp_and_change_log
policy: preserve_superseded_versions_and_conflicting_evidence
# 18 — AI CONSUMPTION
AI_CONSUMPTION:
machine_readable: true
entity_typing: required
relationship_typing: required
evidence_provenance: required
context_fields: [species, cell_type, developmental_stage, genomic_assembly, assay, time]
confidence_policy: uncertainty_aware
inference_policy: distinguish_observation_correlation_and_causation
retrieval_keys: [chromatin, nucleosome, histone, accessibility, remodelling, gene_expression]
output_modes: [entity_graph, relation_graph, biological_explanation, hypothesis_with_caveats]
# 19 — VALIDATION
validate entity_references_exist
validate relationship_domain_and_range
validate genomic_coordinates_and_reference_assembly
validate context_and_provenance_for_observations
validate modification_site_nomenclature
validate no_unqualified_causal_claims
validate no_false_equivalence
validate recursive_depth_termination
validate update_model_version_and_hash_policy
# 20 — END
end flow "ChromatinOntology"
Download Code
Copy to Clipboard