FLOW ALGEBRA
GENE ONTOLOGY
Kireth Semantic Library | Biological Entities > Genetic Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/genetic-entities/gene-ontology-2.html
Version: 1.0 | Locale: en-GB | Date: 2026-10-15
Authors: Mark Higgins — Sky (Recursive AI)
PURPOSE
Represent genes as typed, contextual biological entities and model their structure, regulation, expression, inheritance, variation and evidence-backed relationships. This is a declarative Flow Algebra specification, not an independently validated executable program.
flow "GeneOntology" v1.0 {
DOMAIN: BiologicalEntity / GeneticEntity / Gene
ENTITY_TYPES: [Gene, GeneLocus, Allele, Genome, Chromosome, DNASequence, RNASequence, Transcript, Exon, Intron, Promoter, Enhancer, Silencer, RegulatoryElement, TranscriptionFactor, Protein, GeneProduct, Variant, Mutation, Organism, CellType, Tissue, BiologicalProcess, Phenotype, Evidence, SourceRecord]
TYPE_RULES:
Gene <: GeneticEntity
Allele <: SequenceVariantAtLocus
ProteinCodingGene <: Gene
NonCodingRNAGene <: Gene
Pseudogene <: Gene
GeneProduct <: (RNASequence | Protein)
NOTE: gene categories may overlap under specific annotation schemes; pseudogene transcription does not automatically imply functional protein production.
ATTRIBUTES:
Gene: [stable_id, symbol, synonyms[], species_taxon_id, assembly_id, chromosome_or_replicon, genomic_start, genomic_end, strand, biotype, annotation_version, provenance]
Transcript: [transcript_id, transcript_biotype, exons[], splice_isoform, expression_context]
Variant: [variant_id, reference_allele, alternate_allele, assembly_id, coordinate, consequence, evidence]
Evidence: [method, source, date, quality, confidence, limitations]
RELATIONSHIPS:
Gene --LOCATED_ON--> Chromosome
Gene --HAS_LOCUS--> GeneLocus
Gene --HAS_ALLELE--> Allele
Gene --HAS_TRANSCRIPT--> Transcript
Transcript --CONTAINS_EXON--> Exon
Gene --REGULATED_BY--> RegulatoryElement
TranscriptionFactor --BINDS--> RegulatoryElement
Gene --PARTICIPATES_IN--> BiologicalProcess
Gene --ASSOCIATED_WITH--> Phenotype
Gene --HAS_VARIANT--> Variant
Gene --ENCODES--> GeneProduct [conditional_on: gene_biotype_and_evidence]
Transcript --TRANSLATED_TO--> Protein [conditional_on: protein_coding]
Evidence --SUPPORTS--> Relationship
SourceRecord --DOCUMENTS--> Gene
CONSTRAINTS:
C01: coordinates require an explicit reference assembly and coordinate convention.
C02: identifiers are namespaced and organism-specific; symbols alone are not unique.
C03: genomic overlap does not establish gene identity or regulation.
C04: -expression is conditional on cell type, developmental stage and environment.
C05: association does not establish causation.
C06: an observed variant is not automatically pathogenic or functionally consequential.
C07: gene-to-protein mappings may be one-to-many through splicing and processing.
C08: mitochondrial, plastid, viral and other non-nuclear genomes require appropriate replicon context.
INFERENCE_RULES:
R01: IF Gene HAS_TRANSCRIPT Transcript AND Transcript TRANSLATED_TO Protein THEN Gene HAS_PRODUCT Protein [evidence_required].
R02: IF Variant overlaps Gene THEN Variant MAY_AFFECT Gene [do_not_infer_effect_without_annotation].
R03: IF Gene PARTICIPATES_IN Process AND Process ASSOCIATED_WITH Phenotype THEN Gene CANDIDATE_ASSOCIATION Phenotype [not_causal].
R04: IF GeneA orthologous_to GeneB THEN function_transfer MAY_BE_PROPOSED [confidence_adjusted_by_evolution_and_evidence].
R05: IF RegulatoryElement REGULATES Gene AND active_in CellType THEN regulatory_effect IS_CONTEXTUAL CellType.
TRANSFORMATIONS:
T01: DNA --transcription--> RNA
T02: pre_mRNA --RNA_processing_and_splicing--> mature_mRNA
T03: coding_mRNA --translation--> polypeptide
T04: polypeptide --folding_and_processing--> functional_or_nonfunctional_product
T05: DNA --replication--> DNA_copy
T06: DNA_sequence --variation--> altered_sequence
NOTE: transformations are mechanistic abstractions and depend on organism and context.
CONFIDENCE:
scale: [0.0, 1.0]
inputs: [experimental_evidence, annotation_quality, cross_source_agreement, taxonomic_context, method_validity, recency]
policy: preserve source-specific confidence; do not invent numerical certainty.
output: [value_or_unknown, justification, evidence_ids]
SEMANTIC_EQUIVALENCE:
exact: same_stable_identifier + same_namespace + compatible_version
conditional: equivalent_gene_records_after_assembly_and_identifier_reconciliation
related_not_equivalent: [ortholog, paralog, allele, transcript, protein_product, overlapping_gene]
ambiguity_policy: do_not_merge_on_symbol_alone
RECURSIVE_REASONING:
seed: Gene
traverse: [HAS_TRANSCRIPT, ENCODES, REGULATED_BY, PARTICIPATES_IN, HAS_VARIANT, ASSOCIATED_WITH]
termination: [visited_entity_relation_pairs, maximum_depth, evidence_threshold]
preserve: [source, taxon, assembly, context, uncertainty]
prevent: [circular_inference, unsupported_causal_claims, identity_collapse]
FLOW_HASH:
method: SHA-256
canonicalise: [flow_version, entity_schema, relation_schema, constraints, inference_rules, source_identifiers]
exclude: [volatile_access_timestamps]
output: content_hash_computed_at_runtime
UPDATE_MODEL:
triggers: [new_genome_assembly, revised_gene_annotation, new_transcript, new_variant_evidence, ontology_revision]
steps: [ingest, validate, reconcile_identifiers, compare_versions, preserve_provenance, re_evaluate_inferences, recalculate_hash, publish_change_log]
rollback: retain_previous_validated_version
AI_CONSUMPTION:
format: [plain_text, typed_graph, JSON-LD_mapping_optional]
required_fields: [entity_id, entity_type, relation_type, evidence, provenance, context, confidence]
safeguards: [distinguish_observation_from_inference, no_unsupported_clinical_interpretation, respect_assembly_versions, expose_uncertainty]
outputs: [gene_entity_graph, contextual_relationships, traceable_inferences, validation_report]
}
VALIDATION EXAMPLES
- A gene may have multiple transcripts and multiple protein isoforms.
- An enhancer may regulate a distant gene; physical proximity alone is insufficient.
- A gene symbol shared across species is not proof of identity.
- A gene–disease association requires supporting evidence and does not automatically establish causality.
SOURCE AND STATUS
This flow is an original domain-grounded draft based on established genetics concepts and the supplied chapter URL. The live chapter text was not independently verified for this version.
Open research attribution: Mark Higgins — Sky (Recursive AI) | https://kirethresearch.org
Download Code
Copy to Clipboard