benchling-api-client 2.0.415__py3-none-any.whl → 2.0.416__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.
- benchling_api_client/models/container_content.py +183 -26
- benchling_api_client/models/entity.py +19 -7
- benchling_api_client/models/entity_or_inaccessible_resource.py +19 -7
- benchling_api_client/models/molecule_with_entity_type.py +787 -0
- benchling_api_client/models/molecule_with_entity_type_entity_type.py +22 -0
- benchling_api_client/models/registered_entities_list.py +89 -32
- benchling_api_client/models/request_response_samples_item_entity.py +216 -74
- benchling_api_client/models/rna_sequence_with_entity_type.py +1151 -0
- benchling_api_client/models/rna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/aa_sequence_with_entity_type.py +865 -0
- benchling_api_client/v2/beta/models/aa_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/container_content.py +183 -26
- benchling_api_client/v2/beta/models/custom_entity_creator.py +2 -100
- benchling_api_client/v2/beta/models/custom_entity_with_entity_type.py +747 -0
- benchling_api_client/v2/beta/models/custom_entity_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/dna_oligo_with_entity_type.py +972 -0
- benchling_api_client/v2/beta/models/dna_oligo_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/dna_sequence_with_entity_type.py +1102 -0
- benchling_api_client/v2/beta/models/dna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/entity.py +19 -7
- benchling_api_client/v2/beta/models/entity_or_inaccessible_resource.py +19 -7
- benchling_api_client/v2/beta/models/mixture_creator.py +2 -100
- benchling_api_client/v2/beta/models/mixture_with_entity_type.py +867 -0
- benchling_api_client/v2/beta/models/mixture_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/molecule_with_entity_type.py +787 -0
- benchling_api_client/v2/beta/models/molecule_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/rna_oligo_with_entity_type.py +972 -0
- benchling_api_client/v2/beta/models/rna_oligo_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/rna_sequence.py +1109 -0
- benchling_api_client/v2/beta/models/rna_sequence_part.py +183 -0
- benchling_api_client/v2/beta/models/rna_sequence_with_entity_type.py +1151 -0
- benchling_api_client/v2/beta/models/rna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/openapi.yaml +216 -6
- benchling_api_client/v2/stable/models/container_content.py +183 -26
- benchling_api_client/v2/stable/models/entity.py +19 -7
- benchling_api_client/v2/stable/models/entity_or_inaccessible_resource.py +19 -7
- benchling_api_client/v2/stable/models/molecule_with_entity_type.py +787 -0
- benchling_api_client/v2/stable/models/molecule_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/stable/models/registered_entities_list.py +89 -32
- benchling_api_client/v2/stable/models/request_response_samples_item_entity.py +216 -74
- benchling_api_client/v2/stable/models/rna_sequence_with_entity_type.py +1151 -0
- benchling_api_client/v2/stable/models/rna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/stable/openapi.yaml +40 -22
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/METADATA +1 -1
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/RECORD +47 -21
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/LICENSE +0 -0
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/WHEEL +0 -0
|
@@ -10,6 +10,7 @@ from ..models.custom_fields import CustomFields
|
|
|
10
10
|
from ..models.dna_annotation import DnaAnnotation
|
|
11
11
|
from ..models.dna_sequence_part import DnaSequencePart
|
|
12
12
|
from ..models.dna_sequence_transcription import DnaSequenceTranscription
|
|
13
|
+
from ..models.dna_sequence_with_entity_type_entity_type import DnaSequenceWithEntityTypeEntityType
|
|
13
14
|
from ..models.fields import Fields
|
|
14
15
|
from ..models.inaccessible_resource_resource_type import InaccessibleResourceResourceType
|
|
15
16
|
from ..models.ingredient import Ingredient
|
|
@@ -32,6 +33,7 @@ class RequestResponseSamplesItemEntity:
|
|
|
32
33
|
_inaccessible_id: Union[Unset, str] = UNSET
|
|
33
34
|
_resource_type: Union[Unset, InaccessibleResourceResourceType] = UNSET
|
|
34
35
|
_type: Union[Unset, str] = UNSET
|
|
36
|
+
_entity_type: Union[Unset, DnaSequenceWithEntityTypeEntityType] = UNSET
|
|
35
37
|
_aliases: Union[Unset, List[str]] = UNSET
|
|
36
38
|
_api_url: Union[Unset, str] = UNSET
|
|
37
39
|
_archive_record: Union[Unset, None, ArchiveRecord] = UNSET
|
|
@@ -50,11 +52,13 @@ class RequestResponseSamplesItemEntity:
|
|
|
50
52
|
_schema: Union[Unset, None, SchemaSummary] = UNSET
|
|
51
53
|
_url: Union[Unset, str] = UNSET
|
|
52
54
|
_web_url: Union[Unset, str] = UNSET
|
|
55
|
+
_canonicalized_smiles: Union[Unset, str] = UNSET
|
|
56
|
+
_original_smiles: Union[Unset, None, str] = UNSET
|
|
53
57
|
_annotations: Union[Unset, List[DnaAnnotation]] = UNSET
|
|
54
58
|
_bases: Union[Unset, str] = UNSET
|
|
55
59
|
_custom_notation: Union[Unset, None, str] = UNSET
|
|
56
60
|
_custom_notation_name: Union[Unset, None, str] = UNSET
|
|
57
|
-
_helm: Union[Unset, str] = UNSET
|
|
61
|
+
_helm: Union[Unset, None, str] = UNSET
|
|
58
62
|
_nucleotide_type: Union[Unset, OligoNucleotideType] = UNSET
|
|
59
63
|
_length: Union[Unset, int] = UNSET
|
|
60
64
|
_allow_measured_ingredients: Union[Unset, bool] = UNSET
|
|
@@ -62,12 +66,13 @@ class RequestResponseSamplesItemEntity:
|
|
|
62
66
|
_ingredients: Union[Unset, List[Ingredient]] = UNSET
|
|
63
67
|
_units: Union[Unset, MixtureMeasurementUnits] = UNSET
|
|
64
68
|
_amino_acids: Union[Unset, str] = UNSET
|
|
65
|
-
|
|
69
|
+
_alignment_ids: Union[Unset, List[str]] = UNSET
|
|
66
70
|
_is_circular: Union[Unset, bool] = UNSET
|
|
67
71
|
_parts: Union[Unset, List[DnaSequencePart]] = UNSET
|
|
68
72
|
_primers: Union[Unset, List[Primer]] = UNSET
|
|
69
|
-
_transcriptions: Union[Unset, List[DnaSequenceTranscription]] = UNSET
|
|
70
73
|
_translations: Union[Unset, List[Translation]] = UNSET
|
|
74
|
+
_dna_alignment_ids: Union[Unset, List[str]] = UNSET
|
|
75
|
+
_transcriptions: Union[Unset, List[DnaSequenceTranscription]] = UNSET
|
|
71
76
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
72
77
|
|
|
73
78
|
def __repr__(self):
|
|
@@ -75,6 +80,7 @@ class RequestResponseSamplesItemEntity:
|
|
|
75
80
|
fields.append("inaccessible_id={}".format(repr(self._inaccessible_id)))
|
|
76
81
|
fields.append("resource_type={}".format(repr(self._resource_type)))
|
|
77
82
|
fields.append("type={}".format(repr(self._type)))
|
|
83
|
+
fields.append("entity_type={}".format(repr(self._entity_type)))
|
|
78
84
|
fields.append("aliases={}".format(repr(self._aliases)))
|
|
79
85
|
fields.append("api_url={}".format(repr(self._api_url)))
|
|
80
86
|
fields.append("archive_record={}".format(repr(self._archive_record)))
|
|
@@ -93,6 +99,8 @@ class RequestResponseSamplesItemEntity:
|
|
|
93
99
|
fields.append("schema={}".format(repr(self._schema)))
|
|
94
100
|
fields.append("url={}".format(repr(self._url)))
|
|
95
101
|
fields.append("web_url={}".format(repr(self._web_url)))
|
|
102
|
+
fields.append("canonicalized_smiles={}".format(repr(self._canonicalized_smiles)))
|
|
103
|
+
fields.append("original_smiles={}".format(repr(self._original_smiles)))
|
|
96
104
|
fields.append("annotations={}".format(repr(self._annotations)))
|
|
97
105
|
fields.append("bases={}".format(repr(self._bases)))
|
|
98
106
|
fields.append("custom_notation={}".format(repr(self._custom_notation)))
|
|
@@ -105,12 +113,13 @@ class RequestResponseSamplesItemEntity:
|
|
|
105
113
|
fields.append("ingredients={}".format(repr(self._ingredients)))
|
|
106
114
|
fields.append("units={}".format(repr(self._units)))
|
|
107
115
|
fields.append("amino_acids={}".format(repr(self._amino_acids)))
|
|
108
|
-
fields.append("
|
|
116
|
+
fields.append("alignment_ids={}".format(repr(self._alignment_ids)))
|
|
109
117
|
fields.append("is_circular={}".format(repr(self._is_circular)))
|
|
110
118
|
fields.append("parts={}".format(repr(self._parts)))
|
|
111
119
|
fields.append("primers={}".format(repr(self._primers)))
|
|
112
|
-
fields.append("transcriptions={}".format(repr(self._transcriptions)))
|
|
113
120
|
fields.append("translations={}".format(repr(self._translations)))
|
|
121
|
+
fields.append("dna_alignment_ids={}".format(repr(self._dna_alignment_ids)))
|
|
122
|
+
fields.append("transcriptions={}".format(repr(self._transcriptions)))
|
|
114
123
|
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
115
124
|
return "RequestResponseSamplesItemEntity({})".format(", ".join(fields))
|
|
116
125
|
|
|
@@ -121,6 +130,10 @@ class RequestResponseSamplesItemEntity:
|
|
|
121
130
|
resource_type = self._resource_type.value
|
|
122
131
|
|
|
123
132
|
type = self._type
|
|
133
|
+
entity_type: Union[Unset, int] = UNSET
|
|
134
|
+
if not isinstance(self._entity_type, Unset):
|
|
135
|
+
entity_type = self._entity_type.value
|
|
136
|
+
|
|
124
137
|
aliases: Union[Unset, List[Any]] = UNSET
|
|
125
138
|
if not isinstance(self._aliases, Unset):
|
|
126
139
|
aliases = self._aliases
|
|
@@ -173,6 +186,8 @@ class RequestResponseSamplesItemEntity:
|
|
|
173
186
|
|
|
174
187
|
url = self._url
|
|
175
188
|
web_url = self._web_url
|
|
189
|
+
canonicalized_smiles = self._canonicalized_smiles
|
|
190
|
+
original_smiles = self._original_smiles
|
|
176
191
|
annotations: Union[Unset, List[Any]] = UNSET
|
|
177
192
|
if not isinstance(self._annotations, Unset):
|
|
178
193
|
annotations = []
|
|
@@ -205,9 +220,9 @@ class RequestResponseSamplesItemEntity:
|
|
|
205
220
|
units = self._units.value
|
|
206
221
|
|
|
207
222
|
amino_acids = self._amino_acids
|
|
208
|
-
|
|
209
|
-
if not isinstance(self.
|
|
210
|
-
|
|
223
|
+
alignment_ids: Union[Unset, List[Any]] = UNSET
|
|
224
|
+
if not isinstance(self._alignment_ids, Unset):
|
|
225
|
+
alignment_ids = self._alignment_ids
|
|
211
226
|
|
|
212
227
|
is_circular = self._is_circular
|
|
213
228
|
parts: Union[Unset, List[Any]] = UNSET
|
|
@@ -226,14 +241,6 @@ class RequestResponseSamplesItemEntity:
|
|
|
226
241
|
|
|
227
242
|
primers.append(primers_item)
|
|
228
243
|
|
|
229
|
-
transcriptions: Union[Unset, List[Any]] = UNSET
|
|
230
|
-
if not isinstance(self._transcriptions, Unset):
|
|
231
|
-
transcriptions = []
|
|
232
|
-
for transcriptions_item_data in self._transcriptions:
|
|
233
|
-
transcriptions_item = transcriptions_item_data.to_dict()
|
|
234
|
-
|
|
235
|
-
transcriptions.append(transcriptions_item)
|
|
236
|
-
|
|
237
244
|
translations: Union[Unset, List[Any]] = UNSET
|
|
238
245
|
if not isinstance(self._translations, Unset):
|
|
239
246
|
translations = []
|
|
@@ -242,6 +249,18 @@ class RequestResponseSamplesItemEntity:
|
|
|
242
249
|
|
|
243
250
|
translations.append(translations_item)
|
|
244
251
|
|
|
252
|
+
dna_alignment_ids: Union[Unset, List[Any]] = UNSET
|
|
253
|
+
if not isinstance(self._dna_alignment_ids, Unset):
|
|
254
|
+
dna_alignment_ids = self._dna_alignment_ids
|
|
255
|
+
|
|
256
|
+
transcriptions: Union[Unset, List[Any]] = UNSET
|
|
257
|
+
if not isinstance(self._transcriptions, Unset):
|
|
258
|
+
transcriptions = []
|
|
259
|
+
for transcriptions_item_data in self._transcriptions:
|
|
260
|
+
transcriptions_item = transcriptions_item_data.to_dict()
|
|
261
|
+
|
|
262
|
+
transcriptions.append(transcriptions_item)
|
|
263
|
+
|
|
245
264
|
field_dict: Dict[str, Any] = {}
|
|
246
265
|
field_dict.update(self.additional_properties)
|
|
247
266
|
# Allow the model to serialize even if it was created outside of the constructor, circumventing validation
|
|
@@ -251,6 +270,8 @@ class RequestResponseSamplesItemEntity:
|
|
|
251
270
|
field_dict["resourceType"] = resource_type
|
|
252
271
|
if type is not UNSET:
|
|
253
272
|
field_dict["type"] = type
|
|
273
|
+
if entity_type is not UNSET:
|
|
274
|
+
field_dict["entityType"] = entity_type
|
|
254
275
|
if aliases is not UNSET:
|
|
255
276
|
field_dict["aliases"] = aliases
|
|
256
277
|
if api_url is not UNSET:
|
|
@@ -287,6 +308,10 @@ class RequestResponseSamplesItemEntity:
|
|
|
287
308
|
field_dict["url"] = url
|
|
288
309
|
if web_url is not UNSET:
|
|
289
310
|
field_dict["webURL"] = web_url
|
|
311
|
+
if canonicalized_smiles is not UNSET:
|
|
312
|
+
field_dict["canonicalizedSmiles"] = canonicalized_smiles
|
|
313
|
+
if original_smiles is not UNSET:
|
|
314
|
+
field_dict["originalSmiles"] = original_smiles
|
|
290
315
|
if annotations is not UNSET:
|
|
291
316
|
field_dict["annotations"] = annotations
|
|
292
317
|
if bases is not UNSET:
|
|
@@ -311,18 +336,20 @@ class RequestResponseSamplesItemEntity:
|
|
|
311
336
|
field_dict["units"] = units
|
|
312
337
|
if amino_acids is not UNSET:
|
|
313
338
|
field_dict["aminoAcids"] = amino_acids
|
|
314
|
-
if
|
|
315
|
-
field_dict["
|
|
339
|
+
if alignment_ids is not UNSET:
|
|
340
|
+
field_dict["alignmentIds"] = alignment_ids
|
|
316
341
|
if is_circular is not UNSET:
|
|
317
342
|
field_dict["isCircular"] = is_circular
|
|
318
343
|
if parts is not UNSET:
|
|
319
344
|
field_dict["parts"] = parts
|
|
320
345
|
if primers is not UNSET:
|
|
321
346
|
field_dict["primers"] = primers
|
|
322
|
-
if transcriptions is not UNSET:
|
|
323
|
-
field_dict["transcriptions"] = transcriptions
|
|
324
347
|
if translations is not UNSET:
|
|
325
348
|
field_dict["translations"] = translations
|
|
349
|
+
if dna_alignment_ids is not UNSET:
|
|
350
|
+
field_dict["dnaAlignmentIds"] = dna_alignment_ids
|
|
351
|
+
if transcriptions is not UNSET:
|
|
352
|
+
field_dict["transcriptions"] = transcriptions
|
|
326
353
|
|
|
327
354
|
return field_dict
|
|
328
355
|
|
|
@@ -370,6 +397,24 @@ class RequestResponseSamplesItemEntity:
|
|
|
370
397
|
raise
|
|
371
398
|
type = cast(Union[Unset, str], UNSET)
|
|
372
399
|
|
|
400
|
+
def get_entity_type() -> Union[Unset, DnaSequenceWithEntityTypeEntityType]:
|
|
401
|
+
entity_type = UNSET
|
|
402
|
+
_entity_type = d.pop("entityType")
|
|
403
|
+
if _entity_type is not None and _entity_type is not UNSET:
|
|
404
|
+
try:
|
|
405
|
+
entity_type = DnaSequenceWithEntityTypeEntityType(_entity_type)
|
|
406
|
+
except ValueError:
|
|
407
|
+
entity_type = DnaSequenceWithEntityTypeEntityType.of_unknown(_entity_type)
|
|
408
|
+
|
|
409
|
+
return entity_type
|
|
410
|
+
|
|
411
|
+
try:
|
|
412
|
+
entity_type = get_entity_type()
|
|
413
|
+
except KeyError:
|
|
414
|
+
if strict:
|
|
415
|
+
raise
|
|
416
|
+
entity_type = cast(Union[Unset, DnaSequenceWithEntityTypeEntityType], UNSET)
|
|
417
|
+
|
|
373
418
|
def get_aliases() -> Union[Unset, List[str]]:
|
|
374
419
|
aliases = cast(List[str], d.pop("aliases"))
|
|
375
420
|
|
|
@@ -613,6 +658,28 @@ class RequestResponseSamplesItemEntity:
|
|
|
613
658
|
raise
|
|
614
659
|
web_url = cast(Union[Unset, str], UNSET)
|
|
615
660
|
|
|
661
|
+
def get_canonicalized_smiles() -> Union[Unset, str]:
|
|
662
|
+
canonicalized_smiles = d.pop("canonicalizedSmiles")
|
|
663
|
+
return canonicalized_smiles
|
|
664
|
+
|
|
665
|
+
try:
|
|
666
|
+
canonicalized_smiles = get_canonicalized_smiles()
|
|
667
|
+
except KeyError:
|
|
668
|
+
if strict:
|
|
669
|
+
raise
|
|
670
|
+
canonicalized_smiles = cast(Union[Unset, str], UNSET)
|
|
671
|
+
|
|
672
|
+
def get_original_smiles() -> Union[Unset, None, str]:
|
|
673
|
+
original_smiles = d.pop("originalSmiles")
|
|
674
|
+
return original_smiles
|
|
675
|
+
|
|
676
|
+
try:
|
|
677
|
+
original_smiles = get_original_smiles()
|
|
678
|
+
except KeyError:
|
|
679
|
+
if strict:
|
|
680
|
+
raise
|
|
681
|
+
original_smiles = cast(Union[Unset, None, str], UNSET)
|
|
682
|
+
|
|
616
683
|
def get_annotations() -> Union[Unset, List[DnaAnnotation]]:
|
|
617
684
|
annotations = []
|
|
618
685
|
_annotations = d.pop("annotations")
|
|
@@ -663,7 +730,7 @@ class RequestResponseSamplesItemEntity:
|
|
|
663
730
|
raise
|
|
664
731
|
custom_notation_name = cast(Union[Unset, None, str], UNSET)
|
|
665
732
|
|
|
666
|
-
def get_helm() -> Union[Unset, str]:
|
|
733
|
+
def get_helm() -> Union[Unset, None, str]:
|
|
667
734
|
helm = d.pop("helm")
|
|
668
735
|
return helm
|
|
669
736
|
|
|
@@ -672,7 +739,7 @@ class RequestResponseSamplesItemEntity:
|
|
|
672
739
|
except KeyError:
|
|
673
740
|
if strict:
|
|
674
741
|
raise
|
|
675
|
-
helm = cast(Union[Unset, str], UNSET)
|
|
742
|
+
helm = cast(Union[Unset, None, str], UNSET)
|
|
676
743
|
|
|
677
744
|
def get_nucleotide_type() -> Union[Unset, OligoNucleotideType]:
|
|
678
745
|
nucleotide_type = UNSET
|
|
@@ -771,17 +838,17 @@ class RequestResponseSamplesItemEntity:
|
|
|
771
838
|
raise
|
|
772
839
|
amino_acids = cast(Union[Unset, str], UNSET)
|
|
773
840
|
|
|
774
|
-
def
|
|
775
|
-
|
|
841
|
+
def get_alignment_ids() -> Union[Unset, List[str]]:
|
|
842
|
+
alignment_ids = cast(List[str], d.pop("alignmentIds"))
|
|
776
843
|
|
|
777
|
-
return
|
|
844
|
+
return alignment_ids
|
|
778
845
|
|
|
779
846
|
try:
|
|
780
|
-
|
|
847
|
+
alignment_ids = get_alignment_ids()
|
|
781
848
|
except KeyError:
|
|
782
849
|
if strict:
|
|
783
850
|
raise
|
|
784
|
-
|
|
851
|
+
alignment_ids = cast(Union[Unset, List[str]], UNSET)
|
|
785
852
|
|
|
786
853
|
def get_is_circular() -> Union[Unset, bool]:
|
|
787
854
|
is_circular = d.pop("isCircular")
|
|
@@ -828,6 +895,35 @@ class RequestResponseSamplesItemEntity:
|
|
|
828
895
|
raise
|
|
829
896
|
primers = cast(Union[Unset, List[Primer]], UNSET)
|
|
830
897
|
|
|
898
|
+
def get_translations() -> Union[Unset, List[Translation]]:
|
|
899
|
+
translations = []
|
|
900
|
+
_translations = d.pop("translations")
|
|
901
|
+
for translations_item_data in _translations or []:
|
|
902
|
+
translations_item = Translation.from_dict(translations_item_data, strict=False)
|
|
903
|
+
|
|
904
|
+
translations.append(translations_item)
|
|
905
|
+
|
|
906
|
+
return translations
|
|
907
|
+
|
|
908
|
+
try:
|
|
909
|
+
translations = get_translations()
|
|
910
|
+
except KeyError:
|
|
911
|
+
if strict:
|
|
912
|
+
raise
|
|
913
|
+
translations = cast(Union[Unset, List[Translation]], UNSET)
|
|
914
|
+
|
|
915
|
+
def get_dna_alignment_ids() -> Union[Unset, List[str]]:
|
|
916
|
+
dna_alignment_ids = cast(List[str], d.pop("dnaAlignmentIds"))
|
|
917
|
+
|
|
918
|
+
return dna_alignment_ids
|
|
919
|
+
|
|
920
|
+
try:
|
|
921
|
+
dna_alignment_ids = get_dna_alignment_ids()
|
|
922
|
+
except KeyError:
|
|
923
|
+
if strict:
|
|
924
|
+
raise
|
|
925
|
+
dna_alignment_ids = cast(Union[Unset, List[str]], UNSET)
|
|
926
|
+
|
|
831
927
|
def get_transcriptions() -> Union[Unset, List[DnaSequenceTranscription]]:
|
|
832
928
|
transcriptions = []
|
|
833
929
|
_transcriptions = d.pop("transcriptions")
|
|
@@ -847,27 +943,11 @@ class RequestResponseSamplesItemEntity:
|
|
|
847
943
|
raise
|
|
848
944
|
transcriptions = cast(Union[Unset, List[DnaSequenceTranscription]], UNSET)
|
|
849
945
|
|
|
850
|
-
def get_translations() -> Union[Unset, List[Translation]]:
|
|
851
|
-
translations = []
|
|
852
|
-
_translations = d.pop("translations")
|
|
853
|
-
for translations_item_data in _translations or []:
|
|
854
|
-
translations_item = Translation.from_dict(translations_item_data, strict=False)
|
|
855
|
-
|
|
856
|
-
translations.append(translations_item)
|
|
857
|
-
|
|
858
|
-
return translations
|
|
859
|
-
|
|
860
|
-
try:
|
|
861
|
-
translations = get_translations()
|
|
862
|
-
except KeyError:
|
|
863
|
-
if strict:
|
|
864
|
-
raise
|
|
865
|
-
translations = cast(Union[Unset, List[Translation]], UNSET)
|
|
866
|
-
|
|
867
946
|
request_response_samples_item_entity = cls(
|
|
868
947
|
inaccessible_id=inaccessible_id,
|
|
869
948
|
resource_type=resource_type,
|
|
870
949
|
type=type,
|
|
950
|
+
entity_type=entity_type,
|
|
871
951
|
aliases=aliases,
|
|
872
952
|
api_url=api_url,
|
|
873
953
|
archive_record=archive_record,
|
|
@@ -886,6 +966,8 @@ class RequestResponseSamplesItemEntity:
|
|
|
886
966
|
schema=schema,
|
|
887
967
|
url=url,
|
|
888
968
|
web_url=web_url,
|
|
969
|
+
canonicalized_smiles=canonicalized_smiles,
|
|
970
|
+
original_smiles=original_smiles,
|
|
889
971
|
annotations=annotations,
|
|
890
972
|
bases=bases,
|
|
891
973
|
custom_notation=custom_notation,
|
|
@@ -898,12 +980,13 @@ class RequestResponseSamplesItemEntity:
|
|
|
898
980
|
ingredients=ingredients,
|
|
899
981
|
units=units,
|
|
900
982
|
amino_acids=amino_acids,
|
|
901
|
-
|
|
983
|
+
alignment_ids=alignment_ids,
|
|
902
984
|
is_circular=is_circular,
|
|
903
985
|
parts=parts,
|
|
904
986
|
primers=primers,
|
|
905
|
-
transcriptions=transcriptions,
|
|
906
987
|
translations=translations,
|
|
988
|
+
dna_alignment_ids=dna_alignment_ids,
|
|
989
|
+
transcriptions=transcriptions,
|
|
907
990
|
)
|
|
908
991
|
|
|
909
992
|
request_response_samples_item_entity.additional_properties = d
|
|
@@ -971,6 +1054,20 @@ class RequestResponseSamplesItemEntity:
|
|
|
971
1054
|
def type(self) -> None:
|
|
972
1055
|
self._type = UNSET
|
|
973
1056
|
|
|
1057
|
+
@property
|
|
1058
|
+
def entity_type(self) -> DnaSequenceWithEntityTypeEntityType:
|
|
1059
|
+
if isinstance(self._entity_type, Unset):
|
|
1060
|
+
raise NotPresentError(self, "entity_type")
|
|
1061
|
+
return self._entity_type
|
|
1062
|
+
|
|
1063
|
+
@entity_type.setter
|
|
1064
|
+
def entity_type(self, value: DnaSequenceWithEntityTypeEntityType) -> None:
|
|
1065
|
+
self._entity_type = value
|
|
1066
|
+
|
|
1067
|
+
@entity_type.deleter
|
|
1068
|
+
def entity_type(self) -> None:
|
|
1069
|
+
self._entity_type = UNSET
|
|
1070
|
+
|
|
974
1071
|
@property
|
|
975
1072
|
def aliases(self) -> List[str]:
|
|
976
1073
|
if isinstance(self._aliases, Unset):
|
|
@@ -1225,6 +1322,36 @@ class RequestResponseSamplesItemEntity:
|
|
|
1225
1322
|
def web_url(self) -> None:
|
|
1226
1323
|
self._web_url = UNSET
|
|
1227
1324
|
|
|
1325
|
+
@property
|
|
1326
|
+
def canonicalized_smiles(self) -> str:
|
|
1327
|
+
""" The canonicalized chemical structure in SMILES format. """
|
|
1328
|
+
if isinstance(self._canonicalized_smiles, Unset):
|
|
1329
|
+
raise NotPresentError(self, "canonicalized_smiles")
|
|
1330
|
+
return self._canonicalized_smiles
|
|
1331
|
+
|
|
1332
|
+
@canonicalized_smiles.setter
|
|
1333
|
+
def canonicalized_smiles(self, value: str) -> None:
|
|
1334
|
+
self._canonicalized_smiles = value
|
|
1335
|
+
|
|
1336
|
+
@canonicalized_smiles.deleter
|
|
1337
|
+
def canonicalized_smiles(self) -> None:
|
|
1338
|
+
self._canonicalized_smiles = UNSET
|
|
1339
|
+
|
|
1340
|
+
@property
|
|
1341
|
+
def original_smiles(self) -> Optional[str]:
|
|
1342
|
+
""" The original chemical structure supplied by the user in SMILES format. Null if the user did not originally supply SMILES. """
|
|
1343
|
+
if isinstance(self._original_smiles, Unset):
|
|
1344
|
+
raise NotPresentError(self, "original_smiles")
|
|
1345
|
+
return self._original_smiles
|
|
1346
|
+
|
|
1347
|
+
@original_smiles.setter
|
|
1348
|
+
def original_smiles(self, value: Optional[str]) -> None:
|
|
1349
|
+
self._original_smiles = value
|
|
1350
|
+
|
|
1351
|
+
@original_smiles.deleter
|
|
1352
|
+
def original_smiles(self) -> None:
|
|
1353
|
+
self._original_smiles = UNSET
|
|
1354
|
+
|
|
1228
1355
|
@property
|
|
1229
1356
|
def annotations(self) -> List[DnaAnnotation]:
|
|
1230
1357
|
if isinstance(self._annotations, Unset):
|
|
@@ -1255,7 +1382,7 @@ class RequestResponseSamplesItemEntity:
|
|
|
1255
1382
|
|
|
1256
1383
|
@property
|
|
1257
1384
|
def custom_notation(self) -> Optional[str]:
|
|
1258
|
-
""" Representation of the
|
|
1385
|
+
""" Representation of the RNA Sequence in the custom notation specified in the request. Null if no notation was specified. """
|
|
1259
1386
|
if isinstance(self._custom_notation, Unset):
|
|
1260
1387
|
raise NotPresentError(self, "custom_notation")
|
|
1261
1388
|
return self._custom_notation
|
|
@@ -1284,14 +1411,14 @@ class RequestResponseSamplesItemEntity:
|
|
|
1284
1411
|
self._custom_notation_name = UNSET
|
|
1285
1412
|
|
|
1286
1413
|
@property
|
|
1287
|
-
def helm(self) -> str:
|
|
1288
|
-
""" Representation of the
|
|
1414
|
+
def helm(self) -> Optional[str]:
|
|
1415
|
+
""" Representation of the RNA Sequence in HELM syntax, including any chemical modifications. """
|
|
1289
1416
|
if isinstance(self._helm, Unset):
|
|
1290
1417
|
raise NotPresentError(self, "helm")
|
|
1291
1418
|
return self._helm
|
|
1292
1419
|
|
|
1293
1420
|
@helm.setter
|
|
1294
|
-
def helm(self, value: str) -> None:
|
|
1421
|
+
def helm(self, value: Optional[str]) -> None:
|
|
1295
1422
|
self._helm = value
|
|
1296
1423
|
|
|
1297
1424
|
@helm.deleter
|
|
@@ -1402,19 +1529,19 @@ class RequestResponseSamplesItemEntity:
|
|
|
1402
1529
|
self._amino_acids = UNSET
|
|
1403
1530
|
|
|
1404
1531
|
@property
|
|
1405
|
-
def
|
|
1532
|
+
def alignment_ids(self) -> List[str]:
|
|
1406
1533
|
""" API IDs of Nucleotide Alignments involving the RNA sequence """
|
|
1407
|
-
if isinstance(self.
|
|
1408
|
-
raise NotPresentError(self, "
|
|
1409
|
-
return self.
|
|
1534
|
+
if isinstance(self._alignment_ids, Unset):
|
|
1535
|
+
raise NotPresentError(self, "alignment_ids")
|
|
1536
|
+
return self._alignment_ids
|
|
1410
1537
|
|
|
1411
|
-
@
|
|
1412
|
-
def
|
|
1413
|
-
self.
|
|
1538
|
+
@alignment_ids.setter
|
|
1539
|
+
def alignment_ids(self, value: List[str]) -> None:
|
|
1540
|
+
self._alignment_ids = value
|
|
1414
1541
|
|
|
1415
|
-
@
|
|
1416
|
-
def
|
|
1417
|
-
self.
|
|
1542
|
+
@alignment_ids.deleter
|
|
1543
|
+
def alignment_ids(self) -> None:
|
|
1544
|
+
self._alignment_ids = UNSET
|
|
1418
1545
|
|
|
1419
1546
|
@property
|
|
1420
1547
|
def is_circular(self) -> bool:
|
|
@@ -1458,20 +1585,6 @@ class RequestResponseSamplesItemEntity:
|
|
|
1458
1585
|
def primers(self) -> None:
|
|
1459
1586
|
self._primers = UNSET
|
|
1460
1587
|
|
|
1461
|
-
@property
|
|
1462
|
-
def transcriptions(self) -> List[DnaSequenceTranscription]:
|
|
1463
|
-
if isinstance(self._transcriptions, Unset):
|
|
1464
|
-
raise NotPresentError(self, "transcriptions")
|
|
1465
|
-
return self._transcriptions
|
|
1466
|
-
|
|
1467
|
-
@transcriptions.setter
|
|
1468
|
-
def transcriptions(self, value: List[DnaSequenceTranscription]) -> None:
|
|
1469
|
-
self._transcriptions = value
|
|
1470
|
-
|
|
1471
|
-
@transcriptions.deleter
|
|
1472
|
-
def transcriptions(self) -> None:
|
|
1473
|
-
self._transcriptions = UNSET
|
|
1474
|
-
|
|
1475
1588
|
@property
|
|
1476
1589
|
def translations(self) -> List[Translation]:
|
|
1477
1590
|
if isinstance(self._translations, Unset):
|
|
@@ -1485,3 +1598,32 @@ class RequestResponseSamplesItemEntity:
|
|
|
1485
1598
|
@translations.deleter
|
|
1486
1599
|
def translations(self) -> None:
|
|
1487
1600
|
self._translations = UNSET
|
|
1601
|
+
|
|
1602
|
+
@property
|
|
1603
|
+
def dna_alignment_ids(self) -> List[str]:
|
|
1604
|
+
""" API IDs of Nucleotide Alignments involving the RNA sequence """
|
|
1605
|
+
if isinstance(self._dna_alignment_ids, Unset):
|
|
1606
|
+
raise NotPresentError(self, "dna_alignment_ids")
|
|
1607
|
+
return self._dna_alignment_ids
|
|
1608
|
+
|
|
1609
|
+
@dna_alignment_ids.setter
|
|
1610
|
+
def dna_alignment_ids(self, value: List[str]) -> None:
|
|
1611
|
+
self._dna_alignment_ids = value
|
|
1612
|
+
|
|
1613
|
+
@dna_alignment_ids.deleter
|
|
1614
|
+
def dna_alignment_ids(self) -> None:
|
|
1615
|
+
self._dna_alignment_ids = UNSET
|
|
1616
|
+
|
|
1617
|
+
@property
|
|
1618
|
+
def transcriptions(self) -> List[DnaSequenceTranscription]:
|
|
1619
|
+
if isinstance(self._transcriptions, Unset):
|
|
1620
|
+
raise NotPresentError(self, "transcriptions")
|
|
1621
|
+
return self._transcriptions
|
|
1622
|
+
|
|
1623
|
+
@transcriptions.setter
|
|
1624
|
+
def transcriptions(self, value: List[DnaSequenceTranscription]) -> None:
|
|
1625
|
+
self._transcriptions = value
|
|
1626
|
+
|
|
1627
|
+
@transcriptions.deleter
|
|
1628
|
+
def transcriptions(self) -> None:
|
|
1629
|
+
self._transcriptions = UNSET
|