Introduction
The HeartMAP REST API provides a programmatic interface to perform single-cell RNA sequencing analysis of heart tissue. The API is built with FastAPI and supports various analysis pipelines, from basic quality control to comprehensive multi-chamber analysis.API Information
HeartMAP API
1.0.0
Starting the Server
Prerequisites
Install FastAPI and Uvicorn:Running the Server
There are multiple ways to start the HeartMAP API server:Option 1: Using Uvicorn Directly
Option 2: Using the Python Script
Option 3: Using the HeartMapAPI Class
Server Options
Host address to bind the server
Port number for the server
Enable debug logging
Quick Start Example
Once the server is running, verify it’s working:Available Analysis Types
The API supports four types of analysis pipelines:Basic
Quality control and basic preprocessing
Advanced Communication
Cell-cell communication analysis
Multi-Chamber
Multi-chamber comparative analysis
Comprehensive
Complete analysis pipeline with all features
API Features
- File Upload: Upload .h5ad files for analysis
- Multiple Pipelines: Choose from basic to comprehensive analysis
- Configurable: Override default configuration parameters
- Health Monitoring: Built-in health check endpoint
- Model Discovery: List available analysis models
- Dynamic Configuration: Update configuration at runtime
Interactive Documentation
When the server is running, access the interactive API documentation:- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
Next Steps
API Endpoints
Explore all available endpoints
Authentication
Learn about API authentication