# VERA Omics Pipeline Selection and Build Plan

**Controlled baseline:** 1.0  
**Date:** 2 September 2026  
**Scope:** Reconciled AXIOM equipment baseline; whole-genome sequencing; arrays; shotgun metagenomics; pharmacogenomics; methylation; clinical chemistry; clinical mass spectrometry; haematology; urinalysis; and organic acids  
**Implementation priority:** whole-genome sequencing and shotgun metagenomics

## 1. Executive decision

VERA must preserve the earliest instrument-supported evidence, create independently reproducible open derivatives, and release only governed findings to the GenetiQ knowledge graph. It must not depend on a vendor PDF or a vendor's downstream interpretation as the sole evidence source.

This does **not** mean bypassing acquisition safety or reverse-engineering proprietary signal formats. Instrument control and source decoding remain vendor-supported where required. The production boundary is:

1. The instrument and its validated acquisition software complete the run.
2. The VERA Edge adapter reads the completed output through a vendor-supported, read-only interface.
3. Native evidence is checksummed and sealed before interpretation.
4. A recorded vendor decoder produces FASTQ, BAM, mzML, or another open derivative where raw signal is not directly usable.
5. Digest-pinned independent pipelines perform QC, calling, profiling, annotation, and normalisation.
6. A separate reviewer releases findings. Full call sets remain in immutable object storage and are addressed through GA4GH DRS.
7. The knowledge graph receives only released evidence, provenance, uncertainty, intended use, consent, and revocation state.

The immediate selections are:

| Lane | Canonical candidate | Independent comparator | State |
|---|---|---|---|
| AVITI and MGI short-read WGS | NVIDIA Parabricks 4.7.1 `deepvariant_germline` + class-specific CNV/SV/STR callers + Ensembl VEP | Open BWA-MEM2 + DeepVariant, GATK HaplotypeCaller, and class-specific comparators | Ready for local validation on each platform independently |
| PacBio Revio HiFi WGS | PacBio HiFi-human-WGS-WDL 4.0.0 candidate | Parabricks `pacbio_germline` for small-variant comparison plus component truth sets | Ready for local validation |
| ONT PromethION 48 WGS | Pinned Dorado models + EPI2ME `wf-human-variation` | Parabricks `ont_germline` for small-variant comparison plus Clair3/Sniffles2 | Qualification required; full official workflow remains x86-only |
| Shotgun metagenomics | KneadData + MetaPhlAn 4.2.6 + HUMAnN stable v3 | Kraken2 2.17.1 + Bracken | Ready for local validation |
| PGx | Gene-aware upstream caller selected per gene/platform + PharmCAT interpretation | Aldy/PyPGx and specialised caller comparison | Qualification required |
| Methylation | Route by source chemistry and platform | Platform-specific | Blocked pending exact AXIOM assay contract |
| Illumina iScan arrays | Preserve IDAT + scan metadata/images; SeSAMe candidate for methylation or qualified GenomeStudio/AutoConvert branch for genotyping | minfi or assay-specific comparator | Blocked pending BeadChip and assay contract |
| Roche cobas pure | Vendor-supported host-interface result, flags, QC, calibration, reagent-lot and audit evidence | Deterministic UCUM/LOINC normalisation; vendor report retained as comparator | Qualification required |
| Roche cobas i 601 mass spectrometry | Vendor-supported source result and QC evidence from the validated Ionify method | Deterministic normalisation; no independent re-quantitation until native export is proven | Blocked pending interface contract |
| Sysmex XR-1000 haematology | Vendor-supported result plus flags, scattergrams/extended data, QC and reagent evidence where licensed | Deterministic normalisation; report comparator | Blocked pending interface contract |
| Sysmex UN-Series urinalysis | Vendor-supported chemistry/sediment result, flags, images/scattergrams, QC and lots where supported | Deterministic normalisation; report comparator | Blocked pending installed module/interface contract |
| Organic acids | Native capture + mzML + validated targeted quantitation | MZmine/OpenMS comparison | Blocked pending exact method contract |

The machine-readable decision record is `config/pipelines/omics-reference-stacks.v1.json`. It checksum-binds the seven-row AXIOM equipment workbook, the VERA analysis-layer decision record, and the owner-confirmed PacBio Revio and Sysmex XR-1000 additions. Illumina iScan appears in both the workbook and owner confirmation and is counted once: **nine unique instrument families and twelve governed analytical lanes**. It is visible in the pipeline console and exposed through authenticated `GET /api/v1/reference-stacks`. A reference stack is not executable until its exact software builds, models, databases, parameters, fixtures, and reviewers exist in the operational registry.

## 2. FASTQ, BAM, gVCF, and VCF are different evidence levels

The ingestion contract must not describe FASTQ and VCF as equivalent inputs.

| Input | What it preserves | What can be replayed | Production disposition |
|---|---|---|---|
| Native run folder / POD5 / CAL / Bases | Earliest retained instrument evidence | Source decoding and downstream analysis, subject to compatible vendor decoder | Canonical source evidence |
| FASTQ | Base calls and qualities | Alignment and downstream calling | Canonical analytical input for short-read pipelines |
| BAM/CRAM | Aligned reads and read-level evidence | Qualified downstream calling if read groups, reference, and provenance are complete | Qualified analytical input |
| gVCF | Variant and non-variant blocks from one caller | Joint genotyping and some callability interpretation | Derived evidence, not full replay |
| VCF | Sites emitted by a caller | Annotation of included calls | `DERIVED_ONLY`; cannot support complete negatives or recover omitted classes |
| PDF report | Human-readable vendor interpretation | Nothing analytical | `REPORT_ONLY_BLOCKED` as sole evidence |

When only VCF is available, the user interface must say that the analysis is incomplete. It must not imply that absent calls are negative, and it must not offer CNV, SV, repeat, phasing, CYP2D6, HLA, or callability claims unless those evidence classes were supplied separately.

## 3. Whole-genome sequencing architecture

### 3.1 Short-read lane: Element AVITI and MGI DNBSEQ

**Capture.** Preserve the complete AVITI Bases run folder or MGI CAL run folder, run parameters, sample sheet, metrics, firmware/software identity, and logs. Run the supported Bases2Fastq or MGI converter only after the source manifest is sealed. Reconcile read counts with instrument metrics.

**Read QC and identity.** Record read count, Q-score distributions, adapter content, duplication semantics, insert size, contamination, sample identity, sex concordance only when consented, and kinship/duplicate checks. VerifyBamID2 is the contamination candidate after alignment.

**Alignment and small variants.** NVIDIA Parabricks 4.7.1 `deepvariant_germline` is the first accelerated primary candidate for the DGX Spark edge. Its image digest, DeepVariant model, reference bundle, flags and licence record are immutable validation inputs. The open BWA-MEM2 2.3 + DeepVariant 1.10 route and GATK HaplotypeCaller 4.6.2.0 remain separately labelled comparators so acceleration can be checked independently. AVITI and MGI are validated separately against NIST Genome in a Bottle because a model that performs well on one short-read technology is not automatically qualified on another.

**Complex variants.** A small-variant VCF is insufficient. The reportable scope needs independently validated lanes for:

- germline structural variants;
- copy-number changes;
- tandem repeat expansions;
- mitochondrial variants and heteroplasmy where in scope;
- phasing where it affects interpretation;
- pharmacogene-specific CNV, hybrids, HLA, and mitochondrial calls.

The initial candidates in the registry are Manta, GATK germline CNV, and ExpansionHunter. These are candidates, not blanket approvals. A variant class is absent from the consumer report until its IRENA platform-specific sensitivity, precision, reportable regions, and confirmation policy are approved.

**Annotation and classification.** Ensembl VEP release 116 is the candidate consequence layer. ClinVar, allele-frequency databases, disease resources, and guideline sources are frozen by release date and checksum. VEP output and ClinVar records are evidence inputs; they are not a substitute for expert classification. ClinVar is an assertion archive and itself warns against classifications based solely on computational predictions.

### 3.2 PacBio Revio HiFi lane

The official PacBio HiFi-human-WGS-WDL 4.0.0 is the strongest production starting point because it is a tested, versioned workflow for alignment, small variants, structural variants, tandem repeats, phasing, and QC. VERA mirrors and approves every component image rather than resolving mutable remote tags at runtime. Parabricks 4.7.1 `pacbio_germline` is an arm64-capable validation comparator for alignment and small variants; it does not replace the full PacBio workflow's SV, repeat, phasing, mitochondrial or methylation branches.

Native methylation is a separate measurement product. Jasmine and MethBat replace the deprecated pb-CpG-tools line for the new baseline. A CpG measurement is not a biological-age or organ-age result until a separately licensed and validated model has been qualified for the tissue, assay, cohort, age range, and batch process.

### 3.3 ONT PromethION lane

POD5 is the canonical raw signal. Dorado must use explicit basecalling and modified-base model files whose hashes, chemistry, and sampling-rate compatibility are recorded. Automatic model selection is not reproducible enough for a released clinical definition.

The first candidate downstream workflow is EPI2ME `wf-human-variation`, covering SNV, SV, CNV, STR, phasing, and modified bases. Its official support matrix states that ARM processor support is false. Therefore the unmodified workflow cannot be represented as production-ready on NVIDIA DGX Spark's arm64 host. The initial deployment must use a qualified x86_64 GPU node or independently validated arm64 replacements. Parabricks 4.7.1 `ont_germline` is an arm64-capable small-variant comparison lane only; it does not replace EPI2ME's SV, CNV, STR, phasing or modified-base products. The UI and scheduler must expose these boundaries as architecture and scope gates.

## 4. Shotgun metagenomics architecture

There is no universal microbiome score and no single perfect profiler. The production lane therefore keeps a canonical profile and a separately labelled comparator.

### 4.1 Mandatory wet controls

Every extraction and library batch must bind:

- extraction blank;
- no-template control;
- positive mock community;
- technical replicate when required by the protocol;
- a defined spike-in when absolute abundance is claimed.

No patient sample is released if the controls are missing or outside acceptance policy. NIST RM 8048 or another approved whole-stool reference material anchors inter-run and inter-site validation.

### 4.2 Read processing

The short-read candidate is KneadData with fixed adapter, trimming, Bowtie2, and host-reference assets. Human reads are treated as restricted data. The host-depleted derivative retains lineage to the sealed source; the source is not destroyed.

Short- and long-read microbiome methods are qualified separately. A long-read host-depletion and profiling definition is not silently substituted for the short-read stack.

### 4.3 Canonical taxonomic and functional products

**Taxonomy:** MetaPhlAn 4.2.6 is the canonical marker-based candidate. Kraken2 2.17.1 with matching Bracken and a fully reproducible database build is the independent high-sensitivity comparator. Their values are not averaged. Material disagreement and low-abundance-only detections are visible to reviewers.

**Function:** HUMAnN stable v3 is the candidate for gene families and pathways. ChocoPhlAn, UniRef, and MetaCyc assets are immutable report inputs. Alpha releases are prohibited from a production definition.

**AMR:** AMRFinderPlus is the first candidate and RGI/CARD is a comparator with different database semantics. AMR is research or informational until the intended-use validation and review policy permit a stronger claim.

**Assembly:** `nf-core/mag` is a research branch for assembly and metagenome-assembled genomes. It is not the canonical patient summary in version 1.

### 4.4 Correct measurement language

- Relative abundance is compositional. A rise can result from another taxon falling.
- Absolute abundance requires validated spike-in, qPCR, flow cytometry, or another quantitative method.
- A single stool sample cannot define a personal range.
- A longitudinal baseline requires repeated samples collected and processed under comparable conditions.
- Database snapshot changes can create apparent biological changes; cross-snapshot comparison must be qualified.
- Cross-axis relationships default to `association_only`. Causal language requires governed mechanistic or clinical evidence.

The product must not emit an unexplained “dysbiosis score.” It may show microbial composition, functional pathways, QC, changes from a comparable personal baseline, and reviewed action references with plain-language limits.

## 5. Pharmacogenomics decision

PharmCAT should remain the guideline interpretation layer. Replacing it wholesale would not solve the main problem, which is upstream calling at complex loci.

The PGx lane should:

1. qualify Aldy, PyPGx, StellarPGx, and any other specialist caller per gene and sequencing platform;
2. provide validated outside calls to PharmCAT for CYP2D6, HLA-A, HLA-B, MT-RNR1, and other loci where required;
3. validate against GeT-RM or equivalent characterised material;
4. preserve genotype, phenotype, guideline version, medication context, uncertainty, and reviewer identity separately;
5. require pharmacist or clinician governance before a medication action is released.

PharmCAT explicitly cautions that clinical CYP2D6 calling should not rely on VCF alone because copy number, deletions, duplications, hybrids, and phasing are material. Its current guidance highlights StellarPGx for WGS BAM/CRAM and cites comparison against GeT-RM consensus samples, making StellarPGx a strong specialist candidate. The product remembered as a Chinese “Cell something” still has not been reliably identified; StellarPGx may be the remembered sound, but the architecture does not assume that. Once the exact product identity is confirmed, it enters the same legal, technical, benchmark, and deployment assessment as every other candidate.

## 6. Methylation decision

“TrueAge-like” describes a consumer outcome, not a source assay. The team must first provide one machine-readable assay contract stating whether the source is:

- array IDAT;
- bisulfite sequencing;
- enzymatic methyl sequencing;
- TAPS;
- PacBio HiFi native methylation;
- ONT POD5 with a modified-base model;
- a commercial laboratory report only.

The corresponding candidate branches are SeSAMe/minfi for arrays, `nf-core/methylseq` for sequencing chemistries, Jasmine/MethBat for PacBio, and pinned Dorado plus modkit for ONT. The exact clock then needs model weights, licence, tissue, normalisation, batch controls, training cohort, age range, uncertainty, calibration, repeatability, and external validation. “Organ age” is a separate claim and cannot be inferred from a generic epigenetic age output.

Until this contract is supplied, methylation remains `BLOCKED_PENDING_ASSAY_CONTRACT`.

## 7. Organic-acid decision

The production source is the native chromatography and mass-spectrometry acquisition package, not a PDF. Convert a verified copy to mzML using a qualified converter. MZmine 4 is the first transparent processing candidate and OpenMS is the comparator/automation alternative.

For targeted clinical concentrations, an independent pipeline cannot replace validated vendor quantitation until the exact assay passes accuracy, precision, linearity, carryover, recovery, matrix effect, stability, LOD, LOQ, interference, retention-time, mass-accuracy, calibrator, and internal-standard validation. Untargeted feature intensity is not a calibrated concentration, and library similarity alone is not confirmed analyte identity.

Until IRENA supplies the exact instrument, method, analyte list, matrix, calibration, and acceptance criteria, this lane remains `BLOCKED_PENDING_METHOD_CONTRACT`.

## 8. Reconciled AXIOM instrument lanes

### 8.1 Illumina iScan

The canonical scanner evidence is the paired red/green IDAT output together with scan metadata, effective configuration, run metrics and retained image/audit artefacts available from the installed system. A GTC, genotype table, normalised beta value or PDF is a derivative, not a substitute for IDAT. The assay contract must identify the exact BeadChip, manifest, cluster file, sample sheet, intended use and control thresholds. Genotyping and methylation are distinct branches and are never inferred from the scanner name alone.

### 8.2 Roche cobas pure

VERA captures a vendor-supported host-interface result and its flags, units, standard ranges, quality controls, calibration, reagent lots, instrument/module identity and audit context. It then performs deterministic identity, UCUM unit and LOINC terminology normalisation while retaining the unmodified source message. It does not bypass instrument control or reconstruct optical/electrochemical signals. Local qualification is assay-menu and module specific.

### 8.3 Roche cobas i 601

Roche identifies cobas i 601 as a clinical mass-spectrometry analyser using automated sample preparation and triple-quadrupole detection. It therefore remains an AXIOM mass-spectrometry lane, not an immunoassay misclassification. VERA may capture source results, chromatographic/transition evidence, flags, QC, calibration, lots and audit events only to the extent supported by the licensed interface/export. Independent re-quantitation is blocked until the exact Ionify assay and native-data contract are supplied and validated.

### 8.4 Sysmex XR-1000

The XR-1000 lane covers the installed CBC/differential configuration and only those optional analyses confirmed on the site asset. Source evidence includes numeric results, units, flags, QC, reagent lots and, where the licensed interface exposes them, scattergrams or extended research data. A PDF or flattened LIS message cannot support independent flag reconstruction. Activation requires serial number, analyser configuration, middleware, host-interface specification and local carryover/precision/linearity/flag concordance evidence.

### 8.5 Sysmex UN-Series

“UN-5000” is treated as an installed urinalysis configuration that must be resolved to its exact chemistry, sediment and digital-imaging modules. VERA preserves module-level identity, results, flags, QC, lots and image/scattergram evidence where supported. No lane is activated from the family label alone.

These five lanes use vendor-supported source acquisition because their proprietary instrument signals cannot be responsibly reverse-engineered into clinical evidence. The independent value is preservation, reconciliation, normalisation, comparison, provenance and fail-closed release, not an unsupported claim that all vendor acquisition software can be replaced.

## 9. Consumer evidence layers

The consumer product must keep these layers visually and semantically separate:

1. **Clinical and inherited findings.** Expert-reviewed classifications with consent, confirmation state, evidence sources, uncertainty, and care-team action.
2. **Pharmacogenomics.** Genotype, phenotype, affected medication, guideline version, current-medication context, and pharmacist/clinician review.
3. **Risk and lifestyle traits.** Clearly informational, using a distinct evidence score and a statement of the cohorts it applies to. It is not ClinVar-based diagnosis.
4. **Research evidence.** Novel or unvalidated findings visible only under the approved research workflow.

For each patient-facing item, VERA stores:

- the plain-language statement;
- what was measured;
- what other evidence influenced the result;
- the canonical caller/profile and database versions;
- uncertainty and analytical limitations;
- consent and intended-use scope;
- whether confirmation is required;
- the reviewer and release decision;
- an action-policy reference, not free-form model advice;
- revocation state.

Actions are policy outputs reviewed by the appropriate clinician, pharmacist, genetic counsellor, or dietitian. A frontier model may summarise released evidence and cite it, but it must not invent a diagnosis, prescribe independently, or update its weights from a patient upload.

## 10. Personalised baselines and cross-axis evidence

Personalisation is longitudinal, not a numerical trick applied to a first test.

- Germline variants are stable findings and do not receive “personal ranges”.
- Quantitative laboratory markers may gain a personal baseline after repeated comparable measurements and a documented health/context window.
- Microbiome baselines require comparable collection, preservation, extraction, library, sequencing technology, depth, pipeline, and database snapshot.
- Medication, diet, infection, travel, antibiotics, and relevant clinical events are covariates rather than hidden model inputs.
- Cross-axis signals link released genomic, microbiome, organic-acid, blood, medication, phenotype, and wearable evidence by identifier and time.
- The graph records `association_only` unless mechanistic or clinical validation supports a stronger causal state.

Full BAM/CRAM/VCF, taxon tables, pathway tables, and raw reads stay in immutable object storage. Loading millions of variants or taxa as graph nodes would make governance and revocation harder without improving the released clinical explanation.

## 11. Production implementation sequence

### Step 0: freeze the first two assay contracts

The laboratory and Gauss team provide, for one WGS run and one shotgun run:

- exact instrument asset and serial;
- firmware and acquisition software;
- assay protocol and version;
- sample sheet and pseudonymous accession mapping;
- complete native output folder/file inventory;
- expected sample count and controls;
- current vendor report for comparison only;
- known-positive, known-negative, and reference-material samples;
- transfer path and read-only access method;
- expected turnaround and volume.

No developer should infer missing details from filenames.

### Step 1: capture native evidence

1. Configure a read-only edge watcher for a completed run state.
2. Create an edge capture manifest.
3. Stream native objects into immutable quarantine custody.
4. Independently verify size and SHA-256.
5. Reconcile the run, sample sheet, accession, and instrument identity.
6. Prove that VERA cannot write to the instrument run folder.

### Step 2: register exact software and references

1. Create one software package per tool or controlled workflow.
2. Upload source or licensed installer through the isolated build plane.
3. Generate SBOM, vulnerability report, signature, and immutable OCI digest.
4. Register every model and database as a checksum-bound reference asset.
5. Reject mutable tags and automatic model/database downloads at runtime.
6. Record target CPU/GPU architecture and resource limits.

### Step 3: instantiate candidate definitions

Translate the reference-stack candidates into inactive `PipelineDefinition` records. Each stage consumes only declared upstream artefact classes and publishes outputs through the workload-identity custody endpoint. The pipeline cannot write directly to the knowledge graph.

### Step 4: execute validation campaigns

**WGS:** GIAB stratified precision/recall, callability, contamination, sample identity, inter-run, inter-operator, cross-lot, and platform-specific variant-class validation. Include hard regions, medically relevant genes, CNV, SV, repeat, mitochondrial, and PGx loci in scope.

**Shotgun:** NIST whole-stool or approved mock communities, extraction blanks, no-template controls, spike-ins, inter-run, inter-operator, cross-lot, storage/transport, host depletion, taxonomic false positives, abundance error, functional-profile reproducibility, and database-change challenges.

One severe identity, contamination, control, or provenance failure blocks approval regardless of an aggregate score.

### Step 5: activate one platform and one assay at a time

Quality and laboratory director approvals are append-only and made by different identities. Start with one short-read WGS platform and one short-read shotgun protocol. PacBio and ONT are separate activations. Do not activate “WGS” globally.

### Step 6: release evidence to the twin

1. Generate the genomic or metagenomics evidence package.
2. Validate it against the published JSON Schema.
3. Reconcile every DRS object, software build, reference asset, sample, run, and consent scope.
4. Require independent review.
5. Write only the released KG projection.
6. Preserve a checksum-bound release and support append-only revocation.

## 12. Deliverables now present in the repository

- `config/pipelines/omics-reference-stacks.v1.json`: checksum-bound equipment baseline and twelve governed candidate stacks;
- `src/lib/contracts.ts`: runtime Zod validation;
- `src/lib/omics-reference-stacks.test.ts`: critical safety invariants;
- `src/app/api/v1/reference-stacks/route.ts`: authenticated registry API;
- `src/app/pipelines/page.tsx`: operator visibility;
- `contracts/genomic-evidence-package.schema.json`: genomic release contract;
- `contracts/metagenomics-evidence-package.schema.json`: metagenomics release contract;
- `public/docs/`: controlled downloadable copies;
- `public/docs/openapi.yaml`: API surface.

## 13. Immediate decisions required from IRENA and Gauss

| Decision | Owner | Why it blocks production |
|---|---|---|
| First short-read platform: AVITI or MGI | Laboratory director + Quality | Defines source decoder, fixtures, resource sizing, and first validation campaign |
| Exact shotgun extraction/library protocol | Microbiology lead | Controls, contamination thresholds, bias, and comparability are protocol-specific |
| Absolute-abundance method | Laboratory director | Relative abundance cannot support concentration claims |
| WGS reportable scope and confirmation policy | Clinical genetics lead | Determines variant classes, regions, negatives, and consumer output |
| Methylation source chemistry and raw files | Assay owner | Selects the analytical branch and age-model requirements |
| Exact iScan BeadChip, manifest, cluster file, software and intended use | Genomics/epigenetics lead | Separates genotyping from methylation and defines IDAT processing and controls |
| cobas pure module software, host-interface profile and first assay menu | Chemistry lead + Roche | Defines source fields, units, flags, QC, calibration and validation scope |
| cobas i 601 Ionify assay, software and supported export/interface package | Mass-spec lead + Roche | Defines whether chromatographic/transition evidence is available and whether independent re-quantitation is possible |
| XR-1000 serial/configuration, middleware and host-interface package | Haematology lead + Sysmex | Defines exact channels, flags, extended evidence and local validation fixtures |
| UN-Series installed module composition and host-interface package | Urinalysis lead + Sysmex | Prevents unsupported assumptions from the family label and defines image/scattergram capture |
| Organic-acid instrument/method/analyte contract | Mass-spec lead | Required for calibration and quantitation validation |
| Exact identity of the proposed Chinese PGx product | Requestor/vendor | Prevents an evidence-free product selection |
| x86 execution node for ONT workflow | Platform engineering | Official workflow is not arm64-supported |

## 14. Acceptance definition

The first production increment is complete only when a blinded known sample can travel from a sealed native run package to an independently released evidence package with:

- no direct identifiers;
- complete checksums and DRS lineage;
- exact decoder, software, model, database, and reference identities;
- passing identity, contamination, control, performance, and callability gates;
- reproducible execution from the same inputs;
- no mutable network dependency;
- clear consumer evidence layer and limitations;
- independent reviewer identity;
- a tested revocation path;
- no direct pipeline write to the knowledge graph.

Anything less may be a useful research run, but it is not the production AXIOM evidence lane.
