A stateless microservice for computing focus metrics on IFCB (Imaging FlowCytobot) bins using the ifcb-focus v1.0.1 student model.
GET /focus_metric/{bin_id}— Returns the focus score for the specified IFCB bin.
Plain text content type with a single float value representing the focus score (e.g., 0.8542).
- Copy
.env.templateto.envand configure the paths:
cp .env.template .env- Edit
.envto set your local paths:
# Path to IFCB data directory containing .roi, .adc, and .hdr files
COMPOSE_IFCB_DATA_DIR=/path/to/ifcb/data
# Path to directory containing slim_student_model.pkl
COMPOSE_MODEL_DIR=/path/to/models
# Port for the service (default: 8001)
COMPOSE_PORT=8001docker compose up --buildcurl http://localhost:8001/focus_metric/D20130823T160901_IFCB0100.8542
- IFCB data directory with bin files (.roi, .adc, .hdr)
- Pre-trained
slim_student_model.pklfrom ifcb-focus v1.0.1 - Docker and Docker Compose