revir-drug-platform

revir-drug-platform


计算分版号子库相似关系

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>计算分版号子库相似关系</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://119.136.27.201:3200/dataset/relation</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">config</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用于划分子库的字段, 来源于数据集相似性接口</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{ 'data': { 'nodes': [{ 'size': 2084910, 'tag': None, 'name': 'ChEMBL' }, { 'size': 9, 'tag': None, 'name': 'Draw' }, { 'size': 48318, 'tag': 'Wuxi', 'name': 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-4' }, { 'size': 121113, 'tag': 'Wuxi', 'name': 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-2' }, { 'size': 122292, 'tag': 'Wuxi', 'name': 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-1' }, { 'size': 12278, 'tag': 'Wuxi', 'name': 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-3' }], 'relations': [{ 'nodes': ['ChEMBL', 'DrugBank'], 'weight': 135 }, { 'nodes': ['ChEMBL', 'ZINC'], 'weight': 1 }, { 'nodes': ['ChEMBL', 'PharmGKB'], 'weight': 152 }, { 'nodes': ['ChEMBL', 'PubChem'], 'weight': 114 }, { 'nodes': ['ChEMBL', 'Mcule'], 'weight': 1 }, { 'nodes': ['BindingDB', 'ChEMBL'], 'weight': 95 }, { 'nodes': ['DrugBank', 'PharmGKB'], 'weight': 336 }, { 'nodes': ['DrugBank', 'PubChem'], 'weight': 137 }, { 'nodes': ['DrugBank', 'Mcule'], 'weight': 3 }, { 'nodes': ['BindingDB', 'DrugBank'], 'weight': 135 }, { 'nodes': ['ChEMBL', 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-4'], 'weight': 0 }, { 'nodes': ['ChEMBL', 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-2'], 'weight': 0 }, { 'nodes': ['ChEMBL', 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-1'], 'weight': 0 }, { 'nodes': ['ChEMBL', 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-3'], 'weight': 0 }, { 'nodes': ['DrugBank', 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-4'], 'weight': 0 }, { 'nodes': ['DrugBank', 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-2'], 'weight': 0 }, { 'nodes': ['Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-1', 'Wuxi_#_Pool Plate_#_WX-HTSv2-Plate-3'], 'weight': 0 }], }, 'code': 200, 'message': 'success' }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">nodes</td> <td style="text-align: left;">list</td> <td>数据集(节点)列表,</td> </tr> <tr> <td style="text-align: left;">size</td> <td style="text-align: left;">int</td> <td>数据集数据数量(节点大小)</td> </tr> <tr> <td style="text-align: left;">tag</td> <td style="text-align: left;">string</td> <td>数据集分组(节点颜色), 为null表示未定义分组</td> </tr> <tr> <td style="text-align: left;">relations</td> <td style="text-align: left;">list</td> <td>数据集之间相似关系(节点连线)</td> </tr> <tr> <td style="text-align: left;">nodes</td> <td style="text-align: left;">list</td> <td>数据集列表(连线节点)</td> </tr> <tr> <td style="text-align: left;">weight</td> <td style="text-align: left;">int</td> <td>数据集相似权重(连线粗细), 理论最大值25000, 最小0, 常规数据最大值约2000,最小0</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述 config 写法举例:选择数据集Wuxi,选择 Pool Plate 作为拆分子库的依据, config = '{&quot;Wuxi&quot;: &quot;Pool Plate&quot;}' , 选择多个数据集 '{&quot;Wuxi&quot;: &quot;Pool Plate&quot;, &quot;PharmKGB&quot;: &quot;Label Has Dosing Info&quot;}'</li> </ul>

页面列表

ITEM_HTML