Installation Guide
HeartMAP is available on PyPI and can be installed with a single command. This guide covers different installation methods and system requirements.System Requirements
Before installing HeartMAP, ensure your system meets these requirements:Minimum Requirements
- Python: 3.8 or higher (tested on Python 3.8-3.11)
- Memory: 8GB+ RAM (16GB recommended for larger datasets)
- Storage: 2GB+ for package and results
- Operating System: Linux, macOS, or Windows
Python Version Support
Python 3.8
Supported
Python 3.9
Supported
Python 3.10
Recommended
Python 3.11
Supported
Quick Installation
The fastest way to get started with HeartMAP:Installation Options
HeartMAP offers different installation options depending on which features you need.Basic Installation
Installs core dependencies for basic analysis:scanpy>=1.9.0- Single-cell analysispandas>=1.5.0- Data manipulationnumpy>=1.21.0- Numerical computingscipy>=1.9.0- Scientific computingscikit-learn>=1.1.0- Machine learningmatplotlib>=3.5.0- Visualizationseaborn>=0.11.0- Statistical visualizationanndata>=0.8.0- Annotated data structuresplotly>=5.0.0- Interactive plotsnetworkx>=2.8.0- Network analysispython-igraph>=0.10.0- Graph algorithmsleidenalg>=0.8.0- Clusteringpyyaml>=6.0- Configuration files
Communication Analysis
For advanced cell-cell communication analysis:liana>=0.1.0- Ligand-receptor analysiscellphonedb>=3.0.0- Cell communication databaseomnipath>=1.0.0- Signaling database
API Features
For REST API and web service deployment:fastapi>=0.100.0- Web frameworkuvicorn>=0.23.0- ASGI serverpydantic>=2.0.0- Data validation
Development Installation
For contributors and developers:pytest>=7.0.0- Testing frameworkpytest-cov>=4.0.0- Code coverageblack>=23.0.0- Code formattingflake8>=6.0.0- Lintingmypy>=1.0.0- Type checkingtypes-PyYAML>=6.0.0- Type stubsjupyter>=1.0.0- Notebooksnotebook>=6.0.0- Jupyter interface
Complete Installation
Installs all features (recommended for most users):Installation from Source
For the latest development version or to contribute:Verify Installation
After installation, verify that HeartMAP is working correctly:Memory Configuration
HeartMAP can be configured to work with different memory constraints:| System RAM | Recommended Settings | Use Case |
|---|---|---|
| 8GB | max_cells_subset: 10000max_genes_subset: 2000 | Laptop/Desktop |
| 16GB | max_cells_subset: 30000max_genes_subset: 4000 | Workstation |
| 32GB | max_cells_subset: 50000max_genes_subset: 5000 | Server |
| 64GB+ | max_cells_subset: 100000+max_genes_subset: 10000+ | HPC/Cloud |
You can configure these settings in a
config.yaml file or programmatically through the Config class.Troubleshooting
Common Installation Issues
ImportError: No module named ‘heartmap’
Solution: Make sure you’ve activated the correct virtual environment and installed HeartMAP:Memory errors during installation
Solution: Install dependencies one at a time or increase pip’s memory limit:Compilation errors with igraph or leidenalg
Solution: These packages require compilation. Install build tools:Conflicts with existing packages
Solution: Create a fresh virtual environment:Checking Installation Status
Use this script to verify all components:verify_installation.py
Next Steps
Now that HeartMAP is installed, you’re ready to start analyzing cardiac data:Quick Start
Run your first analysis in minutes
Configuration
Learn how to configure HeartMAP for your system
Tutorials
Explore step-by-step guides
API Reference
Dive into the Python API
Getting Help
If you encounter issues during installation:- Check the GitHub Issues for similar problems
- Join the GitHub Discussions for community support
- Contact the team at: [email protected]