Check metadata after conversion.
Compare typed observation snapshots or check how an exported observation axis aligns with metadata. See which changes the declared policy or binding allows.
- AnnData
.obs- SingleCellExperiment
colData()
Review a receipt
Load the worked case or open a saved JSON receipt.
Selected files stay on this device.
Open a receipt from cellmeta-receipt check or cellmeta-receipt check-axis.
- Policy verdict
- Unexpected changes
- Expected changes
- Observations / columns
Findings
There are no recorded details for this filter.
Snapshot and policy fingerprints
Make a receipt
Export metadata from both objects. Keep the input snapshots and the conversion policy with the receipt so the comparison can be reproduced.
Install and export
Use Python 3.11 or newer. Install the v0.4.0 wheel, or run this command from the unpacked v0.4.0 source and fixtures.
python -m pip install .
The H5AD adapter reads .obs. The R snapshot exporter reads colData() or Seurat observation metadata from a trusted open object. The comparison works on typed snapshots of observation metadata.
Replace column metadata in R
Use the helper on an open SummarizedExperiment or SingleCellExperiment and a native S4Vectors DataFrame with observation IDs as row names. It requires a complete, unique ID match and puts the incoming rows in experiment order before replacing colData(). Assay values and order stay intact.
source("integrations/replace_r_coldata.R")
updated <- cellmeta_replace_coldata(x, incoming)
Run from the unpacked source root. Include any existing columns your workflow still needs, such as labels or size factors.
Worked R example · Download v0.4.0 source ZIP · v0.4.0 archive DOI
Compare the snapshots
cellmeta-receipt check fixtures/before.json fixtures/after-flat.json > receipt.json
The default policy flags every recorded difference. A policy can specify an expected rename, permit row reordering, or declare types and category levels. Scalar value changes are recorded independently. Open the saved receipt above.
To replay the typed control, pass fixtures/after-control.json as the second snapshot and add --policy fixtures/allow-row-reorder.json.
A compatible report exits with status 0. Unexpected differences exit with status 1. Invalid input exits with status 2.
Share a summary
Add --counts-only to omit observation IDs, column names, and values from the findings. The receipt still contains totals and fingerprints. Review them before sharing. The browser accepts JSON receipts up to 32 MiB.
Check observation alignment
cellmeta-receipt check-axis metadata.json observations.tsv --binding positional --counts-only > axis-receipt.json
Use keyed binding when the consumer joins by literal ID. Use positional binding when it pairs rows by order. The observation sidecar has one literal ID per line. Axis preflight guide