hic-compartments-calling

Call A/B compartments from Hi-C contact maps using PCA-based PC1 scoring.

12|3|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/BIsnake2001/ChromSkills --skill hic-compartments-calling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hic-compartments-calling
Source: https://github.com/BIsnake2001/ChromSkills/tree/main/17_toolBased.hic-compartments-calling
Command: npx skills add https://github.com/BIsnake2001/ChromSkills --skill hic-compartments-calling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This workflow automates end-to-end Hi-C compartments analysis by performing PCA-based calling to identify A/B compartments from contact maps and generate PC1 scores and visualization-ready outputs.

Core Features & Use Cases

  • PCA-based compartment calling on .mcool, .cool, or .hic Hi-C data.
  • Generates PC1 compartment scores and visualization assets (e.g., BigWig tracks and saddle plots) for genome browsers.
  • Produces reproducible results with a structured MCP-tool workflow including genome localization, chromosome-name harmonization, view creation, GC binning, and saddle analysis.

Quick Start

Provide a sample Hi-C dataset and run the workflow to generate PC1 compartments and visualization outputs.

Frequently Asked Questions about hic-compartments-calling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call Hi-C compartments and derive PC1 scores from contact maps?

Hi-C compartments calling derives PC1 scores from contact maps by applying PCA through an automated workflow. It processes your input data to generate compartment scores and visualization outputs like saddle plots.

Can I use .mcool or .hic files for PCA-based Hi-C compartment calling?

PCA-based Hi-C compartment calling supports .mcool, .cool, and .hic file formats. You must provide the Hi-C data along with the required genome assembly and resolution parameters to execute the workflow successfully.

What steps are needed to perform saddle analysis and identify A/B compartments from Hi-C data?

Saddle analysis and A/B compartment identification require an end-to-end workflow including genome localization, chromosomal name harmonization, arm view creation, GC binning, and running expected_cis and eigs_cis before plotting final results.

How does cooltools work with mcool files for generating BigWig tracks and saddle plots?

Cooltools processes mcool files by running eigs_cis to compute eigenvectors and generate BigWig tracks for genome browsers. It then performs saddle analysis on the binned contact matrices to plot compartment strength visualizations.

What visualization outputs are generated when running Hi-C compartment calling?

Hi-C compartment calling generates visualization-ready outputs including PC1 compartment scores as BigWig tracks for genome browsers and saddle plots. These outputs visualize the A/B compartment separation derived from the PCA analysis.

Why do I need to provide genome assembly and resolution for Hi-C compartment analysis?

Genome assembly and resolution are required for Hi-C compartment analysis to properly localize genomic regions and harmonize chromosomal names. These parameters ensure the contact maps are correctly binned and aligned for accurate PCA computation.