How aliviahossain/ai-risk-predictor works
DEG Analysis Viewer accepts either existing DEG-result CSVs or expression data that it analyzes through a GEO or raw-upload workflow, then presents interactive results. The main path runs from upload selection through FastAPI and, for expression data, the R analysis job; parsed genes then enter the React results view for summaries, plots, tables, and downloads. The graph preserves the documented analysis and visualization capabilities. Some backend and visualization internals were not excerpted, so their links rely on README statements or are omitted where evidence is insufficient.
Main entry points: ResultsPage.jsx Results dashboard · UploadPage.jsx Input modes · geo.py GEO job API · RawUploadForm.jsx Raw upload form
Components 19
Input and analysis
- Application state
frontend/src/App.js - Input modes
frontend/src/pages/UploadPage.jsx - Raw upload form
frontend/src/components/RawUploadForm.jsx - CSV parser
frontend/src/utils/parseCSV.js
Backend API
- DEG CSV API
backend/routes/deg.py - GEO job API
backend/routes/geo.py - FastAPI app
backend/main.py - DEG R pipeline
backend/analysis/core_deg_engine.R - API configuration
frontend/src/config.js
Results experience
- Results dashboard
frontend/src/pages/ResultsPage.jsx - Summary statistics
frontend/src/utils/parseCSV.js
Visualization and export
- Volcano plot
frontend/src/components/VolcanoPlot.jsx - MA plot
frontend/src/components/MAPlot.jsx - Top genes chart
frontend/src/components/TopGenesChart.jsx - Gene table
frontend/src/components/GeneTable.jsx - Heatmap viewer
frontend/src/components/HeatmapViewer.jsx - Download exports
frontend/src/components/DownloadButton.jsx
Other components
- Researcher
- GEO repository
Connections 27
- Researcher → Input modes: selects input
README.md - Input modes → Raw upload form: renders
frontend/src/pages/UploadPage.jsx - Input modes → CSV parser: parses CSV
frontend/src/pages/UploadPage.jsx - Raw upload form → CSV parser: parses results
frontend/src/components/RawUploadForm.jsx - Input modes → API configuration: uses endpoint
frontend/src/pages/UploadPage.jsx - Raw upload form → API configuration: uses endpoint
frontend/src/components/RawUploadForm.jsx - FastAPI app → DEG CSV API: registers router
backend/main.py - FastAPI app → GEO job API: registers router
backend/main.py - Input modes → DEG CSV API: uploads result CSV
README.md - Input modes → GEO job API: starts or polls job
frontend/src/pages/UploadPage.jsx - Raw upload form → GEO job API: starts or polls job
README.md - GEO job API → DEG R pipeline: runs pipeline
README.md - GEO repository → GEO job API: provides dataset
README.md - GEO job API → Input modes: returns job results
frontend/src/pages/UploadPage.jsx - API configuration → GEO job API: targets API
frontend/src/config.js - Application state → Input modes: shows input
frontend/src/App.js - Application state → Results dashboard: shows results
frontend/src/App.js - Input modes → Application state: passes parsed genes
frontend/src/pages/UploadPage.jsx - Results dashboard → Summary statistics: computes statistics
frontend/src/pages/ResultsPage.jsx - Results dashboard → Volcano plot: renders
frontend/src/pages/ResultsPage.jsx - Results dashboard → MA plot: renders
frontend/src/pages/ResultsPage.jsx - Results dashboard → Top genes chart: renders
frontend/src/pages/ResultsPage.jsx - Results dashboard → Gene table: renders
frontend/src/pages/ResultsPage.jsx - Results dashboard → Heatmap viewer: renders
frontend/src/pages/ResultsPage.jsx - Results dashboard → Download exports: renders
frontend/src/pages/ResultsPage.jsx - Results dashboard → API configuration: uses endpoint
frontend/src/pages/ResultsPage.jsx - Heatmap viewer → GEO job API: fetches heatmap
README.md