Overview
TheMultiChamberPipeline class performs integrated analysis across multiple heart chambers (atria, ventricles, etc.), identifying chamber-specific markers and cross-chamber correlations.
Inheritance: BasePipeline
Source: heartmap.pipelines.MultiChamberPipeline (src/heartmap/pipelines/init.py:310)
Constructor
Configuration object containing analysis parameters.
Attributes
Inherited fromBasePipeline:
config(Config): Configuration objectdata_processor(DataProcessor): Data processing handlervisualizer(Visualizer): Visualization handlerexporter(ResultsExporter): Results export handlerresults(Dict[str, Any]): Dictionary storing pipeline results
Methods
run()
Run the multi-chamber analysis pipeline on cardiac tissue data.Path to H5AD file containing single-cell data from multiple heart chambers.
Directory to save multi-chamber analysis results and visualizations. If None, results are returned but not saved.
Dictionary containing pipeline results:
Annotated data object (unchanged from input)
ImportError: If required dependencies (scanpy, pandas, numpy) are not available
- Data Loading - Reads H5AD file with multi-chamber data
- Chamber Pattern Analysis - Identifies chamber-specific expression patterns
- Marker Identification - Finds marker genes specific to each chamber
- Cross-Chamber Correlation - Computes correlations between chamber transcriptomes
- Visualization - Generates chamber composition, marker, and correlation plots (if output_dir provided)
save_results()
Inherited fromBasePipeline. Save pipeline results to disk.
Directory path where results will be saved
Usage Example
Data Requirements
The input data should:- Contain single-cell RNA-seq data from multiple heart chambers
- Include chamber annotations in
adata.obs(e.g., ‘chamber’, ‘tissue’, or ‘region’ column) - Be properly normalized and quality-filtered
- Left atrium (LA)
- Right atrium (RA)
- Left ventricle (LV)
- Right ventricle (RV)
- Septum
- Apex
Output Files
Whenoutput_dir is specified, the pipeline generates:
figures/chamber_composition.png- Cell type composition per chamberfigures/chamber_markers.png- Heatmap of chamber-specific markersfigures/cross_chamber_correlations.png- Correlation matrix between chambers- Results exported via
ResultsExporter
Related Documentation
BasicPipeline
Basic single-cell analysis pipeline
ComprehensivePipeline
Run all analyses including multi-chamber
Visualizer
Visualization utilities for multi-chamber data
Multi-Chamber Analysis Guide
Detailed guide on analyzing multi-chamber heart data