医疗智能体 EIHealth-查询分子合成路径规划任务:响应参数

时间:2023-11-01 16:18:53

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

status

String

异步任务的状态:等待中、运行中、已完成、失败

枚举值:

  • waiting

  • running

  • finished

  • failed

task_data

SynthesisTaskData object

分子合成路径规划任务的请求体

result

SynthesisResult object

分子合成路径规划任务的返回结果

表4 SynthesisTaskData

参数

参数类型

描述

smiles

String

分子SMILES表达式

top_n

Integer

期望最大返回条目数(排序后取TopN)

最小值:1

最大值:50

max_search_depth

Integer

预测路径的最大深度

最小值:3

最大值:12

max_prediction_per_product

Integer

每个产物的最大反应数量

最小值:2

最大值:20

表5 SynthesisResult

参数

参数类型

描述

smiles

String

产物smiles序列

top_n

Integer

期望返回的条目数

max_search_depth

Integer

期望搜索的最大深度

max_prediction_per_product

Integer

期望每个产物的最多反应数量

result

result object

合成路径规划结果字典

表6 result

参数

参数类型

描述

molecules

Array of molecules objects

分子合成规划中的分子

reactions

Array of reactions objects

分子合成规划中的反应列表

synthesis_routes

Array of SynthesisResultItem objects

分子合成规划的具体信息

表7 molecules

参数

参数类型

描述

id

String

molecule的序号

smiles

String

molecule的smiles序列

source

String

molecule的smiles来源

表8 reactions

参数

参数类型

描述

id

String

反应的序号

reactants

Array of strings

反应物分子序号的列表

product

String

产物分子序号

表9 SynthesisResultItem

参数

参数类型

描述

route

Array of strings

分子合成规划,列表内是reactions id

score

Float

当前分子合成路径的得分

support.huaweicloud.com/api-eihealth/eihealth_33_00410.html