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/

⚠️ Important Notice
For async prediction (/api/v1/predict), please save your Job ID securely. You will need it to query status and download results. Job IDs are masked on the jobs page for security.

API Endpoints

POST /api/v1/predict

Submit prediction task (upload CSV file) (Async)

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

Synchronous prediction - upload and wait for results (for pipeline integration)

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}

Query task status

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

Download prediction results

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

Get data validation report

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

Statistics

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

Health check

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

Get recent jobs

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

Download sample CSV file

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

List available models

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

Rescan models

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

Get API configuration

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

Web Interface