huaweicloudsdkeihealth 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkeihealth/v1/__init__.py +100 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +5335 -3295
- huaweicloudsdkeihealth/v1/eihealth_client.py +5335 -3295
- huaweicloudsdkeihealth/v1/model/__init__.py +100 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
- huaweicloudsdkeihealth/v1/model/base_model_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
- huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
- huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
- huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
- huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
- huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_fep_job_req.py +30 -1
- huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
- huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +59 -1
- huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
- huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
- huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
- huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
- huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
- huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
- huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
- huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
- huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
- huaweicloudsdkeihealth/v1/model/job_result.py +32 -3
- huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
- huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
- huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
- huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
- huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
- huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
- huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
- huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
- huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
- huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
- huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
- huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
- huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
- huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_fep_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +199 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +55 -1
- huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
- huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
- huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
- huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
- huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
- huaweicloudsdkeihealth/v1/model/task_progress.py +115 -0
- huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
- huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
- huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateMolDockingJobRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'eihealth_project_id': 'str',
|
21
|
+
'body': 'CreateMolDockingJobReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'eihealth_project_id': 'eihealth_project_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, eihealth_project_id=None, body=None):
|
30
|
+
"""CreateMolDockingJobRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param eihealth_project_id: 平台项目ID。
|
35
|
+
:type eihealth_project_id: str
|
36
|
+
:param body: Body of the CreateMolDockingJobRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._eihealth_project_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.eihealth_project_id = eihealth_project_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def eihealth_project_id(self):
|
52
|
+
"""Gets the eihealth_project_id of this CreateMolDockingJobRequest.
|
53
|
+
|
54
|
+
平台项目ID。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this CreateMolDockingJobRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._eihealth_project_id
|
60
|
+
|
61
|
+
@eihealth_project_id.setter
|
62
|
+
def eihealth_project_id(self, eihealth_project_id):
|
63
|
+
"""Sets the eihealth_project_id of this CreateMolDockingJobRequest.
|
64
|
+
|
65
|
+
平台项目ID。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this CreateMolDockingJobRequest.
|
68
|
+
:type eihealth_project_id: str
|
69
|
+
"""
|
70
|
+
self._eihealth_project_id = eihealth_project_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
"""Gets the body of this CreateMolDockingJobRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateMolDockingJobRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this CreateMolDockingJobRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateMolDockingJobRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, CreateMolDockingJobRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CreateMolDockingJobResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'vina_score': 'float',
|
22
|
+
'pose': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'vina_score': 'vina_score',
|
27
|
+
'pose': 'pose'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, vina_score=None, pose=None):
|
31
|
+
"""CreateMolDockingJobResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param vina_score: 对接打分结果。
|
36
|
+
:type vina_score: float
|
37
|
+
:param pose: 对接构象。
|
38
|
+
:type pose: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(CreateMolDockingJobResponse, self).__init__()
|
42
|
+
|
43
|
+
self._vina_score = None
|
44
|
+
self._pose = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if vina_score is not None:
|
48
|
+
self.vina_score = vina_score
|
49
|
+
if pose is not None:
|
50
|
+
self.pose = pose
|
51
|
+
|
52
|
+
@property
|
53
|
+
def vina_score(self):
|
54
|
+
"""Gets the vina_score of this CreateMolDockingJobResponse.
|
55
|
+
|
56
|
+
对接打分结果。
|
57
|
+
|
58
|
+
:return: The vina_score of this CreateMolDockingJobResponse.
|
59
|
+
:rtype: float
|
60
|
+
"""
|
61
|
+
return self._vina_score
|
62
|
+
|
63
|
+
@vina_score.setter
|
64
|
+
def vina_score(self, vina_score):
|
65
|
+
"""Sets the vina_score of this CreateMolDockingJobResponse.
|
66
|
+
|
67
|
+
对接打分结果。
|
68
|
+
|
69
|
+
:param vina_score: The vina_score of this CreateMolDockingJobResponse.
|
70
|
+
:type vina_score: float
|
71
|
+
"""
|
72
|
+
self._vina_score = vina_score
|
73
|
+
|
74
|
+
@property
|
75
|
+
def pose(self):
|
76
|
+
"""Gets the pose of this CreateMolDockingJobResponse.
|
77
|
+
|
78
|
+
对接构象。
|
79
|
+
|
80
|
+
:return: The pose of this CreateMolDockingJobResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._pose
|
84
|
+
|
85
|
+
@pose.setter
|
86
|
+
def pose(self, pose):
|
87
|
+
"""Sets the pose of this CreateMolDockingJobResponse.
|
88
|
+
|
89
|
+
对接构象。
|
90
|
+
|
91
|
+
:param pose: The pose of this CreateMolDockingJobResponse.
|
92
|
+
:type pose: str
|
93
|
+
"""
|
94
|
+
self._pose = pose
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, CreateMolDockingJobResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -21,9 +21,11 @@ class CreateOptmJobReq:
|
|
21
21
|
'smiles': 'str',
|
22
22
|
'molecule_file': 'DrugFile',
|
23
23
|
'binding_site': 'BindSiteDto',
|
24
|
+
'binding_sites': 'list[BindSiteDto]',
|
24
25
|
'weak_constraints': 'list[WeakConstraintDto]',
|
25
26
|
'strong_constraints': 'list[StrongConstraintDto]',
|
26
27
|
'sampler_mixin_weight': 'float',
|
28
|
+
'base_model_id': 'str',
|
27
29
|
'model_ids': 'list[str]',
|
28
30
|
'num_trials': 'int'
|
29
31
|
}
|
@@ -33,14 +35,16 @@ class CreateOptmJobReq:
|
|
33
35
|
'smiles': 'smiles',
|
34
36
|
'molecule_file': 'molecule_file',
|
35
37
|
'binding_site': 'binding_site',
|
38
|
+
'binding_sites': 'binding_sites',
|
36
39
|
'weak_constraints': 'weak_constraints',
|
37
40
|
'strong_constraints': 'strong_constraints',
|
38
41
|
'sampler_mixin_weight': 'sampler_mixin_weight',
|
42
|
+
'base_model_id': 'base_model_id',
|
39
43
|
'model_ids': 'model_ids',
|
40
44
|
'num_trials': 'num_trials'
|
41
45
|
}
|
42
46
|
|
43
|
-
def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_site=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, model_ids=None, num_trials=None):
|
47
|
+
def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, base_model_id=None, model_ids=None, num_trials=None):
|
44
48
|
"""CreateOptmJobReq
|
45
49
|
|
46
50
|
The model defined in huaweicloud sdk
|
@@ -53,12 +57,16 @@ class CreateOptmJobReq:
|
|
53
57
|
:type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
54
58
|
:param binding_site:
|
55
59
|
:type binding_site: :class:`huaweicloudsdkeihealth.v1.BindSiteDto`
|
60
|
+
:param binding_sites: 受体列表和受体是二选一的关系,受体列表优先级最高
|
61
|
+
:type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
56
62
|
:param weak_constraints: 弱约束集合
|
57
63
|
:type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
|
58
64
|
:param strong_constraints: 强约束集合
|
59
65
|
:type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
60
66
|
:param sampler_mixin_weight: 初始化采样权重,参数范围(0.5, 1),不包含0.5和1,默认为0.6
|
61
67
|
:type sampler_mixin_weight: float
|
68
|
+
:param base_model_id: 基模型id
|
69
|
+
:type base_model_id: str
|
62
70
|
:param model_ids: 模型id列表
|
63
71
|
:type model_ids: list[str]
|
64
72
|
:param num_trials: 生成分子数量
|
@@ -71,9 +79,11 @@ class CreateOptmJobReq:
|
|
71
79
|
self._smiles = None
|
72
80
|
self._molecule_file = None
|
73
81
|
self._binding_site = None
|
82
|
+
self._binding_sites = None
|
74
83
|
self._weak_constraints = None
|
75
84
|
self._strong_constraints = None
|
76
85
|
self._sampler_mixin_weight = None
|
86
|
+
self._base_model_id = None
|
77
87
|
self._model_ids = None
|
78
88
|
self._num_trials = None
|
79
89
|
self.discriminator = None
|
@@ -85,12 +95,16 @@ class CreateOptmJobReq:
|
|
85
95
|
self.molecule_file = molecule_file
|
86
96
|
if binding_site is not None:
|
87
97
|
self.binding_site = binding_site
|
98
|
+
if binding_sites is not None:
|
99
|
+
self.binding_sites = binding_sites
|
88
100
|
if weak_constraints is not None:
|
89
101
|
self.weak_constraints = weak_constraints
|
90
102
|
if strong_constraints is not None:
|
91
103
|
self.strong_constraints = strong_constraints
|
92
104
|
if sampler_mixin_weight is not None:
|
93
105
|
self.sampler_mixin_weight = sampler_mixin_weight
|
106
|
+
if base_model_id is not None:
|
107
|
+
self.base_model_id = base_model_id
|
94
108
|
if model_ids is not None:
|
95
109
|
self.model_ids = model_ids
|
96
110
|
if num_trials is not None:
|
@@ -172,6 +186,28 @@ class CreateOptmJobReq:
|
|
172
186
|
"""
|
173
187
|
self._binding_site = binding_site
|
174
188
|
|
189
|
+
@property
|
190
|
+
def binding_sites(self):
|
191
|
+
"""Gets the binding_sites of this CreateOptmJobReq.
|
192
|
+
|
193
|
+
受体列表和受体是二选一的关系,受体列表优先级最高
|
194
|
+
|
195
|
+
:return: The binding_sites of this CreateOptmJobReq.
|
196
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
197
|
+
"""
|
198
|
+
return self._binding_sites
|
199
|
+
|
200
|
+
@binding_sites.setter
|
201
|
+
def binding_sites(self, binding_sites):
|
202
|
+
"""Sets the binding_sites of this CreateOptmJobReq.
|
203
|
+
|
204
|
+
受体列表和受体是二选一的关系,受体列表优先级最高
|
205
|
+
|
206
|
+
:param binding_sites: The binding_sites of this CreateOptmJobReq.
|
207
|
+
:type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
208
|
+
"""
|
209
|
+
self._binding_sites = binding_sites
|
210
|
+
|
175
211
|
@property
|
176
212
|
def weak_constraints(self):
|
177
213
|
"""Gets the weak_constraints of this CreateOptmJobReq.
|
@@ -238,6 +274,28 @@ class CreateOptmJobReq:
|
|
238
274
|
"""
|
239
275
|
self._sampler_mixin_weight = sampler_mixin_weight
|
240
276
|
|
277
|
+
@property
|
278
|
+
def base_model_id(self):
|
279
|
+
"""Gets the base_model_id of this CreateOptmJobReq.
|
280
|
+
|
281
|
+
基模型id
|
282
|
+
|
283
|
+
:return: The base_model_id of this CreateOptmJobReq.
|
284
|
+
:rtype: str
|
285
|
+
"""
|
286
|
+
return self._base_model_id
|
287
|
+
|
288
|
+
@base_model_id.setter
|
289
|
+
def base_model_id(self, base_model_id):
|
290
|
+
"""Sets the base_model_id of this CreateOptmJobReq.
|
291
|
+
|
292
|
+
基模型id
|
293
|
+
|
294
|
+
:param base_model_id: The base_model_id of this CreateOptmJobReq.
|
295
|
+
:type base_model_id: str
|
296
|
+
"""
|
297
|
+
self._base_model_id = base_model_id
|
298
|
+
|
241
299
|
@property
|
242
300
|
def model_ids(self):
|
243
301
|
"""Gets the model_ids of this CreateOptmJobReq.
|