Check contrasts before you fit.

Audit an exported model matrix and report an exact proof for each contrast. Check that sample IDs in an optional feature-table header agree with the design.

Explore an audit report
Export
The matrix you actually intend to fit, with its coefficient names and sample IDs.
Audit
The requested contrasts and, optionally, the feature table’s sample header.
Verify
The saved rank and contrast certificates against the same original inputs.

Read an audit report

Choose a synthetic example or open a proof receipt or counts-only report from the CLI. Files you open stay in this browser. Use the CLI to verify full proofs against the original inputs.

Synthetic examples

Use the viewer offline

Open site/index.html to inspect a local receipt. To use the bundled examples offline, run python -m http.server 8000 --directory site --bind 127.0.0.1 from the checkout and open the local viewer.

Run it locally

Python 3.11 or newer. Download the 0.2.0 wheel from GitHub Releases. This version adds aggregate-only output with audit --counts-only.

python -m pip install ./omics_design_audit-0.2.0-py3-none-any.whl

Audit the confounded example

From the repository root, run the command below. It writes a new receipt and exits 1 because one contrast is blocked. Omit --output to write JSON to standard output.

omics-design-audit audit --model examples/confounded/model.csv --contrasts examples/confounded/contrasts.csv --feature-table examples/confounded/feature-table.tsv --output proof.json

Verify the receipt

Use the same original model, contrasts and, when supplied, feature table. A valid certificate for a blocked contrast verifies successfully.

omics-design-audit verify proof.json --model examples/confounded/model.csv --contrasts examples/confounded/contrasts.csv --feature-table examples/confounded/feature-table.tsv

Exit codes

CodeAuditVerify
0All contrasts estimable and supplied sample IDs agree.Rank and contrast certificates check against the supplied inputs.
1At least one blocked contrast or a sample header mismatch. JSON is still emitted.—
2Input, file or arithmetic error.Input error, mismatched inputs or failed certificate check.
Input files and compatibility
Model matrix
UTF-8 CSV or TSV. Begin with sample_id followed by unique coefficient names. Use one row per sample, up to 512 rows and 64 coefficient columns.
Named contrasts
Start with contrast followed by the same coefficient names. Columns match by name and may be in a different order. Supply up to 32 nonzero contrasts with distinct names.
Numeric values
Use integers, plain decimals, or fractions such as 1/3. The tool interprets the values you exported exactly.
Optional feature table
The first header column identifies features and the remaining columns identify samples. The audit checks the header only and records a permutation when the same sample IDs are in a different order.

Export an explicit matrix from software such as R’s model.matrix(). Preserve the sample IDs, coefficient names and coding used by your intended model.

What the proof establishes

For a model matrix X and contrast c, the contrast is estimable exactly when c lies in the row space of X.

Row-space weights

Xᵀw = c

The recorded weights w combine the sample rows to reconstruct the contrast. This certifies estimability.

Null-space witness

Xv = 0, cᵀv ≠ 0

The direction v changes the contrast while leaving the fitted values unchanged. This certifies that the contrast is blocked.

Receipt format and scope

omics-design-audit/v1 records SHA-256 digests of the model and contrast files, named contrast vectors, exact rational proof strings, and optional feature-header alignment. The CLI checks rank using an invertible minor and independent null-space vectors, then checks each contrast certificate against the original matrix.

Estimability depends on the supplied coding. Model fit, statistical power and biological interpretation require separate evidence.