hic-normalization
Automatically detect and normalize Hi-C data. Only .cool or .mcool file is supported. All .mcool files are then checked for existing normalization (supports bins/weight only) and balanced if none of the normalizations exist.
Best use case
hic-normalization is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Automatically detect and normalize Hi-C data. Only .cool or .mcool file is supported. All .mcool files are then checked for existing normalization (supports bins/weight only) and balanced if none of the normalizations exist.
Teams using hic-normalization should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/16-toolbased-hic-normalization/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How hic-normalization Compares
| Feature / Agent | hic-normalization | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Automatically detect and normalize Hi-C data. Only .cool or .mcool file is supported. All .mcool files are then checked for existing normalization (supports bins/weight only) and balanced if none of the normalizations exist.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## Overview
This skill performs Hi-C data normalization on .mcool files.
Main steps include:
- Refer to the **Inputs & Outputs** section to verify required files and output structure.
- **Check normalization status** per resolution (supports bins/weight columns only).
- If a resolution is not normalized, perform normalization with cooler balance (ICE) to create bins/weight.
- **Verify normalization** and emit a concise report on the file, resolution, and normalization status.
---
## When to use this skill
Use the hic-normalization pipeline when:
- You need to ensure that Hi-C data is normalized for downstream analysis.
- Your data comes in .cool or .mcool formats, and you want to check or refresh normalization status (ICE normalization).
This tool assumes the file already has correct genome assembly and chromosome names.
---
## Inputs & Outputs
### Inputs
- Accepted file format: .mcool
### Outputs
```bash
${sample}_hic_norm/
${sample}_norm.mcool
normalization_report.txt # A brief log/report indicating which resolutions were detected, normalized, or skipped.
```
---
## Decision Tree
### Step 0 — Gather Required Information from the User
Before calling any tool, ask the user:
1. Sample name (`sample`): used as prefix and for the output directory `${sample}_hic_norm`.
2. Genome assembly (`genome`): e.g. `hg38`, `mm10`, `danRer11`.
- **Never** guess or auto-detect.
3. Hi-C matrix path (`mcool_path`): e.g. `.mcool` file path or `.hic` file path.
- `path/to/sample.mcool` (.mcool file without resolution specified)
- or `.hic` file path
---
### Step 1: Initialize Project
1. Make director for this project:
Call:
- `mcp__project-init-tools__project_init`
with:
- `sample`: the user-provided sample name
- `task`: hic_norm
The tool will:
- Create `${sample}_hic_norm` directory.
- Get the full path of the `${sample}_hic_norm` directory, which will be used as `${proj_dir}`.
---
2. If the user provides a `.hic` file, convert it to `.mcool` file first using `mcp__HiCExplorer-tools__hic_to_mcool` tool:
Call:
- `mcp__HiCExplorer-tools__hic_to_mcool`
with:
- `input_hic`: the user-provided path (e.g. `input.hic`)
- `sample`: the user-provided sample name
- `proj_dir`: directory to save the view file. In this skill, it is the full path of the `${sample}_hic_norm` directory returned by `mcp__project-init-tools__project_init`.
- `resolutions`: the user-provided resolutions (e.g. `[50000]`)
The tool will:
- Convert the `.hic` file to `.mcool` file.
- Return the path of the `.mcool` file.
If the conversion is successful, update `${mcool_uri}` to the path of the `.mcool` file. The `${mcool_path}` should be updated to the path of the `.mcool` file without resolution specified.
---
3. Inspect the `.mcool` file to list available resolutions and confirm the analysis resolution with the user.
Call:
- `mcp__cooler-tools__list_mcool_resolutions`
with:
- `mcool_path`: the user-provided path (e.g. `input.mcool`) or the path of the `.mcool` file returned by `mcp__HiCExplorer-tools__hic_to_mcool`
The tool will:
- List all resolutions in the .mcool file.
- Return the resolutions as a list.
---
### Step 2: Check Normalization Status (per resolution) on .mcool and normlize if missing
Call:
- `mcp__cooler-tools__check_and_balance_mcool`
with:
- `sample`: the user-provided sample name
- `proj_dir`: the full path to the project directory
- `mcool_path`: the path to the .mcool file (e.g. input.mcool) without resolution specified.
- `balance_missing`: if true, run `cooler.balance_cooler` on resolutions missing /bins/weight
- `store_name`: the name of the weight column to write into bins (default: 'weight')
- `ignore_diags`: the number of diagonals to ignore (`ignore_diags` in cooler.balance_cooler)
- `mad_max`: the `mad_max` parameter for cooler.balance_cooler (default: cooler's own)
- `converge`: the convergence tolerance, maps to `tol` in cooler.balance_cooler
- `max_iters`: the `max_iters` parameter for cooler.balance_cooler
- `cis_only`: if true, balance cis contacts only (`cis_only=True`)
The tool will:
- Check the normalization status (per resolution) on the .mcool file.
- If the normalization is missing, balance the .mcool file.
- Return the path of the balanced .mcool file under `${proj_dir}/` directory.
## Notes & Troubleshooting
- **Normalization fails to converge**: Increase iterations or adjust the convergence criteria (--max-iters, --converge)Related Skills
grail-miner
This skill assists in setting up, managing, and optimizing Grail miners on Bittensor Subnet 81, handling tasks like environment configuration, R2 storage, model checkpoint management, and performance tuning.
lets-go-rss
A lightweight, full-platform RSS subscription manager that aggregates content from YouTube, Vimeo, Behance, Twitter/X, and Chinese platforms like Bilibili, Weibo, and Douyin, featuring deduplication and AI smart classification.
modal-deployment
Run Python code in the cloud with serverless containers, GPUs, and autoscaling using Modal. This skill enables agents to generate code for deploying ML models, running batch jobs, serving APIs, and scaling compute-intensive workloads.
astro
This skill provides essential Astro framework patterns, focusing on server-side rendering (SSR), static site generation (SSG), middleware, and TypeScript best practices. It helps AI agents implement secure authentication, manage API routes, and debug rendering behaviors within Astro projects.
vly-money
Generate crypto payment links for supported tokens and networks, manage access to X402 payment-protected content, and provide direct access to the vly.money wallet interface.
chrome-debug
This skill empowers AI agents to debug web applications and inspect browser behavior using the Chrome DevTools Protocol (CDP), offering both collaborative (headful) and automated (headless) modes.
whisper-transcribe
Transcribes audio and video files to text using OpenAI's Whisper CLI, enhanced with contextual grounding from local markdown files for improved accuracy.
ux
This AI agent skill provides comprehensive guidance for creating professional and insightful User Experience (UX) designs, covering user research, information architecture, interaction design, visual guidance, and usability evaluation. It aims to produce actionable, user-centered solutions that avoid generic AI aesthetics.
tech-blog
Generates comprehensive technical blog posts, offering detailed explanations of system internals, architecture, and implementation, either through source code analysis or document-driven research.
thor-skills
An entry point and router for AI agents to manage various THOR-related cybersecurity tasks, including running scans, analyzing logs, troubleshooting, and maintenance.
ontopo
An AI agent skill to search for Israeli restaurants, check table availability, view menus, and retrieve booking links via the Ontopo platform, acting as an unofficial interface to its data.
advanced-skill-creator
Meta-skill that generates domain-specific skills using advanced reasoning techniques. PROACTIVELY activate for: (1) Create/build/make skills, (2) Generate expert panels for any domain, (3) Design evaluation frameworks, (4) Create research workflows, (5) Structure complex multi-step processes, (6) Instantiate templates with parameters. Triggers: "create a skill for", "build evaluation for", "design workflow for", "generate expert panel for", "how should I approach [complex task]", "create skill", "new skill for", "skill template", "generate skill"