A/B compartment prediction classifies chromatin into two spatial states by analyzing the plaid patterning in Hi-C contact maps. The first principal component of a normalized interaction matrix correlates with open ('A') and closed ('B') chromatin, where 'A' compartments are gene-rich, early-replicating, and accessible, while 'B' compartments are gene-poor, late-replicating, and associated with the nuclear lamina.
Glossary
A/B Compartment Prediction

What is A/B Compartment Prediction?
A/B compartment prediction is the computational classification of genomic regions into open, transcriptionally active 'A' compartments or closed, inactive 'B' compartments based on long-range chromatin interaction patterns derived from Hi-C data.
Deep learning models now predict compartment identity directly from DNA sequence and epigenomic features without experimental Hi-C data. These predictions reveal how genetic variation alters genome organization, linking compartment switching to disease-relevant gene misregulation and enabling in silico perturbation experiments.
Key Characteristics of A/B Compartments
A/B compartments represent the largest scale of 3D genome organization, partitioning chromosomes into megabase-sized regions with distinct interaction profiles and functional states.
Spatial Segregation Principle
A/B compartments reflect the physical separation of chromatin into two mutually exclusive spatial territories within the nucleus. Active 'A' compartments localize to the nuclear interior and are enriched for transcription, while inactive 'B' compartments associate with the nuclear lamina and periphery. This segregation is visible in Hi-C contact maps as a characteristic 'plaid' pattern, where A-A and B-B interactions are enriched and A-B interactions are depleted. The compartment identity of a genomic region is strongly correlated with its gene density, GC content, and replication timing.
Eigenvector-Based Identification
Compartment identity is computationally determined using principal component analysis (PCA) on normalized Hi-C contact matrices. The first principal component (PC1), or eigenvector, corresponds to the A/B compartment profile. Key steps include:
- Computing the observed/expected contact matrix to remove distance-dependent background
- Performing PCA on the correlation matrix of this normalized data
- Assigning compartment identity based on the sign of PC1 values
- Using gene density or GC content to orient the eigenvector, ensuring A compartments have positive values This method transforms raw interaction frequencies into a continuous compartment score for every genomic bin.
Functional Dichotomy
A and B compartments exhibit diametrically opposed functional landscapes:
- A Compartments: Enriched for housekeeping genes, high transcriptional activity, open chromatin (DNase I hypersensitivity), active histone marks (H3K36me3, H3K27ac), and early replication timing
- B Compartments: Enriched for gene deserts, late replication timing, repressive histone marks (H3K9me3, H3K27me3), and lamina-associated domains (LADs) This functional polarization makes compartment prediction a powerful tool for annotating regulatory potential directly from 3D interaction data, even in the absence of orthogonal epigenomic assays.
Compartment Switching in Development
A/B compartment identity is not static; it undergoes dynamic reorganization during cellular differentiation and development. Genomic regions can switch from B to A compartments upon gene activation and vice versa during silencing. Notable examples include:
- The Hox gene clusters transitioning from B to A during embryonic body plan specification
- Olfactory receptor loci switching compartments during neuronal maturation
- Pluripotency genes moving to B compartments upon lineage commitment These switches are often accompanied by changes in histone modifications and DNA methylation, making compartment prediction a readout of large-scale epigenomic remodeling.
Deep Learning Prediction from Sequence
Modern approaches use convolutional neural networks and graph neural networks to predict A/B compartments directly from DNA sequence and epigenomic features. Models like Akita and DeepC learn to map sequence motifs to compartment identity by:
- Encoding DNA sequence as one-hot vectors or learned embeddings
- Integrating CTCF binding sites, histone modification ChIP-seq signals, and chromatin accessibility data as auxiliary inputs
- Predicting a continuous compartment score for each genomic bin
- Training on Hi-C-derived PC1 values as ground truth This enables compartment annotation for any genome with reference sequence, bypassing the need for expensive Hi-C experiments.
Relationship to TADs and Loops
A/B compartments exist at a higher hierarchical level than topologically associating domains (TADs) and chromatin loops. A single compartment typically contains multiple TADs, and TAD boundaries can exist within both A and B compartments. However, the relationship is not purely hierarchical:
- TADs within A compartments tend to have higher internal interaction frequencies and more active regulatory landscapes
- TADs within B compartments are often more compact and silenced
- CTCF binding sites at TAD boundaries can act as barriers that prevent the spreading of one compartment type into another Compartment prediction thus provides the broad organizational context within which finer-scale folding features operate.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about classifying genomic regions into active 'A' and inactive 'B' compartments using deep learning and Hi-C data.
A/B compartment prediction is the computational classification of genomic regions into two distinct spatial compartments—active 'A' compartments and inactive 'B' compartments—based on their long-range chromatin interaction patterns derived from Hi-C data. This binary segregation represents the highest level of 3D genome organization, where A compartments correlate with open, transcriptionally active euchromatin and B compartments correspond to closed, gene-poor heterochromatin. The prediction task involves analyzing the plaid pattern observed in Hi-C contact maps, where interactions are enriched within compartments of the same type and depleted between compartments of different types. Modern deep learning approaches, such as Graph Neural Networks (GNNs) and convolutional neural networks, can predict compartment identity directly from linear DNA sequence and epigenomic features without requiring experimental Hi-C data, enabling the annotation of 3D genome organization in cell types where experimental data is unavailable.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Explore the foundational concepts and computational methods that underpin A/B compartment prediction, from the raw experimental data to the deep learning architectures that classify active and inactive chromatin domains.
Hi-C Contact Map
A genome-wide matrix quantifying the interaction frequencies between all pairs of genomic loci. This is the primary input data for A/B compartment prediction. The matrix reveals a characteristic 'plaid' pattern where active A compartments and inactive B compartments preferentially self-interact, forming the basis for computational classification.
Principal Component Analysis (PCA)
The foundational mathematical technique used to define A/B compartments. Applied to a normalized Hi-C correlation matrix, the first principal component (PC1) naturally stratifies the genome into two groups. Positive PC1 values typically correspond to gene-rich, open 'A' compartments, while negative values map to gene-poor, closed 'B' compartments.
Sequence-to-Contact Prediction
The computational task of predicting genome-wide interaction frequencies directly from raw linear DNA sequence, bypassing the need for costly Hi-C experiments. Models like Akita learn to infer A/B compartments by recognizing sequence motifs for architectural proteins like CTCF, enabling compartment prediction for any sequenced genome.
Insulation Score
A quantitative metric that measures the degree to which a genomic locus is insulated from neighboring interactions. It is critical for identifying Topologically Associating Domain (TAD) boundaries, which serve as the structural barriers that constrain A/B compartment spreading and physically separate active from inactive chromatin domains.
Graph Neural Network (GNN) for Chromatin
A deep learning architecture that models the genome as a graph, where loci are nodes and Hi-C contacts are edges. GNNs excel at A/B compartment prediction because they naturally capture the long-range, relational structure of chromatin interactions, learning that nodes with similar connection patterns belong to the same compartment.
Epigenomic Pattern Recognition
The use of neural networks to predict chromatin states from histone modification and DNA methylation data. A compartments are strongly associated with active marks like H3K27ac and H3K4me3, while B compartments correlate with repressive marks like H3K9me3. These signals serve as complementary inputs for multimodal compartment prediction models.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us