Did the counts survive the export?
Compare two sparse Matrix Market bundles by literal feature and observation IDs. Trace differences to exact coordinates, even when shape and totals agree.
A matrix and both label files Keep the ordered feature and observation IDs with each export. Declare which axis is stored as rows.
The viewer opens JSON output from counts-matrix-receipt compare.
- Comparison
- Changed coordinates
- Feature IDs
- Observation IDs
Exact count changes
ID alignment
IDs use the literal labels from the sidecar files. Order is reported separately from ID membership.
File representation
Raw dimensions and triplets describe each export as written. The semantic fingerprint combines aligned counts and both ID sets.
Fingerprints
Make a receipt
Keep each .mtx file with the feature and observation IDs from the same export.
Choose a release archive
These portable binaries are from version 0.4.0. Choose the operating system and processor where you will run the command.
Download the 0.4.0 checksum manifest with the archive. Verify your archive before extracting it. Check for newer releases.
Check the SHA-256 and run the tool
Replace ARCHIVE with the filename you downloaded. Compare the checksum against the line for that exact filename in SHA256SUMS.txt.
- Windows PowerShell
Get-FileHash -Algorithm SHA256 -LiteralPath 'ARCHIVE'- macOS Terminal
shasum -a 256 'ARCHIVE'- Linux shell
sha256sum 'ARCHIVE'
Once the checksum matches, extract the archive and open a terminal in the extracted folder. Run .\counts-matrix-receipt.exe --version on Windows or ./counts-matrix-receipt --version on macOS and Linux. The version 0.4.0 binary prints v0.4.0.
Build from source
Use Go 1.24 or newer in the repository checkout. Repository source · Versioned source archives
go build -o counts-matrix-receipt ./cmd/counts-matrix-receipt
Describe each bundle
Each JSON manifest points to the matrix and both ordered sidecar files. Choose feature-by-observation when features are rows or observation-by-feature when observations are rows. The feature ID is the first TSV field. The observation file has one ID per line.
{
"matrix": "matrix.mtx",
"features": "features.tsv",
"observations": "observations.tsv",
"orientation": "feature-by-observation"
}
Compare by ID
./counts-matrix-receipt compare --baseline examples/handoff/baseline.json --candidate examples/handoff/drift.json --format json > receipt.json
Open the JSON receipt above. Exit 0 means equal, 1 means counts or axis membership differ, and 2 means invalid input or an operational error. The receipt reflects the supplied export bytes and declared axis labels.
Supported files and limits
Use general coordinate Matrix Market with nonnegative integers. The CLI also accepts a real field when every stored count is exactly integral. Files may be plain or gzip-compressed.
The default comparison accepts up to 1 million triplets and 256 MiB per matrix. Pass --scratch-dir with an existing local folder to compare up to 10 million triplets and 1 GiB per matrix. Each sidecar is limited to 250,000 IDs and 64 MiB. Byte limits apply to stored and decoded inputs. This viewer opens receipts up to 16 MiB.
Share aggregate findings
./counts-matrix-receipt compare --baseline examples/handoff/baseline.json --candidate examples/handoff/drift.json --counts-only > handoff.summary.json
The summary includes the decision, dimensions, structural counts, and the size of each difference. Use the detailed JSON receipt for verify. Check whether the remaining totals are appropriate to share.
Verify a saved receipt
./counts-matrix-receipt verify --report receipt.json --baseline examples/handoff/baseline.json --candidate examples/handoff/drift.json
Verification reruns the comparison against both local bundles. Exit 0 means the saved receipt matches, even if it reports different counts. Exit 1 means the receipt differs. Use --scratch-dir for the disk-backed path.