hic-compartment-shift

Analyze Hi-C PC1 eigenvectors to identify A/B compartment shifts between conditions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify regions where chromatin compartments shift between two conditions by comparing PC1 eigenvectors from Hi-C data.

Core Features & Use Cases

  • Convert TSV (Chrom, start, end, weight, E1) into HOMER-compatible PC1 bedGraph files.
  • Generate a unified genomic bin list for annotatePeaks.
  • Extract PC1 values across all samples.
  • Perform differential PC1 analysis with replicate-aware limma statistics.
  • Produce differential compartment tables and stitched compartment-shift domains.

Quick Start

Provide two condition TSVs with replicates and invoke the analysis to obtain differential PC1 results.

Frequently Asked Questions about hic-compartment-shift

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

FAQPage Schema
How do I detect A/B compartment shifts in Hi-C data between two conditions?

To detect A/B compartment shifts in Hi-C data, compare PC1 eigenvectors across samples and perform differential PC1 analysis using LIMMA to identify regions switching compartments. This requires TSV files containing chromosome coordinates and E1 values.

What is needed to perform differential compartment analysis with HOMER and LIMMA?

Differential compartment analysis requires user-supplied TSV files with columns for Chrom, Start, End, Weight, and E1, representing two conditions with replicates. The tool converts these into PC1 bedGraph files and a unified bin list for LIMMA statistics.

Can I use Hi-C data without replicates to find compartment switching regions?

No, detecting compartment switching regions requires Hi-C datasets with two or more replicates per condition. Replicate-aware LIMMA statistics are applied to PC1 eigenvectors to accurately identify differential compartments.

How does PC1 eigenvector comparison work for identifying chromatin compartment changes?

PC1 eigenvector comparison identifies chromatin compartment changes by extracting PC1 values across all samples using a unified genomic bin list. Shifts in PC1 signs across conditions indicate a switch between active A and inactive B compartments.

What outputs are generated from Hi-C A/B compartment shift analysis?

Hi-C A/B compartment shift analysis generates PC1 bedGraph files, genomic bin lists, and differential compartment tables. It also produces stitched compartment-shift domains to visualize regions switching between A and B states.