HGNC Release Audit

Human gene nomenclature

See which annotations changed.

Compare the same result rows against two pinned HGNC releases. Trace renames, review ambiguous matches, and keep every original identifier in view.

Release comparison

Open a receipt or inspect the worked example.

Your file stays on this device.

A saved receipt shows the input row, its resolution in each release, and the match evidence.

Command line

Generate a receipt

Use a pinned manifest, the archived HGNC files it lists, and a tab-separated results table. Keep those inputs with the receipt so the comparison can be reproduced.

Install the CLI

Download the binary for your system from GitHub Releases. To build it yourself, get the source repository and run this command from its root with Go 1.25 or newer.

go build ./cmd/hgnc-release-audit

Compare two releases

For the worked example, follow the example setup and download the files pinned in its manifest from the official HGNC archive. Pass the directory holding those files to --sources.

The example TSV uses row_id, kind (symbol or hgnc_id), and identifier. Extra columns are permitted. If row_id is absent, the audit uses the input line number.

./hgnc-release-audit audit --manifest examples/sources.json --sources /path/to/archives --baseline 2024-10-01 --candidate 2026-10-06 --results examples/results.tsv --memberships examples/memberships.tsv --output receipt.json

On Windows, run .\hgnc-release-audit.exe. Omit --output to write JSON to standard output. Add --fail-on-attention to write the receipt and exit with status 1 when any row needs review. The audit exits with 2 on errors.

Verify a saved receipt

Replay the audit against the original inputs and check that the generated JSON matches the saved receipt byte for byte.

./hgnc-release-audit verify --manifest examples/sources.json --sources /path/to/archives --results examples/results.tsv --memberships examples/memberships.tsv --receipt receipt.json

Check exported identifier pairs

Use check-pairs on a table with both symbol and hgnc_id. The viewer shows the pairing status alongside each lookup, so you can see conflicts even when both identifiers resolve on their own. Run the paired example.

Audit a fixed group join

The optional --memberships file uses group_id and hgnc_id columns. Each release resolves the input rows independently before joining to the same group list. The receipt shows which lines entered or left the join, with exact sums when a weight column supplies every joined weight.

Stable accessions and unique approved symbols qualify by default. Add --include-previous-symbols to admit unambiguous previous-symbol matches. When verifying the receipt, supply the same --memberships file.

Read the evidence

Use Changed rows to find changes reported by the audit. Use Rows needing review to find rows the audit flagged, such as ambiguous candidates or reported withdrawals. Rows with repeated identifiers remain separate.

The release columns show why each candidate matched. Review the full candidate list when a row is ambiguous. The withdrawn record can include reported replacement candidates for review.

The viewer accepts a JSON receipt up to 32 MiB. Use the original input table, release files, and manifest to rerun the audit.