Skip to content
Back to skills

Cooler Hic Matrix Summary Starter

ASecurity

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.

  • 38 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill cooler-hic-matrix-summary-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cooler Hic Matrix Summary Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cooler Hic Matrix Summary Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-cooler-hic-matrix-summary-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-cooler-hic-matrix-summary-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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 `.cool` file with three bins and five nonzero upper-triangle pixels.
- Opens the Cooler store with `cooler.Cooler` and summarizes matrix shape, pixel count, and total contact count.
- Can also summarize an existing Cooler file if `--input` is 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 `cooler` in the repo-managed scientific Python environment.

## Example

```bash
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`, and `total_contact_count == 38`

Files in this skill

  • SKILL.md1.3 KB
  • assets/README.md121 B
  • assets/toy_contacts.cool37.3 KB
  • assets/toy_cooler_hic_summary.json490 B
  • examples/README.md133 B
  • metadata.yaml1.2 KB
  • refs.md276 B
  • scripts/run_cooler_hic_matrix_summary.py3 KB
  • tests/test_run_cooler_hic_matrix_summary.py1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…