How kirankumar88/brca-multiomics-ai works
This repository is a breast-cancer multi-omics classification product with a Streamlit analysis interface and a separate FastAPI inference endpoint. The main workflow accepts a CSV in the app, fills missing model features, predicts ductal versus lobular subtype, and offers biomarker, omics-layer, heatmap, and pathway analyses. The README documents a frontend-to-backend architecture, but the sampled code does not show the frontend calling the API; the app performs inference directly. The API's model paths also differ from the app's paths, so those dependencies are shown separately.
Main entry points: app.py App Model · api.py FastAPI Endpoint
Components 16
Analysis Interface
- Streamlit App
app/app.py - CSV Upload
app/app.py - Model Dashboard
app/app.py - Prediction Results
app/app.py
Inference
- FastAPI Endpoint
api/api.py - API Model
api/api.py - App Model
app/app.py - Model Features
app/app.py - Subtype Prediction
app/app.py
Biological Interpretation
- SHAP Biomarkers
app/app.py - Omics Contribution
app/app.py - Top Biomarkers
app/app.py - Feature Heatmap
app/app.py - KEGG Enrichment
app/app.py
Other components
- Researcher
- Enrichr Service
Connections 19
- Researcher → Streamlit App: uses
README.md - Streamlit App → CSV Upload: offers
app/app.py - Researcher → CSV Upload: uploads CSV
app/app.py - Streamlit App → Model Dashboard: shows metrics
app/app.py - Streamlit App → FastAPI Endpoint: may call
- FastAPI Endpoint → API Model: loads model
api/api.py - FastAPI Endpoint → Model Features: loads features
api/api.py - FastAPI Endpoint → API Model: predicts
api/api.py - CSV Upload → Subtype Prediction: stores data
app/app.py - Subtype Prediction → Model Features: aligns columns
app/app.py - Subtype Prediction → App Model: predicts
app/app.py - App Model → Prediction Results: returns probabilities
app/app.py - Subtype Prediction → Prediction Results: displays
app/app.py - App Model → SHAP Biomarkers: explains
app/app.py - App Model → Omics Contribution: provides importance
app/app.py - App Model → Top Biomarkers: ranks features
app/app.py - App Model → Feature Heatmap: selects features
app/app.py - App Model → KEGG Enrichment: ranks genes
app/app.py - KEGG Enrichment → Enrichr Service: requests enrichment
app/app.py