Skip to main content

Methylated DNA Ontology

Gene Expression Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 15 October 2026
Audio Overview
FLOW ALGEBRA
METHYLATED DNA 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/methylated-dna-ontology.html
Status: Domain-grounded formalisation; source chapter not independently verified.
Authors: Mark Higgins — Sky (Recursive AI)
Licence: Open research reuse; consult the site's current Open Research Licence for terms.

# 01 PURPOSE
flow "MethylatedDNAOntology" v1.0
purpose: represent DNA methylation states, sites, mechanisms, evidence and gene-expression context without equating correlation with causation.

# 02 TYPES
type Entity = {id:str, label:str, ontology_iri:str?}
type DNARegion extends Entity = {assembly:str, chromosome:str, start:int, end:int, strand:str?}
type CytosineSite extends Entity = {region:DNARegion, position:int, context:enum[CG,CHG,CHH,other], modification:enum[unmodified,5mC,5hmC,5fC,5caC,unknown]}
type MethylationObservation extends Entity = {site:CytosineSite?, region:DNARegion?, fraction:float?, coverage:int?, assay:str, sample:str, time:str?, confidence:float}
type Sample extends Entity = {species:str, tissue:str?, cell_type:str?, condition:str?, replicate:str?}
type Enzyme extends Entity = {family:enum[DNMT1,DNMT3A,DNMT3B,TET,other], role:str}
type RegulatoryElement extends DNARegion = {kind:enum[promoter,enhancer,insulator,gene_body,repeat,imprinting_control_region,other]}
type ExpressionMeasurement extends Entity = {gene:str, sample:str, value:float, unit:str, assay:str}
type Evidence extends Entity = {method:str, provenance:str, quality:float, observed_at:str?}
type Claim extends Entity = {subject:str, predicate:str, object:str, evidence_ids:list[str], confidence:float}

# 03 ENTITY TAXONOMY
entity MethylatedDNA : DNARegion
entity DNA_Methylation : EpigeneticModification
entity Cytosine_5mC : ModifiedNucleotide
entity Cytosine_5hmC : OxidisedCytosineDerivative
entity CpG_Dinucleotide : SequenceMotif
entity CpG_Island : GenomicFeature
entity DifferentiallyMethylatedRegion : DNARegion
entity ImprintedRegion : DNARegion
entity Methyltransferase : Enzyme
entity DemethylationProcess : BiologicalProcess
entity MethylationAssay : MeasurementProcess

# 04 RELATIONSHIP SIGNATURES
relation HAS_SITE(DNARegion,CytosineSite)
relation HAS_MODIFICATION(CytosineSite,str)
relation OBSERVED_IN(MethylationObservation,Sample)
relation MEASURED_BY(MethylationObservation,str)
relation CATALYSED_BY(str,Enzyme)
relation OVERLAPS(DNARegion,DNARegion)
relation REGULATES_IN_CONTEXT(DNARegion,str)
relation ASSOCIATED_WITH_EXPRESSION(MethylationObservation,ExpressionMeasurement)
relation SUPPORTED_BY(Claim,Evidence)
relation DERIVED_FROM(Claim,Claim)
relation TEMPORALLY_PRECEDES(str,str)
relation SEMANTIC_EQUIVALENCE(Entity,Entity)

# 05 CORE CONSTRAINTS
constraint COORDINATES: region.start >= 0 AND region.end > region.start
constraint ASSEMBLY_REQUIRED: every genomic coordinate uses an identified reference assembly
constraint FRACTION_RANGE: observation.fraction is null OR 0.0 <= observation.fraction <= 1.0
constraint COVERAGE_NONNEGATIVE: observation.coverage is null OR observation.coverage >= 0
constraint CONFIDENCE_RANGE: 0.0 <= confidence <= 1.0
constraint CONTEXT_SPECIFIC: CpG is not the sole methylation context in all organisms or cell types
constraint ASSAY_SPECIFICITY: bisulphite sequencing alone does not distinguish 5mC from 5hmC
constraint EVIDENCE_SEPARATION: measured methylation, predicted methylation and inferred regulatory effects are distinct claims
constraint CORRELATION_NOT_CAUSATION: -expression association does not imply methylation caused expression change
constraint CELL_MIXTURE: bulk sample measurements may reflect cell-composition differences

# 06 BIOLOGICAL RULES
rule MAINTENANCE_METHYLATION:
  IF hemi_methylated_CpG AND DNMT1_active AND appropriate_cofactors
  THEN maintenance_methylation_possible
  confidence: context_dependent

rule DE_NOVO_METHYLATION:
  IF DNMT3A_or_DNMT3B_active AND accessible_substrate
  THEN de_novo_methylation_possible
  confidence: context_dependent

rule OXIDATIVE_DEMETHYLATION:
  IF TET_activity AND 5mC_present
  THEN oxidation_to_5hmC_or_later_derivatives_possible
  NOTE: oxidation is not automatically complete demethylation

rule PASSIVE_DEMETHYLATION:
  IF replication AND maintenance_methylation_incomplete
  THEN methylation_dilution_possible

rule PROMOTER_ASSOCIATION:
  IF promoter_CpG_methylation_high AND matched_expression_low
  THEN propose_association("promoter methylation", "reduced transcription")
  NOTE: association is not universal; evaluate chromatin and cell context

rule GENE_BODY_ASSOCIATION:
  IF gene_body_methylation_detected
  THEN annotate_context_dependent_function
  NOTE: do not assume gene-body methylation represses transcription

rule IMPRINTING:
  IF parent_of_origin_specific_methylation AND allele_specific_expression
  THEN candidate_imprinting_control
  REQUIRE: phased or allele-resolved evidence before definitive classification

# 07 TRANSFORMATIONS
transform METHYLATE(site,enzyme,context) -> modified_site
  precondition: compatible substrate AND enzymatic activity
  postcondition: modification may become 5mC

transform OXIDISE(site,TET,context) -> modified_site
  precondition: site.modification == 5mC
  postcondition: modification may become 5hmC, 5fC or 5caC through successive steps

transform PROFILE(sample,assay,reference_assembly) -> list[MethylationObservation]
  validate: read_quality, mapping, coverage, conversion_or_detection_controls

transform COMPARE(profile_A,profile_B,design) -> candidate_DMRs
  require: matched reference assembly, replicates, covariates, multiple_testing_control

transform LINK_TO_EXPRESSION(DMR,expression,design) -> Claim
  output: association claim, not causal claim

# 08 RECURSIVE REASONING
recursive flow INFER_METHYLATION_CONTEXT(region, sample, depth:int=0):
  stop_if: depth >= 8 OR no_new_supported_evidence
  gather: site_observations, genomic_annotation, chromatin_state, expression_data
  validate: assembly, sample_identity, assay_resolution, provenance
  infer: candidate_contextual_relationships
  rank: evidence_strength, reproducibility, biological_plausibility
  recurse: only through newly supported linked entities
  return: claims_with_uncertainty_and_evidence

# 09 CONFIDENCE
CONFIDENCE:
  score_range: [0.0,1.0]
  dimensions: [assay_quality,coverage,replication,cell_specificity,annotation_quality,independent_validation]
  aggregation: calibrated_model_or_explicit_weighted_method
  missing_evidence: lower_or_unresolved_confidence
  interpretation: epistemic support, not probability of biological causation unless calibrated

# 10 SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE:
  exact: ["5-methylcytosine", "5mC"]
  conditional: ["DNA methylation", "cytosine methylation"]
  not_equivalent:
    - ["5mC", "5hmC"]
    - ["methylated DNA", "silenced gene"]
    - ["CpG island", "methylated CpG island"]
    - ["differential methylation", "causal gene regulation"]
  matching_policy: require species, assay, region, modification and sample context

# 11 PROVENANCE AND VERSIONING
PROVENANCE:
  required: [source_id, sample_id, assay, reference_assembly, pipeline_version, analysis_date]
  recommended: [accession, reagent_metadata, controls, sequencing_depth, batch, consent_or_access_constraints]
  data_integrity: preserve original observations and transformations

FLOW_HASH:
  algorithm: SHA-256
  input: canonical_UTF8_serialisation_of_flow_and_versioned_claims
  exclude: volatile_runtime_timestamps_unless_part_of_claim
  purpose: detect changes; hash is computed by an implementation, not asserted here

UPDATE_MODEL:
  trigger: [new_measurement, genome_assembly_change, improved_assay, revised_annotation, contradictory_evidence]
  procedure:
    - preserve previous version and provenance
    - validate incoming evidence
    - recompute affected claims and confidence
    - record changed relationships
    - regenerate FLOW_HASH
    - publish change log

# 12 AI CONSUMPTION
AI_CONSUMPTION:
  representation: typed_graph_with_provenance
  accepted_inputs: [genomic_coordinates, methylation_profiles, regulatory_annotations, expression_measurements]
  outputs: [classified_entities, contextual_relationships, evidence_backed_hypotheses, uncertainty]
  guardrails:
    - distinguish measured, inferred and hypothetical claims
    - do not infer disease diagnosis from methylation alone
    - do not present association as mechanistic proof
    - respect data privacy and consent restrictions
    - retain organism and tissue specificity
  interoperability: [RDF,JSON-LD,OWL,FAIR_metadata]

# 13 VALIDATION CASES
case C1:
  input: CpG_site_with_fraction_0.72_and_valid_coverage
  expected: valid_fractional_methylation_observation
case C2:
  input: methylation_fraction_1.4
  expected: reject_out_of_range
case C3:
  input: bisulphite_only_signal
  expected: 5mC_versus_5hmC_unresolved
case C4:
  input: hypermethylated_promoter_and_low_expression
  expected: candidate_association_not_proven_causation
case C5:
  input: two_profiles_with_different_reference_assemblies
  expected: require_coordinate_harmonisation_before_comparison
case C6:
  input: TET_oxidation_of_5mC
  expected: 5hmC_intermediate_possible_not_automatic_unmodified_C

# 14 TERMINATION
flow.end:
  emit: ontology_graph, validated_claims, provenance, confidence, version_record
  status: domain_grounded_reference_specification
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ