What is HeartMAP?
HeartMAP (Heart Multi-chamber Analysis Platform) is a production-ready Python package that decodes cellular communication across all four chambers of the human heart. Unlike general single-cell tools, HeartMAP is purpose-built for cardiac biology, offering chamber-specific insights crucial for understanding heart function, disease, and therapeutic opportunities.HeartMAP is published in Computational and Structural Biotechnology Journal (2025) and available via
pip install heartmapCore Architecture
HeartMAP follows a modular, three-tier architecture designed for flexibility and scalability:Architecture Components
Data Layer
Quality control, normalization, filtering, and preprocessing of single-cell RNA-seq data
Analysis Layer
Four specialized pipelines for different analysis needs - from basic QC to comprehensive analysis
Output Layer
Automated visualizations, reports, and exportable results in multiple formats
Analysis Workflow
HeartMAP processes single-cell heart data through a progressive, tiered workflow:Stage 1: Data Processing
- Cell and gene filtering (min_genes=200, min_cells=3)
- Normalization to target_sum=10,000
- Log transformation
- Highly variable gene selection (n_top_genes=2000)
- PCA dimensionality reduction (n_components=50)
- Neighborhood graph construction
Stage 2: Analysis Pipeline Selection
Choose the pipeline that matches your research question:Basic Pipeline
Basic Pipeline
Best for: Initial exploration and cell type identification
- Quality control metrics
- Cell clustering (Leiden algorithm)
- Basic cell type annotation
- UMAP visualizations
- Runtime: 5-10 minutes
Communication Pipeline
Communication Pipeline
Best for: Cell-cell interaction analysis
- Ligand-receptor interaction analysis
- Communication hub identification
- Pathway enrichment
- Network topology analysis
- Runtime: 10-15 minutes
Multi-Chamber Pipeline
Multi-Chamber Pipeline
Best for: Chamber-specific analysis
- Chamber-specific marker identification (RA, RV, LA, LV)
- Cross-chamber correlation analysis
- Comparative chamber analysis
- Chamber composition visualization
- Runtime: 15-20 minutes
Comprehensive Pipeline
Comprehensive Pipeline
Best for: Complete analysis with all features
- All features from Basic, Communication, and Multi-Chamber
- Integrated comprehensive dashboard
- Automated HTML reports
- Complete result persistence
- Runtime: 20-30 minutes
Stage 3: Results and Interpretation
HeartMAP generates structured outputs:Key Concepts
Chamber-Specific Analysis
HeartMAP treats each heart chamber as a distinct microenvironment:- RA (Right Atrium): 28.4% of cells, NPPA, MYL7 markers
- RV (Right Ventricle): 18.2% of cells, NEAT1, MYH7 markers
- LA (Left Atrium): 26.4% of cells, NPPA, ELN, RORA markers
- LV (Left Ventricle): 27.0% of cells, CD36, FHL2, MYH7 markers
Cross-chamber correlations reveal functional relationships:
- RV vs LV: r = 0.985 (highest similarity)
- RA vs LA: r = 0.960
- LA vs LV: r = 0.870 (lowest similarity, reflecting specialization)
Cell-Cell Communication
HeartMAP uses ligand-receptor (L-R) interaction analysis to infer cellular communication:- L-R Database: 100+ curated cardiac-relevant pairs (LIANA, CellPhoneDB, custom)
- Expression Analysis: Co-expression of ligand (sender) and receptor (receiver)
- Communication Scoring: Geometric mean of ligand-receptor expression
- Hub Detection: Cells with high connectivity in communication networks
Memory Optimization
HeartMAP is designed to work on consumer hardware:| System RAM | max_cells_subset | max_genes_subset | Use Case |
|---|---|---|---|
| 8GB | 10,000 | 2,000 | Laptop/Desktop |
| 16GB | 30,000 | 4,000 | Workstation |
| 32GB | 50,000 | 5,000 | Server |
| 64GB+ | 100,000+ | 10,000+ | HPC/Cloud |
Design Principles
Reproducibility
Fixed random seeds (seed=42) ensure identical results across runs
Modularity
Mix and match pipelines and components for custom workflows
Configurability
YAML-based configuration for easy customization without code changes
Production-Ready
Comprehensive testing, error handling, and documentation
Quick Start Example
Next Steps
Pipelines
Learn about each pipeline and when to use them
Chamber Analysis
Understand chamber-specific analysis features
Cell Communication
Explore ligand-receptor analysis methods
Configuration
Customize HeartMAP for your needs