How truthdead/alphapred works
AlphaPred is a Flask web app for screening alpha-thalassemia carriers from blood-test measurements. The visible workflow collects form values, encodes gender and measurements, invokes a persisted XGBoost model, and renders its prediction. The README also describes a second classifier that distinguishes silent carriers from traits, but the sampled app calls only the first model; its implementation and integration are not verified here. Edges for the documented second stage are therefore dashed and uncited.
Main entry points: app.py Flask request handler · index.html Screening form · XGBClassifier.py XGBoost inference · XGB2.pkl Carrier model
Components 8
Web interface
- Screening form
templates/index.html - Flask request handler
app.py - Prediction display
templates/index.html
Prediction
- Feature encoding
app.py - XGBoost inference
XGBClassifier.py - Carrier model
XGB2.pkl
Diagnostic stages
- Carrier subtype model
alpha-thalassemia-classifier-1
Other components
- Clinician
Connections 7
- Clinician → Screening form: enters measurements
README.md - Screening form → Flask request handler: submits values
app.py - Flask request handler → Feature encoding: encodes inputs
app.py - Flask request handler → XGBoost inference: calls predictions
app.py - XGBoost inference → Carrier model: loads and predicts
XGBClassifier.py - Flask request handler → Prediction display: renders prediction
app.py - Carrier model → Carrier subtype model: classifies carriers