Download raw/macrocycle-db/openapi.json from StructureCloud/MacrocycleDB: direct link, hf CLI and curl.
- Browser
- Download file 69.5 kB
-
https://huggingface.co/datasets/StructureCloud/MacrocycleDB/resolve/main/raw/macrocycle-db/openapi.json
- Command line
-
hf download hf://datasets/StructureCloud/MacrocycleDB/raw/macrocycle-db/openapi.json
-
curl -L -o openapi.json https://huggingface.co/datasets/StructureCloud/MacrocycleDB/resolve/main/raw/macrocycle-db/openapi.json
69.5 kB
| {"openapi":"3.0.2","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/v1/image/macro_design/first_step":{"post":{"summary":"Get Macro Design","operationId":"get_macro_design_v1_image_macro_design_first_step_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_get_macro_design_v1_image_macro_design_first_step_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/image/macro_design/init":{"post":{"summary":"Init Macro Design","operationId":"init_macro_design_v1_image_macro_design_init_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_init_macro_design_v1_image_macro_design_init_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/image/macro_design/result":{"get":{"summary":"Get Macro Design Result","operationId":"get_macro_design_result_v1_image_macro_design_result_get","parameters":[{"required":true,"schema":{"title":"Task Id","type":"string"},"name":"task_id","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TaskOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/image/smiles":{"post":{"summary":"Get Smiles Image","operationId":"get_smiles_image_v1_image_smiles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmilesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ImageOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/image/pdb":{"post":{"summary":"Get Pdb Image","operationId":"get_pdb_image_v1_image_pdb_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_get_pdb_image_v1_image_pdb_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ImageOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/substructure/split_pdb":{"post":{"summary":"Split Pdb","operationId":"split_pdb_v1_substructure_split_pdb_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_split_pdb_v1_substructure_split_pdb_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/substructure/split_smiles":{"post":{"summary":"Split Smiles To Pdb","operationId":"split_smiles_to_pdb_v1_substructure_split_smiles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmilesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/substructure/search":{"post":{"summary":"Search Substructure","description":"子结构搜索:查询数据库中包含指定子结构的分子,分页返回","operationId":"search_substructure_v1_substructure_search_post","parameters":[{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Page Size","maximum":1000.0,"minimum":1.0,"type":"integer","default":500},"name":"page_size","in":"query"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmilesIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/substructure/ping":{"post":{"summary":"Diagnostic Ping","description":"诊断端点:测试数据库连接和 RDKit 可用性,用于远程服务器排查","operationId":"diagnostic_ping_v1_substructure_ping_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}}}}},"/v1/substructure/reload_cache":{"post":{"summary":"Reload Substructure Cache","description":"清空并重建子结构搜索的 Mol 缓存。\n\n数据库分子数据更新后调用此端点,或用于诊断缓存构建耗时。","operationId":"reload_substructure_cache_v1_substructure_reload_cache_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}}}}},"/v1/substructure/search_smiles_similarity":{"post":{"summary":"Search Similarity","description":"相似度搜索:基于 Morgan 指纹 Tanimoto 相似度搜索分子,分页返回","operationId":"search_similarity_v1_substructure_search_smiles_similarity_post","parameters":[{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Page Size","maximum":1000.0,"minimum":1.0,"type":"integer","default":500},"name":"page_size","in":"query"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmilesAndThreshold"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target":{"get":{"summary":"Get Target","description":"获取靶点列表","operationId":"get_target_v1_api_target_get","parameters":[{"description":"页码","required":false,"schema":{"title":"Page","type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","type":"integer","description":"每页数量","default":10},"name":"size","in":"query"},{"description":"Target类型","required":false,"schema":{"title":"Type","type":"string","description":"Target类型"},"name":"type","in":"query"},{"description":"排序字段","required":false,"schema":{"title":"Sort By","type":"string","description":"排序字段"},"name":"sort_by","in":"query"},{"description":"排序顺序: asc 为升序, desc 为降序","required":false,"schema":{"title":"Sort Order","type":"string","description":"排序顺序: asc 为升序, desc 为降序","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TargetResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target-statistics":{"get":{"summary":"Get Target Statistics","description":"获取靶点统计","operationId":"get_target_statistics_v1_api_target_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_apps.macrocycle.schemas.TargetStatisticsResponse__"}}}}}}},"/v1/api/overall-statistics":{"get":{"summary":"Get Overall Statistics","description":"获取整体统计数据 - 用于首页显示","operationId":"get_overall_statistics_v1_api_overall_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Dict_str__Any__"}}}}}}},"/v1/api/target/{id}":{"get":{"summary":"Get Target By Id","description":"根据ID获取靶点详情","operationId":"get_target_by_id_v1_api_target__id__get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"},{"description":"页码","required":false,"schema":{"title":"Page","type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","type":"integer","description":"每页数量","default":10},"name":"size","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TargetIdResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target/{id}/references":{"get":{"summary":"Get Target References","description":"获取靶点参考文献","operationId":"get_target_references_v1_api_target__id__references_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target/{id}/bais":{"get":{"summary":"Get Target Bais","description":"获取靶点BAI数据","operationId":"get_target_bais_v1_api_target__id__bais_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"},{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Size","minimum":1.0,"type":"integer","default":5},"name":"size","in":"query"},{"required":false,"schema":{"title":"Sort By","type":"string"},"name":"sort_by","in":"query"},{"required":false,"schema":{"title":"Sort Order","type":"string","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TargetBaisResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target-search":{"get":{"summary":"Target Search","description":"搜索靶点","operationId":"target_search_v1_api_target_search_get","parameters":[{"required":true,"schema":{"title":"Q","type":"string"},"name":"q","in":"query"},{"required":false,"schema":{"title":"Type","type":"string"},"name":"type","in":"query"},{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Size","minimum":1.0,"type":"integer","default":10},"name":"size","in":"query"},{"description":"排序字段","required":false,"schema":{"title":"Sort By","type":"string","description":"排序字段"},"name":"sort_by","in":"query"},{"description":"排序顺序: asc 为升序, desc 为降序","required":false,"schema":{"title":"Sort Order","type":"string","description":"排序顺序: asc 为升序, desc 为降序","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TargetSearchResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocycle":{"post":{"summary":"Get Macrocycle","description":"搜索分子","operationId":"get_macrocycle_v1_api_macrocycle_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MacrocycleSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MacrocycleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocy/{id}":{"get":{"summary":"Get Macrocy","description":"获取分子详情","operationId":"get_macrocy_v1_api_macrocy__id__get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"},{"required":false,"schema":{"title":"Type","type":"string"},"name":"type","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MacrocyDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocy/{id}/references":{"get":{"summary":"Get Macrocy References","description":"获取分子参考文献","operationId":"get_macrocy_references_v1_api_macrocy__id__references_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocy/{id}/bai":{"get":{"summary":"Get Macrocy Bai","description":"获取分子的BAI数据","operationId":"get_macrocy_bai_v1_api_macrocy__id__bai_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"},{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Size","minimum":1.0,"type":"integer","default":10},"name":"size","in":"query"},{"required":false,"schema":{"title":"Sort By","type":"string"},"name":"sort_by","in":"query"},{"required":false,"schema":{"title":"Sort Order","type":"string","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MTBAResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocy/{id}/ss":{"get":{"summary":"Get Macrocy Ss","description":"获取分子相似性 (Tanimoto Similarity > 0.8)\n\n支持分页,返回该分子的所有相似分子结构及其基本信息","operationId":"get_macrocy_ss_v1_api_macrocy__id__ss_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"},{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Size","minimum":1.0,"type":"integer","default":20},"name":"size","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SimilarityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocy-search":{"get":{"summary":"Macrocy Search","description":"搜索分子","operationId":"macrocy_search_v1_api_macrocy_search_get","parameters":[{"required":false,"schema":{"title":"Type","type":"string"},"name":"type","in":"query"},{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Size","minimum":1.0,"type":"integer","default":10},"name":"size","in":"query"},{"required":false,"schema":{"title":"Sort By","type":"string"},"name":"sort_by","in":"query"},{"required":false,"schema":{"title":"Sort Order","type":"string","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MacrocyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/pdb-type":{"get":{"summary":"Get Pdb Type","description":"获取PDB类型统计","operationId":"get_pdb_type_v1_api_pdb_type_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PDBTypeResponse_"}}}}}}},"/v1/api/pdb":{"get":{"summary":"Get Pdb","description":"获取PDB结构列表","operationId":"get_pdb_v1_api_pdb_get","parameters":[{"description":"M类型过滤","required":false,"schema":{"title":"Mtype","type":"string","description":"M类型过滤"},"name":"mtype","in":"query"},{"description":"Target类型过滤","required":false,"schema":{"title":"Type","type":"string","description":"Target类型过滤"},"name":"type","in":"query"},{"description":"页码","required":false,"schema":{"title":"Page","type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","type":"integer","description":"每页数量","default":10},"name":"size","in":"query"},{"description":"排序字段","required":false,"schema":{"title":"Sort By","type":"string","description":"排序字段"},"name":"sort_by","in":"query"},{"description":"排序顺序: asc 为升序, desc 为降序","required":false,"schema":{"title":"Sort Order","type":"string","description":"排序顺序: asc 为升序, desc 为降序","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PDBResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/pdb-search":{"get":{"summary":"Pdb Search","description":"搜索PDB结构","operationId":"pdb_search_v1_api_pdb_search_get","parameters":[{"required":true,"schema":{"title":"Q","type":"string"},"name":"q","in":"query"},{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Size","minimum":1.0,"type":"integer","default":10},"name":"size","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PDBResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/getLinkerType":{"get":{"summary":"Get Linker Type","description":"获取连接子类型统计","operationId":"get_linker_type_v1_api_getLinkerType_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_LinkerTypeResponse_"}}}}}}},"/v1/api/linkers":{"get":{"summary":"Get Linkers","description":"获取连接子列表","operationId":"get_linkers_v1_api_linkers_get","parameters":[{"description":"页码","required":false,"schema":{"title":"Page","type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","type":"integer","description":"每页数量","default":10},"name":"size","in":"query"},{"description":"连接子类型","required":false,"schema":{"title":"Type","type":"string","description":"连接子类型"},"name":"type","in":"query"},{"description":"连接子长度","required":false,"schema":{"title":"Length","type":"string","description":"连接子长度"},"name":"length","in":"query"},{"description":"排序字段","required":false,"schema":{"title":"Sort By","type":"string","description":"排序字段"},"name":"sort_by","in":"query"},{"description":"排序顺序: asc 为升序, desc 为降序","required":false,"schema":{"title":"Sort Order","type":"string","description":"排序顺序: asc 为升序, desc 为降序","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_LinkerResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocyclic-type":{"get":{"summary":"Get Macrocyclic Type","description":"获取大环药物类型统计","operationId":"get_macrocyclic_type_v1_api_macrocyclic_type_get","parameters":[{"required":false,"schema":{"title":"Srctype","type":"string"},"name":"srcType","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MacrocyclicTypeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/macrocyclic":{"get":{"summary":"Get Macrocyclic","description":"获取大环药物列表","operationId":"get_macrocyclic_v1_api_macrocyclic_get","parameters":[{"required":false,"schema":{"title":"Type","type":"string"},"name":"type","in":"query"},{"required":false,"schema":{"title":"Mtype","type":"string"},"name":"mtype","in":"query"},{"required":false,"schema":{"title":"Ttype","type":"string"},"name":"ttype","in":"query"},{"required":false,"schema":{"title":"Size","type":"integer","default":10},"name":"size","in":"query"},{"required":false,"schema":{"title":"Page","type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Sort By","type":"string"},"name":"sort_by","in":"query"},{"required":false,"schema":{"title":"Sort Order","type":"string","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MacrocyclicResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/statistic":{"get":{"summary":"Statistic","description":"获取统计数据","operationId":"statistic_v1_api_statistic_get","parameters":[{"required":false,"schema":{"title":"Descriptor","type":"string"},"name":"descriptor","in":"query"},{"required":false,"schema":{"title":"Type","type":"string"},"name":"type","in":"query"},{"required":false,"schema":{"title":"Mtype","type":"string"},"name":"mtype","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_StatisticResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target/{id}/bais/img":{"get":{"summary":"Get Target Bais Img","description":"获取靶点BAI图片数据 (待实现)","operationId":"get_target_bais_img_v1_api_target__id__bais_img_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target/{id}/dppt/img":{"get":{"summary":"Get Target Dppt Img","description":"获取靶点DPPT图片数据 (用于Macrocycles卡片展示)","operationId":"get_target_dppt_img_v1_api_target__id__dppt_img_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target/{id}/biological-activities":{"get":{"summary":"Get Target Biological Activities","description":"获取靶点的生物活性数据\n\n用于targetDetail页面的Biological Activities板块\n返回该靶点关联的所有大环分子及其活性数据","operationId":"get_target_biological_activities_v1_api_target__id__biological_activities_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"},{"required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","default":1},"name":"page","in":"query"},{"required":false,"schema":{"title":"Size","minimum":1.0,"type":"integer","default":10},"name":"size","in":"query"},{"required":false,"schema":{"title":"Sort By","type":"string"},"name":"sort_by","in":"query"},{"required":false,"schema":{"title":"Sort Order","type":"string","default":"asc"},"name":"sort_order","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/target/{gene_name}/macrocycle-type":{"get":{"summary":"Get Macrocycle Type By Gene","description":"根据基因名称获取关联的大环分子列表\n\n用于targetDetail页面的Macrocycle Type板块\n返回该基因对应的所有大环分子及其类型","operationId":"get_macrocycle_type_by_gene_v1_api_target__gene_name__macrocycle_type_get","parameters":[{"required":true,"schema":{"title":"Gene Name","type":"string"},"name":"gene_name","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api/publication-by-year":{"get":{"summary":"Get Publication By Year","description":"按年份获取大环分子发表数量统计\n\n返回:\n 包含年份和数量的字典列表,按年份升序排列\n 格式: [{\"year\": 1968, \"count\": 1}, ...]\n\n说明:\n 从 molecule_references 表统计各个年份的大环分子发表数量\n 一个分子可能在同一年份有多篇文献,这里统计的是唯一分子数量","operationId":"get_publication_by_year_v1_api_publication_by_year_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}}}}},"/v1/api/fda-by-year-and-type":{"get":{"summary":"Get Fda By Year And Type","description":"按年份和疾病大类获取FDA批准药物数量统计\n\n返回:\n 包含年份和各疾病大类数量的字典\n 格式: {\n \"years\": [\"1942\", \"1943\", ...],\n \"series\": [\n {\"name\": \"Infection: Antibacterial\", \"data\": [0, 0, ...]},\n ...\n ]\n }\n\n说明:\n 从 fda_drugs 表统计各个年份各疾病大类的药物数量\n 疾病大类分为:\n - Infection: Antibacterial (包含: Antibacterial, Antibacteria)\n - Oncology\n - Infection: Antiviral (包含: Antiviral (Hepatitis C))\n - Infection: Antifungal (包含: Antifungal, Antifunga)\n - Autoimmune diseases\n - Antiparasitic\n - Other(其他所有未匹配的类型)","operationId":"get_fda_by_year_and_type_v1_api_fda_by_year_and_type_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Dict_str__Any__"}}}}}}},"/v1/api/molecule-type-classification":{"get":{"summary":"Get Molecule Type Classification","description":"获取分子类型分类统计\n\n用于Statistics页面的Classification板块\n返回Approved、In Clinical Trial和All三个板块的分子类型数量\n\n返回:\n 包含三种来源的分子类型统计数据的字典\n 格式: {\n \"approved\": {\"Cyclic Peptide\": 31, \"Synthetic Macrocycle\": 11, ...},\n \"clinical_trial\": {\"Cyclic Peptide\": 38, \"Synthetic Macrocycle\": 15, ...},\n \"all\": {\"Cyclic Peptide\": 11058, \"Synthetic Macrocycle\": 3149, ...}\n }\n\n说明:\n - approved: 从 fda_drugs 表统计\n - clinical_trial: 从 clinical_trials 表统计\n - all: 从 target_dppt 表统计","operationId":"get_molecule_type_classification_v1_api_molecule_type_classification_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Dict_str__Any__"}}}}}}},"/v1/api/organism-types-statistics":{"get":{"summary":"Get Organism Types Statistics","description":"获取生物种类统计\n\n用于Statistics页面的Organism Types板块\n返回各生物种类的数量\n\n返回:\n 包含生物种类和数量的字典列表\n 格式: [{\"name\": \"Homo sapiens\", \"value\": 723}, ...]\n\n说明:\n 从 molecule_targets 表的 organism 字段统计\n 生物种类包括:Virus, Animal, Bacteria, Fungi, Homo sapiens","operationId":"get_organism_types_statistics_v1_api_organism_types_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}}}}},"/v1/api/target-type-statistics":{"get":{"summary":"Get Target Type Statistics","description":"获取靶点类型统计\n\n用于Statistics页面的Target Types板块\n返回各靶点类型的数量\n\n返回:\n 包含靶点类型和数量的字典列表\n 格式: [{\"name\": \"Enzyme\", \"value\": 186}, ...]\n\n说明:\n 从 molecule_targets 表的 idg 字段统计\n 靶点类型包括:Enzyme, Epigenetic, GPCR, Ion Channel, Kinase, Nuclear Receptor, Transcription Factor, Transporter, Other","operationId":"get_target_type_statistics_v1_api_target_type_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}}}}},"/v1/api/disease-statistics":{"get":{"summary":"Get Disease Statistics","description":"获取FDA批准药物的疾病统计\n\n用于Statistics页面的Disease下的Approved板块\n返回各疾病类型的数量\n\n返回:\n包含疾病类型和数量的字典列表\n格式: [{\"name\": \"Oncology\", \"value\": 17}, ...]\n\n说明:\n从 fda_drugs 表的 disease 字段统计\n疾病类型包括:Oncology, Infection: Antiviral (Hepatitis C), Antiparasitic,\nInfection: Antifungal, Infection: Antibacterial, Autoimmune diseases, Other","operationId":"get_disease_statistics_v1_api_disease_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}}}}},"/v1/api/clinical-trial-disease-statistics":{"get":{"summary":"Get Clinical Trial Disease Statistics","description":"获取临床试验药物的疾病统计\n\n用于Statistics页面的Disease下的In Clinical Trial板块\n返回各疾病类型的数量\n\n返回:\n包含疾病类型和数量的字典列表\n格式: [{\"name\": \"Hepatitis C\", \"value\": 12}, ...]\n\n说明:\n从 clinical_trials 表的 disease 字段统计\n疾病类型包括:Hepatitis C, Advanced Solid Tumors, Solid Tumors,\nAcute Myeloid Leukemia, Community Acquired Pneumonia,\nNon-Small Cell Lung Cancer, Other","operationId":"get_clinical_trial_disease_statistics_v1_api_clinical_trial_disease_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}}}}},"/v1/api/molecule-types-by-target":{"get":{"summary":"Get Molecule Types By Target","description":"获取不同靶点类型的分子类型统计\n\n用于Statistics页面的Molecule Types of Different Targets板块\n返回各靶点类型下各分子类型的数量\n\n返回:\n包含各靶点类型的分子类型统计数据的字典\n格式: {\n \"Enzyme\": {\"Cyclic Peptide\": 1149, \"Synthetic Macrocycle\": 876, ...},\n \"GPCR\": {\"Cyclic Peptide\": 2829, \"Synthetic Macrocycle\": 43, ...},\n \"Kinase\": {\"Cyclic Peptide\": 198, \"Synthetic Macrocycle\": 542, ...},\n \"Ion Channel\": {\"Cyclic Peptide\": 410, \"Synthetic Macrocycle\": 48, ...}\n}\n\n说明:\n从 biological_activities 表统计\n- 统计大类:Enzyme, GPCR, Kinase, Ion Channel (从idg字段)\n- 统计小类:Cyclic Peptide, Synthetic Macrocycle, Macrolide, Other, Porphyrin, Macrocyclic Polyene (从m_type字段)","operationId":"get_molecule_types_by_target_v1_api_molecule_types_by_target_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Dict_str__Any__"}}}}}}},"/v1/api/top-50-targets":{"get":{"summary":"Get Top 50 Targets","description":"获取Top 50靶点统计\n\n用于Statistics页面的Top 50 Targets of Macrocycles板块\n返回出现次数最多的50个基因名称\n\n返回:\n包含基因名称和出现次数的字典列表\n格式: [{\"gene_name\": \"MC4R\", \"count\": 780}, ...]\n\n说明:\n从 macrocycle_type 表统计各个基因名称的出现次数,\n并按出现次数从高到低排序,返回前50个基因","operationId":"get_top_50_targets_v1_api_top_50_targets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}}}}},"/v1/api/target/{id}/dppt":{"get":{"summary":"Get Target Dppt","description":"根据UniProt ID获取靶点关联的分子属性数据\n\n用于targetDetail页面的Statistics板块\n返回该靶点关联的所有分子的属性数据(MW, LogP, HBD, HBA, TPSA, NRotB等)\n\n参数:\nid: UniProt靶点ID\nclassification_by: 分类依据(可选)\n - molecule (默认): 按来源分类,使用 type 字段\n 包含:Natural macrocycle, Synthetic macrocycle, Acyclic molecule 等\n - macrocycles: 按结构分类,使用 m_type 字段\n 包含:Cyclic Peptide, Macrolide, Synthetic Macrocycle, Other, Porphyrin 等","operationId":"get_target_dppt_v1_api_target__id__dppt_get","parameters":[{"required":true,"schema":{"title":"Id","type":"string"},"name":"id","in":"path"},{"description":"分类依据:macrocycles(结构分类/m_type), molecule(来源分类/type)","required":false,"schema":{"title":"Classification By","type":"string","description":"分类依据:macrocycles(结构分类/m_type), molecule(来源分类/type)","default":"molecule"},"name":"classification_by","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_List_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/molecules":{"get":{"summary":"Get External Molecules","description":"获取分子列表(外部API - 开放访问)","operationId":"get_external_molecules_v1_external_molecules_get","parameters":[{"description":"页码","required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","maximum":1000.0,"minimum":1.0,"type":"integer","description":"每页数量","default":100},"name":"size","in":"query"},{"description":"分子类型过滤","required":false,"schema":{"title":"M Type","type":"string","description":"分子类型过滤"},"name":"m_type","in":"query"},{"description":"排序字段","required":false,"schema":{"title":"Sort By","type":"string","description":"排序字段"},"name":"sort_by","in":"query"},{"description":"排序顺序: asc 为升序, desc 为降序","required":false,"schema":{"title":"Sort Order","type":"string","description":"排序顺序: asc 为升序, desc 为降序","default":"asc"},"name":"sort_order","in":"query"},{"description":"需要返回的字段列表,逗号分隔","required":false,"schema":{"title":"Fields","type":"string","description":"需要返回的字段列表,逗号分隔"},"name":"fields","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/molecules/{mcd_id}":{"get":{"summary":"Get External Molecule Detail","description":"获取单个分子详情(外部API - 开放访问)","operationId":"get_external_molecule_detail_v1_external_molecules__mcd_id__get","parameters":[{"description":"分子ID","required":true,"schema":{"title":"Mcd Id","type":"string","description":"分子ID"},"name":"mcd_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/targets":{"get":{"summary":"Get External Targets","description":"获取靶点列表(外部API - 开放访问)","operationId":"get_external_targets_v1_external_targets_get","parameters":[{"description":"页码","required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","maximum":1000.0,"minimum":1.0,"type":"integer","description":"每页数量","default":100},"name":"size","in":"query"},{"description":"靶点类型过滤","required":false,"schema":{"title":"Target Type","type":"string","description":"靶点类型过滤"},"name":"target_type","in":"query"},{"description":"排序字段","required":false,"schema":{"title":"Sort By","type":"string","description":"排序字段"},"name":"sort_by","in":"query"},{"description":"排序顺序","required":false,"schema":{"title":"Sort Order","type":"string","description":"排序顺序","default":"asc"},"name":"sort_order","in":"query"},{"description":"需要返回的字段列表,逗号分隔","required":false,"schema":{"title":"Fields","type":"string","description":"需要返回的字段列表,逗号分隔"},"name":"fields","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/targets/{uniprot_id}":{"get":{"summary":"Get External Target Detail","description":"获取单个靶点详情(外部API - 开放访问)","operationId":"get_external_target_detail_v1_external_targets__uniprot_id__get","parameters":[{"description":"靶点UniProt ID","required":true,"schema":{"title":"Uniprot Id","type":"string","description":"靶点UniProt ID"},"name":"uniprot_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/molecule-targets":{"get":{"summary":"Get External Molecule Targets","description":"获取分子-靶点关联列表(外部API - 开放访问)","operationId":"get_external_molecule_targets_v1_external_molecule_targets_get","parameters":[{"description":"页码","required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","maximum":1000.0,"minimum":1.0,"type":"integer","description":"每页数量","default":100},"name":"size","in":"query"},{"description":"分子ID过滤","required":false,"schema":{"title":"Mcd Id","type":"string","description":"分子ID过滤"},"name":"mcd_id","in":"query"},{"description":"靶点ID过滤","required":false,"schema":{"title":"Uniprot Id","type":"string","description":"靶点ID过滤"},"name":"uniprot_id","in":"query"},{"description":"需要返回的字段列表,逗号分隔","required":false,"schema":{"title":"Fields","type":"string","description":"需要返回的字段列表,逗号分隔"},"name":"fields","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/biological-activities":{"get":{"summary":"Get External Biological Activities","description":"获取生物活性数据列表(外部API - 开放访问)","operationId":"get_external_biological_activities_v1_external_biological_activities_get","parameters":[{"description":"页码","required":false,"schema":{"title":"Page","minimum":1.0,"type":"integer","description":"页码","default":1},"name":"page","in":"query"},{"description":"每页数量","required":false,"schema":{"title":"Size","maximum":1000.0,"minimum":1.0,"type":"integer","description":"每页数量","default":100},"name":"size","in":"query"},{"description":"靶点ID过滤","required":false,"schema":{"title":"Uniprot Id","type":"string","description":"靶点ID过滤"},"name":"uniprot_id","in":"query"},{"description":"分子ID过滤","required":false,"schema":{"title":"Mcd Id","type":"string","description":"分子ID过滤"},"name":"mcd_id","in":"query"},{"description":"需要返回的字段列表,逗号分隔","required":false,"schema":{"title":"Fields","type":"string","description":"需要返回的字段列表,逗号分隔"},"name":"fields","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/export/molecules":{"get":{"summary":"Export Molecules","description":"导出分子数据(外部API - 开放访问)","operationId":"export_molecules_v1_external_export_molecules_get","parameters":[{"description":"导出格式: csv, json, excel","required":false,"schema":{"title":"Format","type":"string","description":"导出格式: csv, json, excel","default":"csv"},"name":"format","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/external/export/targets":{"get":{"summary":"Export Targets","description":"导出靶点数据(外部API - 开放访问)","operationId":"export_targets_v1_external_export_targets_get","parameters":[{"description":"导出格式: csv, json, excel","required":false,"schema":{"title":"Format","type":"string","description":"导出格式: csv, json, excel","default":"csv"},"name":"format","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"APIResponse_Dict_str__Any__":{"title":"APIResponse[Dict[str, Any]]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"title":"Data","type":"object"}}},"APIResponse_ImageOut_":{"title":"APIResponse[ImageOut]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/ImageOut"}}},"APIResponse_LinkerResponse_":{"title":"APIResponse[LinkerResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/LinkerResponse"}}},"APIResponse_LinkerTypeResponse_":{"title":"APIResponse[LinkerTypeResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/LinkerTypeResponse"}}},"APIResponse_List_":{"title":"APIResponse[List]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"title":"Data","type":"array","items":{}}}},"APIResponse_List_apps.macrocycle.schemas.TargetStatisticsResponse__":{"title":"APIResponse[List[apps.macrocycle.schemas.TargetStatisticsResponse]]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/TargetStatisticsResponse"}}}},"APIResponse_MTBAResponse_":{"title":"APIResponse[MTBAResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/MTBAResponse"}}},"APIResponse_MacrocyDetailResponse_":{"title":"APIResponse[MacrocyDetailResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/MacrocyDetailResponse"}}},"APIResponse_MacrocyResponse_":{"title":"APIResponse[MacrocyResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/MacrocyResponse"}}},"APIResponse_MacrocycleResponse_":{"title":"APIResponse[MacrocycleResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/MacrocycleResponse"}}},"APIResponse_MacrocyclicResponse_":{"title":"APIResponse[MacrocyclicResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/MacrocyclicResponse"}}},"APIResponse_MacrocyclicTypeResponse_":{"title":"APIResponse[MacrocyclicTypeResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/MacrocyclicTypeResponse"}}},"APIResponse_NoneType_":{"title":"APIResponse[NoneType]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"title":"Data","type":"null"}}},"APIResponse_PDBResponse_":{"title":"APIResponse[PDBResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/PDBResponse"}}},"APIResponse_PDBTypeResponse_":{"title":"APIResponse[PDBTypeResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/PDBTypeResponse"}}},"APIResponse_SimilarityResponse_":{"title":"APIResponse[SimilarityResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/SimilarityResponse"}}},"APIResponse_StatisticResponse_":{"title":"APIResponse[StatisticResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/StatisticResponse"}}},"APIResponse_TargetBaisResponse_":{"title":"APIResponse[TargetBaisResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/TargetBaisResponse"}}},"APIResponse_TargetIdResponse_":{"title":"APIResponse[TargetIdResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/TargetIdResponse"}}},"APIResponse_TargetResponse_":{"title":"APIResponse[TargetResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/TargetResponse"}}},"APIResponse_TargetSearchResponse_":{"title":"APIResponse[TargetSearchResponse]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/TargetSearchResponse"}}},"APIResponse_TaskOut_":{"title":"APIResponse[TaskOut]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"$ref":"#/components/schemas/TaskOut"}}},"APIResponse_dict_":{"title":"APIResponse[dict]","required":["success","msg"],"type":"object","properties":{"success":{"title":"Success","type":"boolean"},"msg":{"title":"Msg","type":"string"},"data":{"title":"Data","type":"object"}}},"Body_get_macro_design_v1_image_macro_design_first_step_post":{"title":"Body_get_macro_design_v1_image_macro_design_first_step_post","required":["pdb_file","idx1","idx2","idx3","idx4"],"type":"object","properties":{"pdb_file":{"title":"Pdb File","type":"string","format":"binary"},"idx1":{"title":"Idx1","type":"integer"},"idx2":{"title":"Idx2","type":"integer"},"idx3":{"title":"Idx3","type":"integer"},"idx4":{"title":"Idx4","type":"integer"},"product_smiles_set":{"title":"Product Smiles Set","type":"array","items":{"type":"string"}}}},"Body_get_pdb_image_v1_image_pdb_post":{"title":"Body_get_pdb_image_v1_image_pdb_post","required":["sdf_file"],"type":"object","properties":{"sdf_file":{"title":"Sdf File","type":"string","format":"binary"}}},"Body_init_macro_design_v1_image_macro_design_init_post":{"title":"Body_init_macro_design_v1_image_macro_design_init_post","required":["sdf_file","idx1","idx2","idx3","idx4"],"type":"object","properties":{"sdf_file":{"title":"Sdf File","type":"string","format":"binary"},"protein_file":{"title":"Protein File","type":"string","format":"binary"},"idx1":{"title":"Idx1","type":"integer"},"idx2":{"title":"Idx2","type":"integer"},"idx3":{"title":"Idx3","type":"integer"},"idx4":{"title":"Idx4","type":"integer"},"product_smiles_set":{"title":"Product Smiles Set","type":"array","items":{"type":"string"}}}},"Body_split_pdb_v1_substructure_split_pdb_post":{"title":"Body_split_pdb_v1_substructure_split_pdb_post","type":"object","properties":{"pdb_id":{"title":"Pdb Id","type":"string","default":""},"pdb_file":{"title":"Pdb File","type":"string","format":"binary"}}},"DpptInfo":{"title":"DpptInfo","type":"object","properties":{"MCD_ID":{"title":"Mcd Id","type":"string"},"Uniprot_ID":{"title":"Uniprot Id","type":"string"},"IDG":{"title":"Idg","type":"string"},"Assay_Type":{"title":"Assay Type","type":"string"},"Assay_Variant_Mutation":{"title":"Assay Variant Mutation","type":"string"},"A_type":{"title":"A Type","type":"string"},"A_value":{"title":"A Value","type":"number"},"doi":{"title":"Doi","type":"string"},"DOI_link":{"title":"Doi Link","type":"string"},"Document_Year":{"title":"Document Year","type":"integer"},"SMILES":{"title":"Smiles","type":"string"}},"description":"DPPT信息"},"HTTPValidationError":{"title":"HTTPValidationError","type":"object","properties":{"detail":{"title":"Detail","type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"ImageOut":{"title":"ImageOut","required":["img"],"type":"object","properties":{"img":{"title":"Img","type":"string"}}},"LinkerInfo":{"title":"LinkerInfo","type":"object","properties":{"MCD_ID":{"title":"Mcd Id","type":"string"},"SMILES":{"title":"Smiles","type":"string"},"Linker":{"title":"Linker","type":"string"},"Linker_type":{"title":"Linker Type","type":"string"},"Linker_length_B":{"title":"Linker Length B","type":"integer"},"Linker_length":{"title":"Linker Length","type":"number"},"Ligand_str":{"title":"Ligand Str","type":"string"},"Ligand_sml":{"title":"Ligand Sml","type":"string"},"MW":{"title":"Mw","type":"number"},"Molecular_Formula":{"title":"Molecular Formula","type":"string"}},"description":"连接子信息"},"LinkerResponse":{"title":"LinkerResponse","required":["total","data"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/LinkerInfo"}}},"description":"连接子列表响应"},"LinkerTypeItem":{"title":"LinkerTypeItem","required":["name","value"],"type":"object","properties":{"name":{"title":"Name","type":"string"},"value":{"title":"Value","type":"integer"}},"description":"连接子类型项"},"LinkerTypeResponse":{"title":"LinkerTypeResponse","required":["type","length"],"type":"object","properties":{"type":{"title":"Type","type":"array","items":{"$ref":"#/components/schemas/LinkerTypeItem"}},"length":{"title":"Length","type":"array","items":{"$ref":"#/components/schemas/LinkerTypeItem"}}},"description":"连接子类型统计响应"},"MTBAResponse":{"title":"MTBAResponse","required":["data","total"],"type":"object","properties":{"data":{"title":"Data","type":"array","items":{"type":"object"}},"total":{"title":"Total","type":"integer"}},"description":"分子靶点关联响应"},"MacrocyDetailResponse":{"title":"MacrocyDetailResponse","required":["info","mrcs","tba","overview"],"type":"object","properties":{"info":{"title":"Info","type":"object"},"mrcs":{"title":"Mrcs","type":"object"},"tba":{"title":"Tba","type":"array","items":{"type":"object"}},"overview":{"title":"Overview","type":"array","items":{"type":"object"}}},"description":"分子详情响应"},"MacrocyResponse":{"title":"MacrocyResponse","required":["data","total"],"type":"object","properties":{"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/MacrocycleInfo"}},"total":{"title":"Total","type":"integer"}},"description":"分子列表响应"},"MacrocycleInfo":{"title":"MacrocycleInfo","type":"object","properties":{"MCD_ID":{"title":"Mcd Id","type":"string"},"SMILES":{"title":"Smiles","type":"string"},"InChI_Key":{"title":"Inchi Key","type":"string"},"InChI_key":{"title":"Inchi Key","type":"string"},"Molecule_Name":{"title":"Molecule Name","type":"string"},"Molecular_Name":{"title":"Molecular Name","type":"string"},"Structure":{"title":"Structure","type":"string"},"Synonyms":{"title":"Synonyms","type":"string"},"M_type":{"title":"M Type","type":"string"},"Status":{"title":"Status","type":"string"},"Max_Phase":{"title":"Max Phase","type":"string"},"Uniprot_ID":{"title":"Uniprot Id","type":"string"},"Target":{"title":"Target","type":"string"},"InChI":{"title":"Inchi","type":"string"},"IUPAC_Name":{"title":"Iupac Name","type":"string"},"Molecular_Formula":{"title":"Molecular Formula","type":"string"},"Molecular_Weight":{"title":"Molecular Weight","type":"number"},"MW":{"title":"Mw","type":"number"},"largest_r_s":{"title":"Largest R S","type":"integer"},"Largest_Ring_Size":{"title":"Largest Ring Size","type":"integer"},"QED":{"title":"Qed","type":"number"},"LogP":{"title":"Logp","type":"number"},"HBD":{"title":"Hbd","type":"integer"},"HBA":{"title":"Hba","type":"integer"},"NRB":{"title":"Nrb","type":"integer"},"NRotB":{"title":"Nrotb","type":"integer"},"RotB":{"title":"Rotb","type":"integer"},"TPSA":{"title":"Tpsa","type":"number"},"DOU":{"title":"Dou","type":"number"},"Number_of_Aromatic_Rings":{"title":"Number Of Aromatic Rings","type":"integer"},"ChiralCenters_HA":{"title":"Chiralcenters Ha","type":"number"},"Molecule_Fsp3":{"title":"Molecule Fsp3","type":"number"},"TotalOxygen_HA":{"title":"Totaloxygen Ha","type":"integer"},"TotalNitrogen_HA":{"title":"Totalnitrogen Ha","type":"integer"},"TotalHeteroatom_HA":{"title":"Totalheteroatom Ha","type":"integer"},"Spiro_Rings":{"title":"Spiro Rings","type":"integer"},"nSugars":{"title":"Nsugars","type":"integer"},"N_HA":{"title":"N Ha","type":"number"},"RingChiralCenters_N":{"title":"Ringchiralcenters N","type":"number"},"RingOxygen_N":{"title":"Ringoxygen N","type":"number"},"RingNitrogen_N":{"title":"Ringnitrogen N","type":"number"},"RingN_O":{"title":"Ringn O","type":"number"},"RingHeteroatom_N":{"title":"Ringheteroatom N","type":"number"},"MC_Ester_Bonds":{"title":"Mc Ester Bonds","type":"integer"},"MC_Amide_Bonds":{"title":"Mc Amide Bonds","type":"integer"},"MC_Peptide_Character_Index":{"title":"Mc Peptide Character Index","type":"number"},"MC_Non_restricted_N":{"title":"Mc Non Restricted N","type":"number"},"PeriphCount_N":{"title":"Periphcount N","type":"number"},"PeriphO_PeriphHA":{"title":"Peripho Periphha","type":"number"},"PeriphN_PeriphHA":{"title":"Periphn Periphha","type":"number"},"PeriphN_O":{"title":"Periphn O","type":"number"},"PeriphHeteroatoms_PeriphHA":{"title":"Periphheteroatoms Periphha","type":"number"},"Substituent_Fsp3":{"title":"Substituent Fsp3","type":"number"},"SubO_SubHA":{"title":"Subo Subha","type":"number"},"SubN_SubHA":{"title":"Subn Subha","type":"number"},"SubHeteroatom_SubHA":{"title":"Subheteroatom Subha","type":"number"},"Substituent_Rotation":{"title":"Substituent Rotation","type":"number"},"Maximum_Substituent_Size":{"title":"Maximum Substituent Size","type":"integer"},"Minimum_Substituent_Size":{"title":"Minimum Substituent Size","type":"integer"},"Mean_Substituent_Size":{"title":"Mean Substituent Size","type":"number"},"Substituent_Size_st_dev":{"title":"Substituent Size St Dev","type":"number"},"Substituent_Size_Distribution":{"title":"Substituent Size Distribution","type":"number"},"Max_Gap_Size":{"title":"Max Gap Size","type":"integer"},"Min_Gap_Size":{"title":"Min Gap Size","type":"integer"},"Mean_Gap_Size":{"title":"Mean Gap Size","type":"number"},"Gap_Size_st_dev":{"title":"Gap Size St Dev","type":"number"},"Max_Gap_Size_N":{"title":"Max Gap Size N","type":"number"},"Min_Gap_Size_N":{"title":"Min Gap Size N","type":"number"},"Mean_Gap_Size_N":{"title":"Mean Gap Size N","type":"number"},"Gap_Size_st_dev_N":{"title":"Gap Size St Dev N","type":"number"},"model_config":{"title":"Model Config","type":"object","default":{"extra":"allow"}}},"description":"大环分子信息 - 包含所有数据库字段"},"MacrocycleResponse":{"title":"MacrocycleResponse","required":["total","data"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/MacrocycleInfo"}}},"description":"大环分子列表响应"},"MacrocycleSearchRequest":{"title":"MacrocycleSearchRequest","type":"object","properties":{"query":{"title":"Query","type":"array","items":{}},"q":{"title":"Q","type":"string","default":""},"page":{"title":"Page","type":"integer","default":1},"size":{"title":"Size","type":"integer","default":10},"sort_by":{"title":"Sort By","type":"string"},"sort_order":{"title":"Sort Order","type":"string","default":"asc"},"type":{"title":"Type","type":"string","default":"All"}},"description":"搜索大环分子的请求体"},"MacrocyclicInfo":{"title":"MacrocyclicInfo","type":"object","properties":{"MCD_ID":{"title":"Mcd Id","type":"string"},"Drug_name":{"title":"Drug Name","type":"string"},"M_type":{"title":"M Type","type":"string"},"largest_r_s":{"title":"Largest R S","type":"integer"},"Status":{"title":"Status","type":"string"},"FDA_year":{"title":"Fda Year","type":"integer"},"Target":{"title":"Target","type":"string"},"Target_type":{"title":"Target Type","type":"string"},"Disease":{"title":"Disease","type":"string"},"SMILES":{"title":"Smiles","type":"string"},"DRUGBANK_ID":{"title":"Drugbank Id","type":"string"},"Drug_name_linker":{"title":"Drug Name Linker","type":"string"}},"description":"大环药物信息"},"MacrocyclicResponse":{"title":"MacrocyclicResponse","required":["total","data"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/MacrocyclicInfo"}}},"description":"大环药物列表响应"},"MacrocyclicTypeResponse":{"title":"MacrocyclicTypeResponse","required":["types","targetTypes"],"type":"object","properties":{"types":{"title":"Types","type":"array","items":{"type":"string"}},"targetTypes":{"title":"Targettypes","type":"array","items":{"type":"string"}}},"description":"大环药物类型统计响应"},"PDBInfo":{"title":"PDBInfo","type":"object","properties":{"MCD_ID":{"title":"Mcd Id","type":"string"},"Uniprot_ID":{"title":"Uniprot Id","type":"string"},"PDB":{"title":"Pdb","type":"string"},"largest_r_s":{"title":"Largest R S","type":"integer"},"Ligand_name":{"title":"Ligand Name","type":"string"},"MW":{"title":"Mw","type":"number"},"SMILES":{"title":"Smiles","type":"string"},"M_type":{"title":"M Type","type":"string"},"Total_L_SA":{"title":"Total L Sa","type":"number"},"Ligand_b_SASA":{"title":"Ligand B Sasa","type":"number"},"Exposure":{"title":"Exposure","type":"number"},"Exp_method":{"title":"Exp Method","type":"string"},"Structure_Des":{"title":"Structure Des","type":"string"},"Target":{"title":"Target","type":"string"},"Target_Name":{"title":"Target Name","type":"string"},"Full_Name":{"title":"Full Name","type":"string"},"Gene_Name":{"title":"Gene Name","type":"string"},"Alias":{"title":"Alias","type":"string"},"Species":{"title":"Species","type":"string"},"Target_type":{"title":"Target Type","type":"string"},"PDBID_link":{"title":"Pdbid Link","type":"string"},"Literature":{"title":"Literature","type":"string"},"Literature_Linker":{"title":"Literature Linker","type":"string"},"Document_Year":{"title":"Document Year","type":"integer"},"Resolution":{"title":"Resolution","type":"number"}},"description":"PDB结构信息"},"PDBResponse":{"title":"PDBResponse","required":["total","data"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/PDBInfo"}}},"description":"PDB结构列表响应"},"PDBTypeResponse":{"title":"PDBTypeResponse","required":["mtypes","types"],"type":"object","properties":{"mtypes":{"title":"Mtypes","type":"array","items":{"type":"string"}},"types":{"title":"Types","type":"array","items":{"type":"string"}}},"description":"PDB类型统计响应"},"SimilarityInfo":{"title":"SimilarityInfo","required":["type","smiles","id"],"type":"object","properties":{"type":{"title":"Type","type":"string"},"smiles":{"title":"Smiles","type":"string"},"id":{"title":"Id","type":"string"}},"description":"相似分子信息"},"SimilarityResponse":{"title":"SimilarityResponse","required":["total","data"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/SimilarityInfo"}}},"description":"分子相似性响应"},"SmilesAndThreshold":{"title":"SmilesAndThreshold","required":["smiles","threshold"],"type":"object","properties":{"smiles":{"title":"Smiles","type":"string"},"threshold":{"title":"Threshold","type":"number"}}},"SmilesIn":{"title":"SmilesIn","required":["smiles"],"type":"object","properties":{"smiles":{"title":"Smiles","type":"string"}}},"StatisticInfo":{"title":"StatisticInfo","type":"object","properties":{"descriptor":{"title":"Descriptor","type":"string"},"type":{"title":"Type","type":"string"},"M_type":{"title":"M Type","type":"string"},"descriptor_v":{"title":"Descriptor V","type":"integer"},"X":{"title":"X","type":"string"}},"description":"统计信息"},"StatisticResponse":{"title":"StatisticResponse","required":["data"],"type":"object","properties":{"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/StatisticInfo"}}},"description":"统计响应"},"TargetBaiInfo":{"title":"TargetBaiInfo","type":"object","properties":{"MCD_ID":{"title":"Mcd Id","type":"string"},"Uniprot_ID":{"title":"Uniprot Id","type":"string"},"IDG":{"title":"Idg","type":"string"},"Assay_Type":{"title":"Assay Type","type":"string"},"Assay_Variant_Mutation":{"title":"Assay Variant Mutation","type":"string"},"A_type":{"title":"A Type","type":"string"},"A_value":{"title":"A Value","type":"number"},"doi":{"title":"Doi","type":"string"},"DOI_link":{"title":"Doi Link","type":"string"},"Document_Year":{"title":"Document Year","type":"integer"},"SMILES":{"title":"Smiles","type":"string"}},"description":"靶点BAI信息"},"TargetBaisResponse":{"title":"TargetBaisResponse","required":["total","list"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"list":{"title":"List","type":"array","items":{"$ref":"#/components/schemas/TargetBaiInfo"}}},"description":"靶点BAI响应"},"TargetDetail":{"title":"TargetDetail","required":["info"],"type":"object","properties":{"info":{"$ref":"#/components/schemas/TargetInfo"},"pdb":{"title":"Pdb","type":"array","items":{"$ref":"#/components/schemas/PDBInfo"},"default":[]},"dppt":{"title":"Dppt","type":"array","items":{"$ref":"#/components/schemas/DpptInfo"},"default":[]}},"description":"靶点详情"},"TargetIdResponse":{"title":"TargetIdResponse","required":["data"],"type":"object","properties":{"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/TargetDetail"}}},"description":"靶点详情响应"},"TargetInfo":{"title":"TargetInfo","required":["Uniprot_ID"],"type":"object","properties":{"Uniprot_ID":{"title":"Uniprot Id","type":"string"},"Target_Name":{"title":"Target Name","type":"string"},"Full_Name":{"title":"Full Name","type":"string"},"Gene_Name":{"title":"Gene Name","type":"string"},"Alias":{"title":"Alias","type":"string"},"Species":{"title":"Species","type":"string"},"Sequence":{"title":"Sequence","type":"string"},"Target_type":{"title":"Target Type","type":"string"},"Number_of_macrocycles":{"title":"Number Of Macrocycles","type":"integer"},"LINK_Uniprot":{"title":"Link Uniprot","type":"string"},"Function":{"title":"Function","type":"string"},"Synthetic_Macrocycle":{"title":"Synthetic Macrocycle","type":"integer","default":0},"Cyclic_Peptide":{"title":"Cyclic Peptide","type":"integer","default":0},"Macrolide":{"title":"Macrolide","type":"integer","default":0},"Porphyrin":{"title":"Porphyrin","type":"integer","default":0},"Macrocyclic_Polyene":{"title":"Macrocyclic Polyene","type":"integer","default":0},"Other":{"title":"Other","type":"integer","default":0}},"description":"靶点基本信息"},"TargetResponse":{"title":"TargetResponse","required":["total","data"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/TargetInfo"}}},"description":"靶点列表响应"},"TargetSearchResponse":{"title":"TargetSearchResponse","required":["total","data"],"type":"object","properties":{"total":{"title":"Total","type":"integer"},"data":{"title":"Data","type":"array","items":{"$ref":"#/components/schemas/TargetInfo"}}},"description":"靶点搜索响应"},"TargetStatisticsResponse":{"title":"TargetStatisticsResponse","required":["name","value"],"type":"object","properties":{"name":{"title":"Name","type":"string"},"value":{"title":"Value","type":"integer"}},"description":"靶点统计响应"},"TaskOut":{"title":"TaskOut","required":["task_status"],"type":"object","properties":{"id":{"title":"Id","type":"integer"},"task_id":{"title":"Task Id","type":"string"},"task_status":{"title":"Task Status","anyOf":[{"$ref":"#/components/schemas/TaskStatus"},{"type":"string"}]},"output_result":{"title":"Output Result","anyOf":[{"type":"object"},{"type":"string"},{"type":"array","items":{}}]}}},"TaskStatus":{"title":"TaskStatus","enum":["PENDING","IN_PROGRESS","SUCCESS","FAILED"],"description":"An enumeration."},"ValidationError":{"title":"ValidationError","required":["loc","msg","type"],"type":"object","properties":{"loc":{"title":"Location","type":"array","items":{"anyOf":[{"type":"string"},{"type":"integer"}]}},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}}}}}} |