You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CatPred currently expects one sequence per row. Multi-protein complexes (e.g., heteromers/homodimers) are not explicitly modeled as separate chains in the default prediction workflow.
101
+
102
+
For released benchmark datasets, the number of entries with 3D structure can be smaller than the total sequence/substrate pairs; 3D-derived artifacts are available only for the subset with valid structure mapping.
103
+
104
+
### 🌍 Web API (Optional)
105
+
106
+
CatPred also provides an optional FastAPI service for prediction workflows.
107
+
108
+
Install web dependencies:
109
+
110
+
```bash
111
+
pip install -e ".[web]"
112
+
```
113
+
114
+
Run the API:
115
+
116
+
```bash
117
+
catpred_web --host 0.0.0.0 --port 8000
118
+
```
119
+
120
+
Endpoints:
121
+
- `GET /health` — liveness check.
122
+
- `GET /ready` — backend configuration/readiness.
123
+
- `POST /predict` — run inference.
124
+
125
+
By default, the API is hardened for service use:
126
+
- `input_file` requests are disabled (use `input_rows` instead).
127
+
- request-time overrides of `repo_root` / `python_executable` are disabled.
128
+
- `results_dir` is constrained under `CATPRED_API_RESULTS_ROOT`.
129
+
130
+
Minimal `POST /predict` example forlocal inference using `input_rows`:
Use `"backend": "modal"`in`/predict` requests to route through Modal. If fallback is enabled (env var above or request field `fallback_to_local`), failed modal requests can automatically reroute to local inference.
0 commit comments