Skip to main content

Sequence Data Ontology

Biological Data Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
KIRETH SEMANTIC LIBRARY — SEQUENCE DATA ENTITY ONTOLOGY
FLOW ALGEBRA v1.0 | 2026-10-28 | UTF-8
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/biological-entities/biological-data-entities/sequence-data-ontology.html
STATUS: Original companion formalisation; page text not independently verified.
AUTHORS: Kireth Research; Sky — Recursive AI (companion formalisation)
CITATION_BACKLINK: https://kirethresearch.org/
PURPOSE: Model biological sequence data, provenance, transformations, evidence and cautious inference as typed, auditable semantic flows.

1. STATE MODEL
S_t = (I_t, R, B, K)
I_t = current sequence records, annotations, metadata and observations.
R = typed relationships, transformation and inference rules.
B = constraints on provenance, alphabet, coordinate system and uncertainty.
K = validated biological knowledge and reference context.
E_t = expand(I_t, R)
V_t = {x in E_t | satisfies(x, B)}
x*_t = argmax_{x in V_t} P(x | I_t, R, B, K)
I_(t+1) = update(I_t, x*_t, evidence, provenance)
No update may silently overwrite the original record or its evidence.

2. ENTITY TYPES
SequenceData: abstract sequence information object.
NucleotideSequence: DNA or RNA sequence with declared alphabet.
ProteinSequence: amino-acid sequence with declared alphabet.
Read: observed sequence fragment from a sequencing instrument.
ReadSet: collection of reads from a sequencing run.
ReferenceSequence: designated comparison sequence with version.
ConsensusSequence: inferred sequence from multiple observations.
Assembly: reconstruction of sequence contigs or scaffolds.
Contig: contiguous assembled sequence.
FeatureAnnotation: located biological feature on a sequence.
VariantCall: reported difference relative to a specified reference.
Alignment: positional correspondence between sequences.
SequenceDataset: collection of related sequence records.
Sample: biological source material and associated metadata.
SequencingRun: acquisition event with instrument and method metadata.
QualityMetric: read/base/assembly quality observation.
ProvenanceRecord: source, custody, software, processing and version lineage.

3. REQUIRED FIELDS
sequence_id: stable identifier
sequence_type: DNA | RNA | protein | other_declared
alphabet: permitted symbol set including declared ambiguity codes
length: non-negative integer
orientation: forward | reverse | unknown | not_applicable
coordinate_system: zero_based_half_open | one_based_closed | declared_other
reference_id: optional stable versioned reference identifier
sample_id: optional source reference
source_event_id: optional acquisition event
version: immutable record version
checksum: optional content integrity hash
provenance: source and transformation history
quality: metrics with units and method
access: privacy, consent and reuse constraints when applicable

4. RELATIONSHIP GRAPH
Read --derived_from--> Sample
Read --generated_by--> SequencingRun
ReadSet --contains--> Read
Contig --assembled_from--> ReadSet
Assembly --contains--> Contig
ConsensusSequence --inferred_from--> Alignment
Alignment --compares--> SequenceData
VariantCall --relative_to--> ReferenceSequence
FeatureAnnotation --located_on--> SequenceData
SequenceDataset --contains--> SequenceData
SequenceData --has_provenance--> ProvenanceRecord
SequenceData --has_quality--> QualityMetric
SequenceData(version_n+1) --derived_from--> SequenceData(version_n)

5. VALIDATION RULES
R01: A sequence must declare its biological alphabet; ambiguity symbols are allowed only when declared.
R02: Recorded length must equal the number of sequence symbols after agreed normalisation.
R03: Every coordinate interval must identify its coordinate convention and reference version.
R04: A variant call without a reference cannot be interpreted as a reference-relative change.
R05: A read is an observation, not automatically a confirmed biological variant.
R06: A consensus is an inference, not a direct observation.
R07: A translated protein sequence requires a declared frame, code and handling of ambiguous codons.
R08: A sequence match alone does not establish organism identity or function.
R09: Quality values must retain metric definitions, units and method.
R10: Every transformation must retain input IDs, tool/version, parameters, date and output IDs.
R11: Biological source and sample metadata must not be fabricated when missing.
R12: Restricted human-derived data must respect consent, privacy and access controls.

6. INFERENCE PATHWAYS
P1: Sample -> sequencing event -> reads -> quality assessment -> curated read set.
P2: Read set -> assembly -> contigs -> validation -> versioned assembly.
P3: Sequence -> reference alignment -> differences -> filtered candidate variant calls.
P4: Sequence -> feature annotation -> evidence review -> qualified functional claim.
P5: Sequence set -> comparative alignment -> phylogenetic hypothesis -> uncertainty report.
P6: Versioned dataset -> transformation -> derived dataset -> provenance audit.

7. MINI RECURSION ENGINE
function step(state):
  candidates = expand(state.inputs, state.rules)
  valid = filter(candidates, state.boundaries)
  ranked = rank(valid, evidence_quality, provenance_completeness, consistency)
  if ranked is empty: return state with unresolved_status
  selected = ranked[0]
  if selected lacks sufficient evidence: return state with candidate_only_status
  return update_with_audit(state, selected)
STOP when no new validated relations emerge, a cycle is detected, or resource limits are reached.

8. TRI-MAPPING
ONTOLOGY: SequenceData, Read, ReferenceSequence, Alignment, VariantCall, ProvenanceRecord.
FLOW: observe -> validate -> align/assemble -> annotate -> infer -> review -> publish.
EVIDENCE: raw data identifiers, quality metrics, references, versions, uncertainty and audit log.
Mapping guarantee: every accepted inference must resolve to typed entities and traceable evidence.

9. CONFIDENCE AND UNCERTAINTY
confidence(candidate) = calibrated_estimate(evidence_quality, coverage, consistency, method_limits)
Use explicit uncertainty; do not treat confidence scores as probabilities unless calibrated.
Distinguish missing evidence, negative evidence and conflicting evidence.
Flag assembly ambiguity, sequencing error, reference bias and contamination as applicable.

10. EXECUTION GUARANTEES (CONDITIONAL)
G1: Validated records preserve declared alphabets and coordinate conventions.
G2: Original observations remain immutable and version-addressable.
G3: Accepted transformations have traceable provenance.
G4: Unsupported claims remain candidates rather than facts.
G5: The engine terminates under finite inputs and enforced iteration limits.
These are software-contract goals conditional on correct implementation and evidence; not guarantees of biological truth.

11. AI SEARCH FLOW
INTENT: identify, compare, retrieve, explain or validate biological sequence data.
INPUTS: sequence type, identifiers, organism/context, reference version, quality and provenance constraints.
ENTITY RESOLUTION: normalise identifiers without merging different reference versions.
RETRIEVAL: prefer primary records and documented reference databases.
FILTERS: type, source, version, quality, permissions and requested evidence level.
REASONING: use R01-R12, preserve uncertainty and distinguish observation from inference.
OUTPUT: entity summary, related sequences, evidence links, limitations, confidence and citation backlink.
FAIL SAFE: return unknown or unresolved when records cannot be authenticated.

12. HOW TO READ
Each entity is a typed node; arrows denote explicit, auditable relations.
State transitions generate candidate interpretations, validate constraints and preserve evidence.
A sequence can be known precisely while its biological meaning remains uncertain.

13. EXAMPLE (SCHEMATIC, NOT EMPIRICAL)
SequenceData(seq_001, DNA, alphabet=ACGTN, length=5, value=ACGTN)
ReferenceSequence(ref_001, version=1)
Alignment(aln_001, compares=[seq_001,ref_001], status=pending)
Inference: no variant or function claim until alignment and evidence are supplied.

END OF FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ