huaweicloudsdkeihealth 3.1.108__py2.py3-none-any.whl → 3.1.109__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 +31 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +543 -0
- huaweicloudsdkeihealth/v1/eihealth_client.py +543 -0
- huaweicloudsdkeihealth/v1/model/__init__.py +31 -0
- huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
- huaweicloudsdkeihealth/v1/model/base_model_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/bind_site_dto.py +3 -3
- huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
- huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
- 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_dock_job_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
- 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_optm_job_req.py +30 -1
- 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/fasta_receptor.py +197 -0
- 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/list_base_model_request.py +202 -0
- huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
- 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/pocket_fragment.py +30 -1
- 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/show_admet_job_response.py +57 -3
- 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_gen_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +26 -1
- 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/weak_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/RECORD +57 -26
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,187 @@
|
|
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 ShowTargetOptJobResponse(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
|
+
'basic_info': 'DrugJobDto',
|
22
|
+
'receptor': 'TargetOptReceptor',
|
23
|
+
'ligand': 'TargetOptLigand',
|
24
|
+
'md_params': 'MdParam'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'basic_info': 'basic_info',
|
29
|
+
'receptor': 'receptor',
|
30
|
+
'ligand': 'ligand',
|
31
|
+
'md_params': 'md_params'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, basic_info=None, receptor=None, ligand=None, md_params=None):
|
35
|
+
"""ShowTargetOptJobResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param basic_info:
|
40
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
41
|
+
:param receptor:
|
42
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor`
|
43
|
+
:param ligand:
|
44
|
+
:type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand`
|
45
|
+
:param md_params:
|
46
|
+
:type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam`
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ShowTargetOptJobResponse, self).__init__()
|
50
|
+
|
51
|
+
self._basic_info = None
|
52
|
+
self._receptor = None
|
53
|
+
self._ligand = None
|
54
|
+
self._md_params = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if basic_info is not None:
|
58
|
+
self.basic_info = basic_info
|
59
|
+
if receptor is not None:
|
60
|
+
self.receptor = receptor
|
61
|
+
if ligand is not None:
|
62
|
+
self.ligand = ligand
|
63
|
+
if md_params is not None:
|
64
|
+
self.md_params = md_params
|
65
|
+
|
66
|
+
@property
|
67
|
+
def basic_info(self):
|
68
|
+
"""Gets the basic_info of this ShowTargetOptJobResponse.
|
69
|
+
|
70
|
+
:return: The basic_info of this ShowTargetOptJobResponse.
|
71
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
72
|
+
"""
|
73
|
+
return self._basic_info
|
74
|
+
|
75
|
+
@basic_info.setter
|
76
|
+
def basic_info(self, basic_info):
|
77
|
+
"""Sets the basic_info of this ShowTargetOptJobResponse.
|
78
|
+
|
79
|
+
:param basic_info: The basic_info of this ShowTargetOptJobResponse.
|
80
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
81
|
+
"""
|
82
|
+
self._basic_info = basic_info
|
83
|
+
|
84
|
+
@property
|
85
|
+
def receptor(self):
|
86
|
+
"""Gets the receptor of this ShowTargetOptJobResponse.
|
87
|
+
|
88
|
+
:return: The receptor of this ShowTargetOptJobResponse.
|
89
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor`
|
90
|
+
"""
|
91
|
+
return self._receptor
|
92
|
+
|
93
|
+
@receptor.setter
|
94
|
+
def receptor(self, receptor):
|
95
|
+
"""Sets the receptor of this ShowTargetOptJobResponse.
|
96
|
+
|
97
|
+
:param receptor: The receptor of this ShowTargetOptJobResponse.
|
98
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor`
|
99
|
+
"""
|
100
|
+
self._receptor = receptor
|
101
|
+
|
102
|
+
@property
|
103
|
+
def ligand(self):
|
104
|
+
"""Gets the ligand of this ShowTargetOptJobResponse.
|
105
|
+
|
106
|
+
:return: The ligand of this ShowTargetOptJobResponse.
|
107
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand`
|
108
|
+
"""
|
109
|
+
return self._ligand
|
110
|
+
|
111
|
+
@ligand.setter
|
112
|
+
def ligand(self, ligand):
|
113
|
+
"""Sets the ligand of this ShowTargetOptJobResponse.
|
114
|
+
|
115
|
+
:param ligand: The ligand of this ShowTargetOptJobResponse.
|
116
|
+
:type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand`
|
117
|
+
"""
|
118
|
+
self._ligand = ligand
|
119
|
+
|
120
|
+
@property
|
121
|
+
def md_params(self):
|
122
|
+
"""Gets the md_params of this ShowTargetOptJobResponse.
|
123
|
+
|
124
|
+
:return: The md_params of this ShowTargetOptJobResponse.
|
125
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.MdParam`
|
126
|
+
"""
|
127
|
+
return self._md_params
|
128
|
+
|
129
|
+
@md_params.setter
|
130
|
+
def md_params(self, md_params):
|
131
|
+
"""Sets the md_params of this ShowTargetOptJobResponse.
|
132
|
+
|
133
|
+
:param md_params: The md_params of this ShowTargetOptJobResponse.
|
134
|
+
:type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam`
|
135
|
+
"""
|
136
|
+
self._md_params = md_params
|
137
|
+
|
138
|
+
def to_dict(self):
|
139
|
+
"""Returns the model properties as a dict"""
|
140
|
+
result = {}
|
141
|
+
|
142
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
143
|
+
value = getattr(self, attr)
|
144
|
+
if isinstance(value, list):
|
145
|
+
result[attr] = list(map(
|
146
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
147
|
+
value
|
148
|
+
))
|
149
|
+
elif hasattr(value, "to_dict"):
|
150
|
+
result[attr] = value.to_dict()
|
151
|
+
elif isinstance(value, dict):
|
152
|
+
result[attr] = dict(map(
|
153
|
+
lambda item: (item[0], item[1].to_dict())
|
154
|
+
if hasattr(item[1], "to_dict") else item,
|
155
|
+
value.items()
|
156
|
+
))
|
157
|
+
else:
|
158
|
+
if attr in self.sensitive_list:
|
159
|
+
result[attr] = "****"
|
160
|
+
else:
|
161
|
+
result[attr] = value
|
162
|
+
|
163
|
+
return result
|
164
|
+
|
165
|
+
def to_str(self):
|
166
|
+
"""Returns the string representation of the model"""
|
167
|
+
import simplejson as json
|
168
|
+
if six.PY2:
|
169
|
+
import sys
|
170
|
+
reload(sys)
|
171
|
+
sys.setdefaultencoding("utf-8")
|
172
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
173
|
+
|
174
|
+
def __repr__(self):
|
175
|
+
"""For `print`"""
|
176
|
+
return self.to_str()
|
177
|
+
|
178
|
+
def __eq__(self, other):
|
179
|
+
"""Returns true if both objects are equal"""
|
180
|
+
if not isinstance(other, ShowTargetOptJobResponse):
|
181
|
+
return False
|
182
|
+
|
183
|
+
return self.__dict__ == other.__dict__
|
184
|
+
|
185
|
+
def __ne__(self, other):
|
186
|
+
"""Returns true if both objects are not equal"""
|
187
|
+
return not self == other
|
@@ -22,7 +22,8 @@ class StrongConstraintDto:
|
|
22
22
|
'type': 'StrongConstraintType',
|
23
23
|
'bool': 'bool',
|
24
24
|
'range': 'list[float]',
|
25
|
-
'struct': 'StructureConstraintParamsDto'
|
25
|
+
'struct': 'StructureConstraintParamsDto',
|
26
|
+
'interaction': 'InteractionConstraintDto'
|
26
27
|
}
|
27
28
|
|
28
29
|
attribute_map = {
|
@@ -31,10 +32,11 @@ class StrongConstraintDto:
|
|
31
32
|
'type': 'type',
|
32
33
|
'bool': 'bool',
|
33
34
|
'range': 'range',
|
34
|
-
'struct': 'struct'
|
35
|
+
'struct': 'struct',
|
36
|
+
'interaction': 'interaction'
|
35
37
|
}
|
36
38
|
|
37
|
-
def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct=None):
|
39
|
+
def __init__(self, id=None, name=None, type=None, bool=None, range=None, struct=None, interaction=None):
|
38
40
|
"""StrongConstraintDto
|
39
41
|
|
40
42
|
The model defined in huaweicloud sdk
|
@@ -51,6 +53,8 @@ class StrongConstraintDto:
|
|
51
53
|
:type range: list[float]
|
52
54
|
:param struct:
|
53
55
|
:type struct: :class:`huaweicloudsdkeihealth.v1.StructureConstraintParamsDto`
|
56
|
+
:param interaction:
|
57
|
+
:type interaction: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto`
|
54
58
|
"""
|
55
59
|
|
56
60
|
|
@@ -61,6 +65,7 @@ class StrongConstraintDto:
|
|
61
65
|
self._bool = None
|
62
66
|
self._range = None
|
63
67
|
self._struct = None
|
68
|
+
self._interaction = None
|
64
69
|
self.discriminator = None
|
65
70
|
|
66
71
|
if id is not None:
|
@@ -74,6 +79,8 @@ class StrongConstraintDto:
|
|
74
79
|
self.range = range
|
75
80
|
if struct is not None:
|
76
81
|
self.struct = struct
|
82
|
+
if interaction is not None:
|
83
|
+
self.interaction = interaction
|
77
84
|
|
78
85
|
@property
|
79
86
|
def id(self):
|
@@ -199,6 +206,24 @@ class StrongConstraintDto:
|
|
199
206
|
"""
|
200
207
|
self._struct = struct
|
201
208
|
|
209
|
+
@property
|
210
|
+
def interaction(self):
|
211
|
+
"""Gets the interaction of this StrongConstraintDto.
|
212
|
+
|
213
|
+
:return: The interaction of this StrongConstraintDto.
|
214
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto`
|
215
|
+
"""
|
216
|
+
return self._interaction
|
217
|
+
|
218
|
+
@interaction.setter
|
219
|
+
def interaction(self, interaction):
|
220
|
+
"""Sets the interaction of this StrongConstraintDto.
|
221
|
+
|
222
|
+
:param interaction: The interaction of this StrongConstraintDto.
|
223
|
+
:type interaction: :class:`huaweicloudsdkeihealth.v1.InteractionConstraintDto`
|
224
|
+
"""
|
225
|
+
self._interaction = interaction
|
226
|
+
|
202
227
|
def to_dict(self):
|
203
228
|
"""Returns the model properties as a dict"""
|
204
229
|
result = {}
|
@@ -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 TargetOptLigand:
|
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
|
+
'file': 'ProbeDrugFile',
|
21
|
+
'force_field': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'file': 'file',
|
26
|
+
'force_field': 'force_field'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, file=None, force_field=None):
|
30
|
+
"""TargetOptLigand
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param file:
|
35
|
+
:type file: :class:`huaweicloudsdkeihealth.v1.ProbeDrugFile`
|
36
|
+
:param force_field: 配体力场, 支持选择gaff, gaff2
|
37
|
+
:type force_field: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._file = None
|
43
|
+
self._force_field = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.file = file
|
47
|
+
if force_field is not None:
|
48
|
+
self.force_field = force_field
|
49
|
+
|
50
|
+
@property
|
51
|
+
def file(self):
|
52
|
+
"""Gets the file of this TargetOptLigand.
|
53
|
+
|
54
|
+
:return: The file of this TargetOptLigand.
|
55
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ProbeDrugFile`
|
56
|
+
"""
|
57
|
+
return self._file
|
58
|
+
|
59
|
+
@file.setter
|
60
|
+
def file(self, file):
|
61
|
+
"""Sets the file of this TargetOptLigand.
|
62
|
+
|
63
|
+
:param file: The file of this TargetOptLigand.
|
64
|
+
:type file: :class:`huaweicloudsdkeihealth.v1.ProbeDrugFile`
|
65
|
+
"""
|
66
|
+
self._file = file
|
67
|
+
|
68
|
+
@property
|
69
|
+
def force_field(self):
|
70
|
+
"""Gets the force_field of this TargetOptLigand.
|
71
|
+
|
72
|
+
配体力场, 支持选择gaff, gaff2
|
73
|
+
|
74
|
+
:return: The force_field of this TargetOptLigand.
|
75
|
+
:rtype: str
|
76
|
+
"""
|
77
|
+
return self._force_field
|
78
|
+
|
79
|
+
@force_field.setter
|
80
|
+
def force_field(self, force_field):
|
81
|
+
"""Sets the force_field of this TargetOptLigand.
|
82
|
+
|
83
|
+
配体力场, 支持选择gaff, gaff2
|
84
|
+
|
85
|
+
:param force_field: The force_field of this TargetOptLigand.
|
86
|
+
:type force_field: str
|
87
|
+
"""
|
88
|
+
self._force_field = force_field
|
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, TargetOptLigand):
|
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,255 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TargetOptReceptor:
|
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
|
+
'file': 'ReceptorDrugFile',
|
21
|
+
'balanced_charge': 'bool',
|
22
|
+
'water_model': 'str',
|
23
|
+
'force_field': 'str',
|
24
|
+
'ion_type': 'str',
|
25
|
+
'ion_concentration': 'float'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'file': 'file',
|
30
|
+
'balanced_charge': 'balanced_charge',
|
31
|
+
'water_model': 'water_model',
|
32
|
+
'force_field': 'force_field',
|
33
|
+
'ion_type': 'ion_type',
|
34
|
+
'ion_concentration': 'ion_concentration'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, file=None, balanced_charge=None, water_model=None, force_field=None, ion_type=None, ion_concentration=None):
|
38
|
+
"""TargetOptReceptor
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param file:
|
43
|
+
:type file: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
44
|
+
:param balanced_charge: 是否平衡电荷
|
45
|
+
:type balanced_charge: bool
|
46
|
+
:param water_model: 水模型, 支持选择spc, spce, tip3p, tip4p, tip5p
|
47
|
+
:type water_model: str
|
48
|
+
:param force_field: 蛋白立场,支持选择amber03, amber94, amber96, amber99, amber99sb, amber99sb-ildn, amberGS, charmm27, oplsaa, gromos43a1, gromos43a2, gromos45a3, gromos53a5, gromos53a6, gromos54a7
|
49
|
+
:type force_field: str
|
50
|
+
:param ion_type: 离子种类,支持选择NaCl、MgCl2、None,若设置了平衡电荷不支持选择None
|
51
|
+
:type ion_type: str
|
52
|
+
:param ion_concentration: 离子浓度,单位mol/L,若离子种类设置为None离子浓度不支持设置
|
53
|
+
:type ion_concentration: float
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._file = None
|
59
|
+
self._balanced_charge = None
|
60
|
+
self._water_model = None
|
61
|
+
self._force_field = None
|
62
|
+
self._ion_type = None
|
63
|
+
self._ion_concentration = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
self.file = file
|
67
|
+
if balanced_charge is not None:
|
68
|
+
self.balanced_charge = balanced_charge
|
69
|
+
if water_model is not None:
|
70
|
+
self.water_model = water_model
|
71
|
+
if force_field is not None:
|
72
|
+
self.force_field = force_field
|
73
|
+
if ion_type is not None:
|
74
|
+
self.ion_type = ion_type
|
75
|
+
if ion_concentration is not None:
|
76
|
+
self.ion_concentration = ion_concentration
|
77
|
+
|
78
|
+
@property
|
79
|
+
def file(self):
|
80
|
+
"""Gets the file of this TargetOptReceptor.
|
81
|
+
|
82
|
+
:return: The file of this TargetOptReceptor.
|
83
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
84
|
+
"""
|
85
|
+
return self._file
|
86
|
+
|
87
|
+
@file.setter
|
88
|
+
def file(self, file):
|
89
|
+
"""Sets the file of this TargetOptReceptor.
|
90
|
+
|
91
|
+
:param file: The file of this TargetOptReceptor.
|
92
|
+
:type file: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
93
|
+
"""
|
94
|
+
self._file = file
|
95
|
+
|
96
|
+
@property
|
97
|
+
def balanced_charge(self):
|
98
|
+
"""Gets the balanced_charge of this TargetOptReceptor.
|
99
|
+
|
100
|
+
是否平衡电荷
|
101
|
+
|
102
|
+
:return: The balanced_charge of this TargetOptReceptor.
|
103
|
+
:rtype: bool
|
104
|
+
"""
|
105
|
+
return self._balanced_charge
|
106
|
+
|
107
|
+
@balanced_charge.setter
|
108
|
+
def balanced_charge(self, balanced_charge):
|
109
|
+
"""Sets the balanced_charge of this TargetOptReceptor.
|
110
|
+
|
111
|
+
是否平衡电荷
|
112
|
+
|
113
|
+
:param balanced_charge: The balanced_charge of this TargetOptReceptor.
|
114
|
+
:type balanced_charge: bool
|
115
|
+
"""
|
116
|
+
self._balanced_charge = balanced_charge
|
117
|
+
|
118
|
+
@property
|
119
|
+
def water_model(self):
|
120
|
+
"""Gets the water_model of this TargetOptReceptor.
|
121
|
+
|
122
|
+
水模型, 支持选择spc, spce, tip3p, tip4p, tip5p
|
123
|
+
|
124
|
+
:return: The water_model of this TargetOptReceptor.
|
125
|
+
:rtype: str
|
126
|
+
"""
|
127
|
+
return self._water_model
|
128
|
+
|
129
|
+
@water_model.setter
|
130
|
+
def water_model(self, water_model):
|
131
|
+
"""Sets the water_model of this TargetOptReceptor.
|
132
|
+
|
133
|
+
水模型, 支持选择spc, spce, tip3p, tip4p, tip5p
|
134
|
+
|
135
|
+
:param water_model: The water_model of this TargetOptReceptor.
|
136
|
+
:type water_model: str
|
137
|
+
"""
|
138
|
+
self._water_model = water_model
|
139
|
+
|
140
|
+
@property
|
141
|
+
def force_field(self):
|
142
|
+
"""Gets the force_field of this TargetOptReceptor.
|
143
|
+
|
144
|
+
蛋白立场,支持选择amber03, amber94, amber96, amber99, amber99sb, amber99sb-ildn, amberGS, charmm27, oplsaa, gromos43a1, gromos43a2, gromos45a3, gromos53a5, gromos53a6, gromos54a7
|
145
|
+
|
146
|
+
:return: The force_field of this TargetOptReceptor.
|
147
|
+
:rtype: str
|
148
|
+
"""
|
149
|
+
return self._force_field
|
150
|
+
|
151
|
+
@force_field.setter
|
152
|
+
def force_field(self, force_field):
|
153
|
+
"""Sets the force_field of this TargetOptReceptor.
|
154
|
+
|
155
|
+
蛋白立场,支持选择amber03, amber94, amber96, amber99, amber99sb, amber99sb-ildn, amberGS, charmm27, oplsaa, gromos43a1, gromos43a2, gromos45a3, gromos53a5, gromos53a6, gromos54a7
|
156
|
+
|
157
|
+
:param force_field: The force_field of this TargetOptReceptor.
|
158
|
+
:type force_field: str
|
159
|
+
"""
|
160
|
+
self._force_field = force_field
|
161
|
+
|
162
|
+
@property
|
163
|
+
def ion_type(self):
|
164
|
+
"""Gets the ion_type of this TargetOptReceptor.
|
165
|
+
|
166
|
+
离子种类,支持选择NaCl、MgCl2、None,若设置了平衡电荷不支持选择None
|
167
|
+
|
168
|
+
:return: The ion_type of this TargetOptReceptor.
|
169
|
+
:rtype: str
|
170
|
+
"""
|
171
|
+
return self._ion_type
|
172
|
+
|
173
|
+
@ion_type.setter
|
174
|
+
def ion_type(self, ion_type):
|
175
|
+
"""Sets the ion_type of this TargetOptReceptor.
|
176
|
+
|
177
|
+
离子种类,支持选择NaCl、MgCl2、None,若设置了平衡电荷不支持选择None
|
178
|
+
|
179
|
+
:param ion_type: The ion_type of this TargetOptReceptor.
|
180
|
+
:type ion_type: str
|
181
|
+
"""
|
182
|
+
self._ion_type = ion_type
|
183
|
+
|
184
|
+
@property
|
185
|
+
def ion_concentration(self):
|
186
|
+
"""Gets the ion_concentration of this TargetOptReceptor.
|
187
|
+
|
188
|
+
离子浓度,单位mol/L,若离子种类设置为None离子浓度不支持设置
|
189
|
+
|
190
|
+
:return: The ion_concentration of this TargetOptReceptor.
|
191
|
+
:rtype: float
|
192
|
+
"""
|
193
|
+
return self._ion_concentration
|
194
|
+
|
195
|
+
@ion_concentration.setter
|
196
|
+
def ion_concentration(self, ion_concentration):
|
197
|
+
"""Sets the ion_concentration of this TargetOptReceptor.
|
198
|
+
|
199
|
+
离子浓度,单位mol/L,若离子种类设置为None离子浓度不支持设置
|
200
|
+
|
201
|
+
:param ion_concentration: The ion_concentration of this TargetOptReceptor.
|
202
|
+
:type ion_concentration: float
|
203
|
+
"""
|
204
|
+
self._ion_concentration = ion_concentration
|
205
|
+
|
206
|
+
def to_dict(self):
|
207
|
+
"""Returns the model properties as a dict"""
|
208
|
+
result = {}
|
209
|
+
|
210
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
211
|
+
value = getattr(self, attr)
|
212
|
+
if isinstance(value, list):
|
213
|
+
result[attr] = list(map(
|
214
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
215
|
+
value
|
216
|
+
))
|
217
|
+
elif hasattr(value, "to_dict"):
|
218
|
+
result[attr] = value.to_dict()
|
219
|
+
elif isinstance(value, dict):
|
220
|
+
result[attr] = dict(map(
|
221
|
+
lambda item: (item[0], item[1].to_dict())
|
222
|
+
if hasattr(item[1], "to_dict") else item,
|
223
|
+
value.items()
|
224
|
+
))
|
225
|
+
else:
|
226
|
+
if attr in self.sensitive_list:
|
227
|
+
result[attr] = "****"
|
228
|
+
else:
|
229
|
+
result[attr] = value
|
230
|
+
|
231
|
+
return result
|
232
|
+
|
233
|
+
def to_str(self):
|
234
|
+
"""Returns the string representation of the model"""
|
235
|
+
import simplejson as json
|
236
|
+
if six.PY2:
|
237
|
+
import sys
|
238
|
+
reload(sys)
|
239
|
+
sys.setdefaultencoding("utf-8")
|
240
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
241
|
+
|
242
|
+
def __repr__(self):
|
243
|
+
"""For `print`"""
|
244
|
+
return self.to_str()
|
245
|
+
|
246
|
+
def __eq__(self, other):
|
247
|
+
"""Returns true if both objects are equal"""
|
248
|
+
if not isinstance(other, TargetOptReceptor):
|
249
|
+
return False
|
250
|
+
|
251
|
+
return self.__dict__ == other.__dict__
|
252
|
+
|
253
|
+
def __ne__(self, other):
|
254
|
+
"""Returns true if both objects are not equal"""
|
255
|
+
return not self == other
|