BIO-SEMANTICS
Gene-Expression Semantic Modeling Pipeline
Ahmad Ali Parr · Jessica L. Williams · SNAPKITTYWEST
cDNA Sequencing Observations
coverage
42.7×
reads
2.4M
quality
Q38.2
samples
48
Gene Expression Matrix
← genes (n=2,847) → samples ↓
CONDITION 4 TIMEPOINT 6 REPLICATE 2 CELL TYPE 3
Data Validation · semantics.py
10 VALIDATOR RULES
version
■ PASS
discriminant
■ PASS
value/missing
■ PASS
raw count
■ PASS
decimal
■ PASS
reference
■ WARN
quantity kind
■ PASS
exclusion
■ PASS
source bytes
■ PASS
synthetic origin
■ PASS
Semantic Quantity Classification
Observed measurement
Inferred posterior estimation
Derived deterministic transform
Predicted model output
Constrained MiniZinc
01
Encoded representation
Executed run evidence
DNA
cDNA READS
EXPRESSION
SEMANTICS
BINARY
PTM STATES
POSTERIOR
CONSTRAINTS
MODEL
Biological Observations
cDNA Expression Data
Data Validation
Gene Expression
Stan Model
Posterior State
MiniZinc Model
Computational Result
Visualizer
Human-Readable Model
Bayesian Inference · Stan
Prior → Likelihood → Posterior
ParameterMeanMedianσR̂ESS
α2.3472.3410.1281.0014200
β₁-0.892-0.8870.0641.0023800
β₂1.1561.1490.0911.0014100
σ0.4230.4190.0321.0004500
φ0.0670.0650.0181.0033600
RUN ID BSM-2026-0908-001
Constraint Solver · MiniZinc
minimize f(x) subject to C1 ∧ C2 ∧ … ∧ Ck
Variables 12 Domains 3 Constraints 8 Objective 1
Quantum Circuit · Quipper
semantic transformation → quantum circuit → quipper
5
Qubits
14
Gate Count
7
Circuit Depth
PTM-BIT-PARITY/1
qeven
qodd
qaccept
StateReadWriteMoveNext
qeven00Rqeven
qeven11Rqodd
qodd00Rqodd
qodd11Rqeven
qeven□□—qaccept
8 input symbols · 9 transitions · O(1) auxiliary storage
Binary Semantics
semantic value → encoding → bits → state → transition
State IDTape PosSymbolTransitionNext
S₀0x00000δ(S₀,0)S₀
S₀0x00011δ(S₀,1)S₁
S₁0x00020δ(S₁,0)S₁
S₁0x00031δ(S₁,1)S₀
Immutable Artifact Provenance
RPG/JCL · Legacy Integration
//* BIO-SEMANTICS VAULT CONTROL //BSEM001 JOB BIOSEM,CLASS=A //STEP01 EXEC PGM=BSEMVLT //VAULT DD DSN=BSEM.PROV.VAULT,DISP=SHR //ARCHIVE DD DSN=BSEM.ARCH.V001,DISP=NEW //SYSPRINT DD SYSOUT=*
JOB0001BSEM Vault SealCOMPLETE JOB0002Provenance ArchiveCOMPLETE JOB0003Artifact VerifyRUNNING JOB0004Batch ExportQUEUED
Repository Structure
bio-semantics/
src/
semantics.py
test_semantics.py
dashboard.html
spec/
types.ts
contract.md
system_prompt.md
templates/
workflow.rpgle
vault.jcl
Biological Observations are not the same thing as Model Inference
Model Inference is not the same thing as Semantic Transformation
Semantic Transformation is not the same thing as Binary Representation
Binary Representation can be represented as Formal Machine State
Formal Machine State can be verified through PTM Transitions
Selected Transformations can be represented through Quipper
RPG and JCL provide Integration Infrastructure
Immutable Provenance connects Every Artifact