$npx -y skills add ma-compbio-lab/SkillFoundry --skill numcodecs-compression-decompression-starterUse this skill to round-trip a small integer matrix through a deterministic numcodecs compressor and inspect the encoded payload summary.
| 1 | # numcodecs Compression / Decompression Starter |
| 2 | |
| 3 | Use this skill to round-trip a small integer matrix through a deterministic `numcodecs` compressor and inspect the encoded payload summary. |
| 4 | |
| 5 | ## What This Skill Does |
| 6 | |
| 7 | - reads a tiny tabular integer matrix |
| 8 | - encodes the matrix bytes with `numcodecs.Blosc` |
| 9 | - decodes the payload and verifies lossless recovery |
| 10 | - reports shape, dtype, encoded byte count, and simple row statistics |
| 11 | |
| 12 | ## When To Use It |
| 13 | |
| 14 | - when you need a starter for `compression-decompression` |
| 15 | - when you want a repo-local `numcodecs` example outside the full Zarr stack |
| 16 | - when you need a small regression fixture for round-trip codec checks |
| 17 | |
| 18 | ## Run |
| 19 | |
| 20 | ```bash |
| 21 | ./slurm/envs/data-tools/bin/python skills/data-acquisition-and-dataset-handling/numcodecs-compression-decompression-starter/scripts/run_numcodecs_compression_decompression.py --input skills/data-acquisition-and-dataset-handling/numcodecs-compression-decompression-starter/examples/toy_matrix.tsv --out scratch/numcodecs/toy_matrix_summary.json |
| 22 | ``` |
| 23 | |
| 24 | ## Notes |
| 25 | |
| 26 | - The codec configuration is fixed so the canonical asset stays stable. |
| 27 | - The example is intentionally tiny and integer-only; validate codec choices on real payloads before production use. |