Spaces:
Sleeping

DrugOps / molgate_ui /contracts /session_layout.md
chihsing's picture
Upload 180 files
af894e0 verified
|
Raw History Blame Contribute Delete
1.07 kB
# Session layout — `data/sessions/{session_id}/`
`session_id` = 16 位 hex(見 [STORAGE.md](STORAGE.md))
## 入口檔
| 檔案 | 誰寫入 | 用途 |
|------|--------|------|
| `session_index.json` | UI / gateway | Module 1 Index(master index 或使用者 JSON) |
| `session_meta.json` | Module 1 | smiles、target、pdb_id 等 meta |
## Stage 檔(節錄)
| Stage | 檔名 | Module |
|-------|------|--------|
| 01 | `stage_01_smiles.json` | M1 |
| 02 | `stage_02_pdb.json` | M1 |
| 03 | `stage_03_index.json` | M1 |
| 04–09 | `stage_04_*.json` … `stage_09_ligand_pdbqt.json` | M2 |
| 10–19 | receptor prep | M3 |
| 21–26 | docking | M4–M5 |
## 子目錄
```
{pdb_id}/
pdb/{PDBID}.pdb
ligand/
ligand.pdbqt
protein/
cleaned.pdb, receptor.pdbqt
docking/
output.pdbqt, vina.log
```
## API(讀 session 狀態)
- `GET /api/index/status?session={id}`
- `GET /api/session/{id}/status`
- `GET /api/structure/file?session={id}&path=...`
完整範例目錄:`data/examples/ibuprofen_complete/`