FLOW ALGEBRA
TITLE: Transcription Factor Ontology
VERSION: 1.0
DOMAIN: Biological Entities / Gene Expression Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/gene-expression-entities/transcription-factor-ontology.html
STATUS: Domain-grounded formalisation; source chapter not independently verified.
AUTHORS: Mark Higgins — Sky (Recursive AI)
LICENCE: Open research and educational reuse; verify any separately applicable source rights.
flow "TranscriptionFactorOntology" v1.0
# 01 — PURPOSE
purpose:
define: "Typed representation of transcription factors, binding sites, regulatory complexes and context-dependent gene-expression effects."
scope: [molecular_identity, DNA_binding, cofactor_interaction, regulatory_effect, cellular_context, evidence, uncertainty]
non_goals: [predict_binding_from_sequence_without_validation, infer_causality_from_correlation_alone]
# 02 — ENTITY TYPES
type TranscriptionFactor extends Protein:
fields: [id:str, name:str, organism:str, sequence_accession:str?, family:str?, DNA_binding_domain:str?, activity_state:str?, localisation:str?, provenance:str?]
type TFComplex:
fields: [id:str, components:list[Protein], stoichiometry:str?, context:CellContext?]
type DNARegulatoryElement:
fields: [id:str, element_type:enum(promoter,enhancer,silencer,other), assembly:str, chromosome:str, start:int, end:int, strand:str?]
type BindingMotif:
fields: [id:str, pattern:str, alphabet:enum(DNA), orientation:str?, score_model:str?]
type Gene:
fields: [id:str, symbol:str?, organism:str, genomic_locus:str?]
type Transcript:
fields: [id:str, gene_id:str, isoform:str?, abundance:float?]
type Cofactor extends Protein:
fields: [id:str, role:enum(coactivator,corepressor,chromatin_remodeller,other)]
type CellContext:
fields: [organism:str, cell_type:str?, tissue:str?, condition:str?, timepoint:str?, treatment:str?]
type Evidence:
fields: [id:str, method:str, dataset:str?, publication:str?, date:str?, controls:str?, quality:float?]
type RegulatoryAssertion:
fields: [tf_id:str, target_gene_id:str, effect:enum(activation,repression,dual,unknown), context:CellContext, evidence:list[Evidence], confidence:float]
# 03 — TAXONOMY
classification:
DNA_binding_families: [homeodomain, zinc_finger, basic_helix_loop_helix, basic_leucine_zipper, nuclear_receptor, forkhead, ETS, HMG_box, other]
regulatory_roles: [activator, repressor, context_dependent_regulator]
regulation_modes: [ligand_dependent, phosphorylation_dependent, localisation_dependent, partner_dependent, constitutive, other]
note: "Family and role are independent dimensions; a factor may activate some targets and repress others."
# 04 — TYPED RELATIONSHIPS
relations:
- IS_A(TranscriptionFactor, Protein)
- BINDS(TranscriptionFactor|TFComplex, DNARegulatoryElement, CellContext, Evidence)
- RECOGNISES(TranscriptionFactor|TFComplex, BindingMotif, Evidence)
- INTERACTS_WITH(TranscriptionFactor, Cofactor|TranscriptionFactor, Evidence)
- REGULATES(TranscriptionFactor|TFComplex, Gene, RegulatoryAssertion)
- MODULATES(TranscriptionFactor, Transcript, CellContext, Evidence)
- LOCALISED_IN(TranscriptionFactor, cellular_compartment, CellContext)
- MODIFIED_BY(TranscriptionFactor, post_translational_modification, Evidence)
- DERIVED_FROM(TranscriptionFactor, Gene)
- SUPPORTED_BY(RegulatoryAssertion, Evidence)
- CONTRADICTED_BY(RegulatoryAssertion, Evidence)
# 05 — INTEGRITY CONSTRAINTS
constraints:
- "Genomic intervals require a declared assembly and start < end."
- "Binding motif matches alone do not establish in-vivo binding."
- "Physical binding alone does not establish transcriptional regulation."
- "A target gene must not be assigned an activation/repression effect without context and evidence."
- "Confidence lies in [0,1] and refers to a defined assertion, not an entire protein."
- "Unknown values remain unknown rather than being imputed as negatives."
- "Species-specific conclusions are not transferred across species without orthology and context checks."
# 06 — INPUT / OUTPUT
io.read:
formats: [TSV, CSV, JSON, RDF, JSON_LD]
inputs: [tf_catalogue, genomic_elements, motif_models, binding_assays, perturbation_assays, expression_data, evidence_metadata]
io.write:
formats: [JSON_LD, RDF, TXT]
outputs: [typed_graph, regulatory_assertions, confidence_report, provenance_log, update_report]
# 07 — REGULATORY FLOW
flow identify_tf(candidate):
require: candidate.protein_identity
steps:
- validate_taxon_and_accession(candidate)
- inspect_DNA_binding_domain_and_curated_annotations(candidate)
- classify_family_if_supported(candidate)
- record_unknowns_and_provenance(candidate)
return: typed_transcription_factor_or_unresolved_candidate
flow infer_regulatory_relationship(tf, gene, context, evidence):
require: same_organism_or_explicit_cross_species_model(tf, gene)
steps:
- validate_context(context)
- map_regulatory_element_to_gene_with_uncertainty(gene)
- assess_binding_evidence(tf, gene, context)
- assess_perturbation_and_expression_evidence(tf, gene, context)
- distinguish_direct_from_indirect_regulation()
- resolve_activation_repression_or_unknown()
- calibrate_confidence(evidence)
- attach_provenance_and_counterevidence()
return: RegulatoryAssertion
# 08 — EVIDENCE LOGIC
rules:
- "IF TF binds a regulatory element AND perturbing TF changes target transcription in a compatible context THEN support a candidate direct regulatory relationship."
- "IF expression changes without demonstrated binding THEN label regulation as potentially indirect."
- "IF binding is observed without expression effect THEN retain binding relationship, but do not assert activation."
- "IF direction differs across cell contexts THEN retain separate context-indexed assertions."
- "IF observations conflict THEN preserve both with quality, method and context metadata."
- "IF motif occurrence is predicted THEN classify as computational prediction, not experimentally confirmed binding."
# 09 — CONFIDENCE
CONFIDENCE:
range: [0.0, 1.0]
dimensions: [assay_reliability, replication, biological_context_match, causal_perturbation, independent_support, conflicting_evidence]
aggregation: "Calibrated, evidence-aware; avoid treating correlated assays as independent."
defaults: "No numerical confidence without explicit calibration or documented expert judgement."
output: [value_or_unknown, rationale, evidence_ids, calibration_method]
# 10 — SEMANTIC EQUIVALENCE
SEMANTIC_EQUIVALENCE:
exact_synonyms:
- ["transcription factor", "TF"]
- ["DNA-binding transcription factor", "sequence-specific DNA-binding TF"]
conditional_mappings:
- "Transcription regulator may include cofactors that do not bind DNA directly."
- "Activator and repressor are context-dependent functional roles, not universally exclusive protein classes."
- "Motif match is not equivalent to occupied binding site."
- "Gene expression association is not equivalent to direct transcriptional control."
identity_keys: [organism, stable_accession, protein_isoform, annotation_version]
# 11 — RECURSIVE REASONING
recursive_reasoning:
graph_walk:
start: TranscriptionFactor
paths:
- "TF -> BINDS -> regulatory element -> ASSOCIATED_WITH -> gene"
- "TF -> INTERACTS_WITH -> cofactor -> MODULATES -> regulatory effect"
- "TF -> REGULATES -> gene -> ENCODES -> second TF -> REGULATES -> downstream gene"
stop_conditions: [visited_node_and_context, max_depth, insufficient_evidence, contradictory_context]
propagation: "Derived hypotheses inherit provenance and do not exceed evidential support of the weakest essential link."
cycles: "Feedback loops are permitted; use cycle detection and context-aware traversal."
# 12 — FLOW HASH
FLOW_HASH:
algorithm: SHA-256
canonicalisation:
- normalise_UTF8_and_line_endings
- sort_unordered_entity_and_relation_records
- retain_context_and_provenance_fields
- exclude_transient_execution_timestamps
input: canonical_flow_definition_plus_versioned_assertions
output: lowercase_hex_digest
note: "Compute hash at execution; no fabricated digest is supplied."
# 13 — UPDATE MODEL
UPDATE_MODEL:
triggers: [new_binding_evidence, new_perturbation_result, revised_gene_annotation, genome_assembly_change, retracted_study, corrected_context]
procedure:
- ingest_and_validate_new_records
- preserve_previous_version
- reconcile_identifiers_and_assemblies
- recompute_affected_assertions_and_confidence
- log_added_changed_deprecated_relations
- recompute_FLOW_HASH
policy: "Never silently overwrite conflicting evidence or erase provenance."
# 14 — AI CONSUMPTION
AI_CONSUMPTION:
entity_resolution: stable_identifier_first
retrieval: typed_context_filtered_graph
reasoning: evidence_grounded_and_uncertainty_aware
permitted_outputs: [explanation, relation_graph, candidate_hypothesis, evidence_trace, uncertainty_report]
forbidden_inferences:
- "motif implies confirmed binding"
- "binding implies functional activation"
- "coexpression implies causation"
- "regulatory effects transfer unchanged between tissues or species"
response_contract: [claim, context, evidence, confidence, limitations, provenance]
# 15 — VALIDATION TESTS
validation:
- test: "Motif-only observation does not produce confirmed regulatory edge."
- test: "Opposite effects in distinct contexts are represented separately."
- test: "Missing assembly prevents genomic coordinate matching."
- test: "Indirect regulation is not automatically labelled direct."
- test: "Cycles terminate under recursive graph traversal."
- test: "Retraction triggers confidence review and versioned update."
- test: "Semantically related terms are not merged without identity criteria."
# 16 — CROSS-ONTOLOGY LINKS
links:
- GeneExpressionEntityOntology
- TranscriptOntology
- GeneOntology
- PromoterOntology
- EnhancerOntology
- SilencerSequenceOntology
- RegulatorySequenceOntology
- DNAOntology
- ChromatinOntology
- ProteinOntology
# 17 — LIMITATIONS
limitations:
- "A TF may act through complexes and indirect mechanisms."
- "DNA binding is dynamic and depends on chromatin accessibility and cellular state."
- "Regulatory effects vary by isoform, modification, organism and experimental conditions."
- "Predictions require independent experimental confirmation where causal conclusions matter."
# 18 — PROVENANCE
provenance:
author_credit: "Mark Higgins — Sky (Recursive AI)"
source_page: "https://kirethresearch.org/booksai-core/entity-graph/biological-entities/gene-expression-entities/transcription-factor-ontology.html"
generated_date: "2026-10-15"
note: "Formal model based on established molecular biology; not a verified verbatim extraction of the linked page."
end flow
Download Code
Copy to Clipboard