Agent skill

bio-hi-c-analysis-matrix-operations

Balance, normalize, and transform Hi-C contact matrices using cooler and cooltools. Apply iterative correction (ICE), compute expected values, and generate observed/expected matrices. Use when normalizing or transforming Hi-C matrices.

FreedomIntelligencegithub.com/FreedomIntelligenceGitHub ↗
claude-codeships scripts
Install
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-hi-c-analysis-matrix-operations --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 7 KB
Bundled scripts: yes
Path: skills/bio-hi-c-analysis-matrix-operations/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,909
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Version Compatibility Reference examples tested with: cooler 0.9+, cooltools 0.6+, numpy 1.26+, pandas 2.2+, scipy 1.12+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures - CLI: `<tool> --version` then `<tool> --help` to confirm flags If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # Hi-C Matrix Operations **"Normalize my Hi-C contact matrix"** → Apply iterative correction (ICE/KR balancing), compute distance-decay expected values, and generate observed/expected ratio matrices. - Python: `cooler.balance_cooler(clr)`, `cooltools.expected_cis(clr)` Balance, normalize, and transform contact matrices. ## Required Imports ```python import cooler import cooltools import numpy as np import pandas as pd ``` ## Matrix Balancing (ICE) ```python # Balance a cooler file (iterative correction) cooler.balance_cooler('matrix.cool', store=True, cis_only=True) # The balanced weights are stored in the 'weight' column clr = cooler.Cooler('matrix.cool') weights = clr.bins()['weigh

What's inside
Steps it walks through
  1. Version Compatibility
  2. Required Imports
  3. Matrix Balancing (ICE)
  4. Balance with CLI
  5. Access Balanced vs Raw Matrix
  6. Compute Expected Values
  7. Observed/Expected Matrix
  8. Using cooltools for O/E
  9. Log Transform
  10. Distance Decay Normalization
  11. Aggregate Multiple Replicates
  12. Smooth Matrix
  13. Downsample/Coarsen Matrix
  14. Correlation Matrix
Ships with 2 files
  • examples/balance_matrix.py
  • usage-guide.md
Commands it runs
Balance using cooler CLI
cooler balance matrix.cool --cis-only --force
Check balance status
cooler info matrix.cool | grep "weight"
More from OpenClaw-Medical-Skills
All skills →
About this skill
What does the bio-hi-c-analysis-matrix-operations skill do?

Balance, normalize, and transform Hi-C contact matrices using cooler and cooltools. Apply iterative correction (ICE), compute expected values, and generate observed/expected matrices. Use when normalizing or transforming Hi-C matrices.

How do I install it?

Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-hi-c-analysis-matrix-operations --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From FreedomIntelligence/OpenClaw-Medical-Skills, a repository with 2,909 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going