SDK
DeepoMe提供Python和JavaScript SDK,简化API调用流程,支持样本管理、通路分析、虚拟筛选等功能。
更新时间:2026-06-03
SDKPython SDKJavaScript SDK开发者工具npmpip
Python SDK
安装
pip install deepome-sdk
初始化
from deepome import DeepoMeClient
client = DeepoMeClient(api_key="YOUR_API_KEY")
示例:获取样本报告
report = client.samples.get_report("CAP-2024-001")
print(f"生物年龄: {report.biological_age}")
print(f"日历年龄: {report.chronological_age}")
for pathway in report.pathway_scores:
print(f"{pathway.name}: 活性={pathway.activity}, 偏移={pathway.aging_offset}")
示例:虚拟筛选
result = client.screening.create(
sample_id="CAP-2024-001",
categories=["aging_intervention", "metabolic"],
max_results=10
)
for drug in result.candidates:
print(f"{drug.name}: 匹配度={drug.match_score}")
JavaScript SDK
安装
npm install @deepome/sdk
初始化
import { DeepoMeClient } from '@deepome/sdk'
const client = new DeepoMeClient({ apiKey: 'YOUR_API_KEY' })
示例
const report = await client.samples.getReport('CAP-2024-001')
console.log(`生物年龄: ${report.biologicalAge}`)
const screening = await client.screening.create({
sampleId: 'CAP-2024-001',
categories: ['aging_intervention'],
maxResults: 10
})
参考资料
- DeepoMe SDK GitHub 仓库
- Python SDK API 参考
- JavaScript SDK API 参考