**A Python/Dash implementation for comprehensive single-cell RNA sequencing analysis, maintaining architectural parity with the R/Shiny version.sequencing analysis, maintaining architectural parity with the R/Shiny version.
- Overview
- Key Features
- Why MASIH-Python?
- Quick Start
- Installation
- Documentation
- Analysis Modules
- Supported Data Formats
- Use Cases
- System Requirements
- Contributing
- Citation
- Roadmap
- Acknowledgments
- License
MASIH-Python provides a user-friendly web interface for analyzing single-cell RNA sequencing (scRNA-seq) data, with a focus on the multidimensional biological portrait of each cell.
Built with Dash and Scanpy, it offers a complete workflow from raw 10X Genomics data or processed AnnData objects to comprehensive biological insights.
- Accepts 10X Genomics outputs, H5AD files, and expression matrices
- Preserves existing analysis results and metadata
- Automatically detects and completes missing analysis steps
- Customizable quality control with interactive parameters
- High-Resolution Clustering β Leiden and Louvain algorithms with resolution optimization
- Dimensionality Reduction β PCA, t-SNE, UMAP for revealing data structure
- Marker Gene Profiling β Multiple differential expression methods with statistical validation
- Interactive Visualization β Plotly-powered plots with real-time exploration
- Functional State Characterization β CancerSEA-based scoring of 14 cancer-related pathways
- Trajectory Mapping β PAGA-based pseudotime analysis for developmental progression
- Cell Cycle Deconvolution β G1/S/G2M phase scoring integrated into downstream analyses
- Comparative Analysis β Cross-cluster and cross-pathway correlation studies
- Export publication-quality plots (PNG, PDF, SVG)
- Comprehensive data export (Excel, CSV, H5AD)
- Auto-generate dataset-specific methods text for manuscripts
- Batch export of all visualizations
- π Python Ecosystem: Leverage the power of Scanpy and the Python scientific stack
- π Web-Based: No local software installation required (with Docker)
- π¬ Cancer-Focused: Specialized tools with CancerSEA pathway integration
- π» No Coding Required: Accessible to all researchers through intuitive interface
- π Comprehensive Workflow: From raw data to publication-ready figures
- π Reproducible: Exports parameters and generates methods text
- π§© Modular Design: Easily extend with new analysis modules
- π³ Docker Support: One-command deployment for easy setup
# Option 1: Using Docker (Recommended)
git clone https://github.com/msherafatian/masih-python.git
cd masih-python
docker compose up --build
# Option 2: Using pip
git clone https://github.com/msherafatian/masih-python.git
cd masih-python
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.py# If installed locally
python app.py
# If using Docker
docker compose upAccess the application at http://localhost:8050
Download example datasets from the Upload & QC tab, or use your own:
- 10X Genomics Cell Ranger output
- AnnData H5AD files
- Expression matrices (CSV/TSV)
- π€ Data Upload: Multiple format support (10X, H5AD, CSV/TSV matrices)
- β Quality Control: Interactive filtering with customizable thresholds
- π― Clustering: Graph-based clustering with Leiden/Louvain algorithms
- 𧬠Marker Genes: Statistical testing with multiple methods (Wilcoxon, t-test, logreg)
- π¦ CancerSEA Integration: 14 functional state pathways for cancer analysis
- π Pathway Comparison: Correlation and comparative pathway analysis
- π Trajectory Analysis: PAGA-based pseudotime inference
- π Cell Cycle Scoring: G1/S/G2M phase identification and integration
- π Interactive Plots: Real-time exploration with Plotly
- πΌοΈ High-Quality Export: Publication-ready figures (PNG, PDF, SVG)
- πΎ Comprehensive Data Export: Excel, CSV, and H5AD formats
- π Methods Generation: Automatic methods text for manuscripts
- 10X Genomics: Cell Ranger outputs (matrix directories, H5 files)
- AnnData Objects: H5AD files from Scanpy or other Python tools
- Expression Matrices: CSV/TSV format (genes Γ cells or cells Γ genes)
- Previous MASIH-Python Sessions: Reload processed data seamlessly
- π€ Upload 10X data β 2. β Quality control β 3. π― Clustering β 4. π¦ CancerSEA analysis β 5. πΎ Export results
- π Basic workflow β 2. π Cell type selection β 3. π Trajectory inference β 4. β±οΈ Pseudotime analysis β 5. π Publication figures
- π€ Load dataset β 2. π― Clustering analysis β 3. π Comparative pathways β 4. π Statistical analysis β 5. πΎ Export results
MASIH-Python is designed for researchers studying:
- π¬ Tumor Heterogeneity: Identify and characterize cancer cell subpopulations
- π Treatment Response: Analyze single-cell responses to therapy
- π Cancer Progression: Trace developmental trajectories and metastasis
- β‘ Functional States: Characterize stemness, invasion, drug resistance
- π§« Microenvironment: Analyze tumor-immune interactions
- 𧬠Gene Expression Patterns: Discover marker genes and regulatory networks
- Python: Version 3.10 or higher
- Operating System: Windows 10+, macOS 10.14+, or Linux
- Memory: 4GB RAM minimum (8GB+ recommended for large datasets)
- Storage: 2GB free space for installation and dependencies
- Docker Desktop: Latest version
- Memory: 4GB RAM allocated to Docker (8GB+ recommended)
- Storage: 5GB free space for Docker images
We welcome contributions! Please read our Contributing Guidelines for details (coming soon).
- π Report bugs and request features
- π Improve documentation
- π§ͺ Add new analysis modules
- π¨ Enhance user interface
- 𧬠Add new pathway databases
- π³ Improve Docker deployment
If you use MASIH-Python in your research, please cite the Zenodo DOI:
Concept DOI (latest MASIH-Python release):
https://doi.org/10.5281/zenodo.17824054
Version-specific DOI (e.g., for the archived release used in a paper):
vX.Y.Z β https://doi.org/10.5281/zenodo.17824053
@software{masih_python_2024,
author = {Sherafatian, Masih},
title = {MASIH-Python: Modular Analysis Suite for Interactive Heterogeneity},
year = 2024,
publisher = {Zenodo},
doi = {10.5281/zenodo.17824054},
url = {https://doi.org/10.5281/zenodo.17824054}
}
*[Full publication citation will be added upon publication]*- π Documentation: Check our comprehensive guides (coming soon)
- π Issues: Report bugs on GitHub Issues
- βοΈ Email: masihshrftn@gmail.com
- π¬ Discussions: Join our GitHub Discussions
MASIH-Python is built on the shoulders of giants:
- Scanpy β Single-cell analysis in Python
- Dash β Web application framework by Plotly
- CancerSEA β Cancer functional state database
- CellRank β Trajectory inference
- Plotly β Interactive visualizations
- MASIH R/Shiny β Original implementation
Special thanks to all contributors and the single-cell community!
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
- MASIH (R/Shiny) β Original R implementation
- Scanpy β Single-cell analysis toolkit
MASIH-Python: Making single-cell cancer analysis accessible to all researchers.