Donor Split Audit

Check the splits you exported.

See where a declared donor, sample, section, or cell appears on both sides of a benchmark split. Inspect the source rows and check which identities are unresolved.

Inspect a receipt

Selected files stay on this device.

Split audit receipt

Open a JSON receipt or load the synthetic example.

The viewer opens receipts written by donor-split-audit audit.

Run the audit

Check the TSV that will be used for training, validation, and testing. Save the audit receipt with the exported split.

Install the CLI

Use Python 3.11 or newer. Download the wheel from the latest release and install it with python -m pip install. From the archived source and examples, run:

python -m pip install .

Check the exported partitions

The TSV header contains fold, role, study, donor, sample, section, cell, and label. Use a blank field for an unresolved value. Each fold needs train and test rows.

donor-split-audit audit examples/assignments.tsv --report receipt.json --require donor

Repeat --require to check additional levels. Use --cell-scope to define the cell ID namespace as study, sample, or section. The default is sample.

Check links between studies

When two approved study exports use different labels for the same donor, supply a TSV with study, donor, and canonical_donor. The audit records linked donors as a separate identity level. Study namespaces still apply to the original donor, sample, section, and cell checks.

donor-split-audit audit examples/cross-study-assignments.tsv --donor-crosswalk examples/donor-crosswalk.tsv --report linked.json

Use --donor-crosswalk with the same mapping for verification. An unmapped donor leaves the linked level incomplete unless that level already contains a crossing.

Replay a receipt

donor-split-audit verify examples/assignments.tsv --report receipt.json

The CLI reruns the audit from the exact export. Open the receipt in the viewer to inspect the reported decision and evidence. The browser accepts receipts up to 32 MiB.

Read the split decision

Blocked means a required identity level crossed partitions. Incomplete means a required level has unresolved identities and no known crossing. Eligible means the required levels are fully resolved with no crossings observed under the supplied namespaces.

Audit exits are 0 for eligible, 1 for blocked or incomplete, and 2 for invalid input. Add --counts-only for a receipt without underlying keys and witnesses. Review its aggregate counts and input fingerprints before sharing.

Find the lines with missing IDs

donor-split-audit locate-unresolved examples/assignments.tsv --require donor

Use the same required levels, cell scope, and crosswalk as your audit. The example points to three blank donor fields on lines 14–16. View the synthetic locator output