English 中文

OTK Prediction API

📖 Description

OTK (ecDNA Analysis Toolkit) Prediction API provides a high-performance deep learning-based service for predicting extrachromosomal DNA (ecDNA) cargo genes and classifying focal amplification types.

Production API: http://biotree.top:38123/otk/
API Base URL: http://biotree.top:38123/otk/api/v1/

⚠️ 重要提示
使用异步预测 (/api/v1/predict) 时,请妥善保管您的 Job ID。查询任务状态和下载结果时需要使用 Job ID。为安全起见,Job ID 在任务列表页面会进行脱敏显示。

API端点

POST /api/v1/predict

提交预测任务(上传CSV文件) (Async)

Example / 示例
curl -X POST "http://biotree.top:38123/otk/api/v1/predict" -F "file=@data.csv"
POST /api/v1/predict-sync

同步预测 - 上传文件并等待结果(用于流程集成)

Example / 示例
curl -X POST "http://biotree.top:38123/otk/api/v1/predict-sync" -F "file=@data.csv" --output predictions.csv
GET /api/v1/jobs/{job_id}

查询任务状态

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/jobs/your-job-id"
GET /api/v1/jobs/{job_id}/download

下载预测结果

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/jobs/your-job-id/download" --output predictions.csv
GET /api/v1/validation-report/{job_id}

获取数据验证报告

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/validation-report/your-job-id"
GET /api/v1/statistics

统计数据

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/statistics"
GET /api/v1/health

健康检查

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/health"
GET /api/v1/jobs/recent

获取最近任务

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/jobs/recent"
GET /api/v1/sample-file

下载示例CSV文件

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/sample-file" --output sample.csv
GET /api/v1/models

列出可用模型

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/models"
POST /api/v1/models/rescan

重新扫描模型

Example / 示例
curl -X POST "http://biotree.top:38123/otk/api/v1/models/rescan"
GET /api/v1/config

获取API配置

Example / 示例
curl "http://biotree.top:38123/otk/api/v1/config"

Web界面