Cooler hic matrix summary starter
Skill ma-compbio-lab/SkillFoundry/skills/epigenomics-and-chromatin/cooler-hic-matrix-summary-starter
A framework for discovering, compiling, and validating reusable skills for scientific agents.From the repository description
npx -y skills add ma-compbio-lab/SkillFoundry --skill cooler-hic-matrix-summary-starterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.3 KB, 308 tokens by cl100k_base, as published. Nobody here has run it
cooler Hi-C Matrix Summary Starter
Use this skill to generate or inspect a tiny Hi-C contact matrix in Cooler format and summarize its bins and pixel counts in JSON.
What it does
- Creates a deterministic toy
.coolfile with three bins and five nonzero upper-triangle pixels. - Opens the Cooler store with
cooler.Coolerand summarizes matrix shape, pixel count, and total contact count. - Can also summarize an existing Cooler file if
--inputis provided.
When to use it
- You need a runnable starter for Hi-C contact matrix formats.
- You want a small verified example before building larger chromatin-interaction workflows.
- You need a smoke-testable wrapper around
coolerin the repo-managed scientific Python environment.
Example
slurm/envs/scientific-python/bin/python skills/epigenomics-and-chromatin/cooler-hic-matrix-summary-starter/scripts/run_cooler_hic_matrix_summary.py \
--out scratch/epigenomics/cooler_hic_summary.json \
--cooler-out scratch/epigenomics/toy_contacts.cool
Verification
- Skill-local tests:
python3 -m unittest discover -s skills/epigenomics-and-chromatin/cooler-hic-matrix-summary-starter/tests -p 'test_*.py' - Expected summary:
bin_count == 3,pixel_count == 5, andtotal_contact_count == 38
What ships with it: 8 files
44.1 KB alongside SKILL.md, 2 of them executable
assets/
- README.md121 B
- toy_contacts.cool37.3 KB
- toy_cooler_hic_summary.json490 B
examples/
- README.md133 B
scripts/
- run_cooler_hic_matrix_summary.pyruns3.0 KB
tests/
- test_run_cooler_hic_matrix_summary.pyruns1.5 KB
- metadata.yaml1.2 KB
- refs.md276 B