pyxetabase 4.0.0.dev56__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.

Potentially problematic release.


This version of pyxetabase might be problematic. Click here for more details.

Files changed (36) hide show
  1. pyxetabase/__init__.py +0 -0
  2. pyxetabase/commons.py +347 -0
  3. pyxetabase/exceptions.py +8 -0
  4. pyxetabase/opencga_client.py +344 -0
  5. pyxetabase/opencga_config.py +211 -0
  6. pyxetabase/rest_clients/__init__.py +0 -0
  7. pyxetabase/rest_clients/_parent_rest_clients.py +144 -0
  8. pyxetabase/rest_clients/admin_client.py +179 -0
  9. pyxetabase/rest_clients/alignment_client.py +373 -0
  10. pyxetabase/rest_clients/clinical_analysis_client.py +1216 -0
  11. pyxetabase/rest_clients/cohort_client.py +349 -0
  12. pyxetabase/rest_clients/cvdb_client.py +2285 -0
  13. pyxetabase/rest_clients/disease_panel_client.py +345 -0
  14. pyxetabase/rest_clients/family_client.py +355 -0
  15. pyxetabase/rest_clients/federation_client.py +133 -0
  16. pyxetabase/rest_clients/file_client.py +710 -0
  17. pyxetabase/rest_clients/ga4gh_client.py +86 -0
  18. pyxetabase/rest_clients/individual_client.py +435 -0
  19. pyxetabase/rest_clients/job_client.py +416 -0
  20. pyxetabase/rest_clients/meta_client.py +85 -0
  21. pyxetabase/rest_clients/organization_client.py +216 -0
  22. pyxetabase/rest_clients/project_client.py +128 -0
  23. pyxetabase/rest_clients/sample_client.py +446 -0
  24. pyxetabase/rest_clients/study_client.py +462 -0
  25. pyxetabase/rest_clients/user_client.py +212 -0
  26. pyxetabase/rest_clients/user_tool_client.py +471 -0
  27. pyxetabase/rest_clients/variant_client.py +1378 -0
  28. pyxetabase/rest_clients/variant_operation_client.py +718 -0
  29. pyxetabase/rest_clients/workflow_client.py +263 -0
  30. pyxetabase/rest_response.py +220 -0
  31. pyxetabase/retry.py +57 -0
  32. pyxetabase-4.0.0.dev56.dist-info/METADATA +159 -0
  33. pyxetabase-4.0.0.dev56.dist-info/RECORD +36 -0
  34. pyxetabase-4.0.0.dev56.dist-info/WHEEL +5 -0
  35. pyxetabase-4.0.0.dev56.dist-info/licenses/LICENSE +202 -0
  36. pyxetabase-4.0.0.dev56.dist-info/top_level.txt +1 -0
@@ -0,0 +1,345 @@
1
+ """
2
+ WARNING: AUTOGENERATED CODE
3
+
4
+ This code was generated by a tool.
5
+
6
+ Manual changes to this file may cause unexpected behavior in your application.
7
+ Manual changes to this file will be overwritten if the code is regenerated.
8
+ """
9
+
10
+ from pyxetabase.rest_clients._parent_rest_clients import _ParentRestClient
11
+
12
+
13
+ class DiseasePanel(_ParentRestClient):
14
+ """
15
+ This class contains methods for the 'Disease Panels' webservices
16
+ PATH: /{apiVersion}/panels
17
+ """
18
+
19
+ def __init__(self, configuration, token=None, login_handler=None, *args, **kwargs):
20
+ super(DiseasePanel, self).__init__(configuration, token, login_handler, *args, **kwargs)
21
+
22
+ def update_acl(self, members, action, data=None, **options):
23
+ """
24
+ Update the set of permissions granted for the member.
25
+ PATH: /{apiVersion}/panels/acl/{members}/update
26
+
27
+ :param dict data: JSON containing the parameters to update the
28
+ permissions. (REQUIRED)
29
+ :param str action: Action to be performed [ADD, SET, REMOVE or RESET].
30
+ Allowed values: ['SET ADD REMOVE RESET'] (REQUIRED)
31
+ :param str members: Comma separated list of user or group ids.
32
+ (REQUIRED)
33
+ :param str study: Study [[organization@]project:]study where study and
34
+ project can be either the ID or UUID.
35
+ """
36
+
37
+ options['action'] = action
38
+ return self._post(category='panels', resource='update', subcategory='acl', second_query_id=members, data=data, **options)
39
+
40
+ def aggregation_stats(self, **options):
41
+ """
42
+ Fetch catalog panel stats.
43
+ PATH: /{apiVersion}/panels/aggregationStats
44
+
45
+ :param str study: Study [[organization@]project:]study where study and
46
+ project can be either the ID or UUID.
47
+ :param str id: Comma separated list of panel IDs up to a maximum of
48
+ 100. Also admits basic regular expressions using the operator '~',
49
+ i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i'
50
+ for case insensitive search.
51
+ :param str uuid: Comma separated list of panel UUIDs up to a maximum
52
+ of 100.
53
+ :param str name: Comma separated list of panel names up to a maximum
54
+ of 100. Also admits basic regular expressions using the operator
55
+ '~', i.e. '~{perl-regex}' e.g. '~value' for case sensitive,
56
+ '~/value/i' for case insensitive search.
57
+ :param str internal_status: Filter by internal status.
58
+ :param str disorders: Comma separated list of disorder ids or names.
59
+ Also admits basic regular expressions using the operator '~', i.e.
60
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
61
+ case insensitive search.. Also admits basic regular expressions
62
+ using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
63
+ sensitive, '~/value/i' for case insensitive search.
64
+ :param str variants: Comma separated list of variant ids. Also admits
65
+ basic regular expressions using the operator '~', i.e.
66
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
67
+ case insensitive search.
68
+ :param str genes: Comma separated list of gene ids. Also admits basic
69
+ regular expressions using the operator '~', i.e. '~{perl-regex}'
70
+ e.g. '~value' for case sensitive, '~/value/i' for case insensitive
71
+ search.
72
+ :param str source: Comma separated list of source ids or names.
73
+ :param str regions: Comma separated list of regions. Also admits basic
74
+ regular expressions using the operator '~', i.e. '~{perl-regex}'
75
+ e.g. '~value' for case sensitive, '~/value/i' for case insensitive
76
+ search.
77
+ :param str categories: Comma separated list of category names. Also
78
+ admits basic regular expressions using the operator '~', i.e.
79
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
80
+ case insensitive search.
81
+ :param str tags: Panel tags. Also admits basic regular expressions
82
+ using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
83
+ sensitive, '~/value/i' for case insensitive search.
84
+ :param bool deleted: Boolean to retrieve deleted entries.
85
+ :param str status: Filter by status.
86
+ :param str creation_date: Creation date. Format: yyyyMMddHHmmss.
87
+ Examples: >2018, 2017-2018, <201805.
88
+ :param str modification_date: Modification date. Format:
89
+ yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
90
+ :param str acl: Filter entries for which a user has the provided
91
+ permissions. Format: acl={user}:{permissions}. Example:
92
+ acl=john:WRITE,WRITE_ANNOTATIONS will return all entries for which
93
+ user john has both WRITE and WRITE_ANNOTATIONS permissions. Only
94
+ study owners or administrators can query by this field. .
95
+ :param str release: Release when it was created.
96
+ :param int snapshot: Snapshot value (Latest version of the entry in
97
+ the specified release).
98
+ :param str field: Field to apply aggregation statistics to (or a list
99
+ of fields separated by semicolons), e.g.:
100
+ studies;type;numSamples[0..10]:1;format:sum(size).
101
+ """
102
+
103
+ return self._get(category='panels', resource='aggregationStats', **options)
104
+
105
+ def create(self, data=None, **options):
106
+ """
107
+ Create a panel.
108
+ PATH: /{apiVersion}/panels/create
109
+
110
+ :param str include: Fields included in the response, whole JSON path
111
+ must be provided.
112
+ :param str exclude: Fields excluded in the response, whole JSON path
113
+ must be provided.
114
+ :param str study: Study [[organization@]project:]study where study and
115
+ project can be either the ID or UUID.
116
+ :param bool include_result: Flag indicating to include the created or
117
+ updated document result in the response.
118
+ :param dict data: Panel parameters.
119
+ """
120
+
121
+ return self._post(category='panels', resource='create', data=data, **options)
122
+
123
+ def distinct(self, field, **options):
124
+ """
125
+ Panel distinct method.
126
+ PATH: /{apiVersion}/panels/distinct
127
+
128
+ :param str field: Comma separated list of fields for which to obtain
129
+ the distinct values. (REQUIRED)
130
+ :param str study: Study [[organization@]project:]study where study and
131
+ project can be either the ID or UUID.
132
+ :param str id: Comma separated list of panel IDs up to a maximum of
133
+ 100. Also admits basic regular expressions using the operator '~',
134
+ i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i'
135
+ for case insensitive search.
136
+ :param str uuid: Comma separated list of panel UUIDs up to a maximum
137
+ of 100.
138
+ :param str name: Comma separated list of panel names up to a maximum
139
+ of 100. Also admits basic regular expressions using the operator
140
+ '~', i.e. '~{perl-regex}' e.g. '~value' for case sensitive,
141
+ '~/value/i' for case insensitive search.
142
+ :param str internal_status: Filter by internal status.
143
+ :param str disorders: Comma separated list of disorder ids or names.
144
+ Also admits basic regular expressions using the operator '~', i.e.
145
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
146
+ case insensitive search.. Also admits basic regular expressions
147
+ using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
148
+ sensitive, '~/value/i' for case insensitive search.
149
+ :param str variants: Comma separated list of variant ids. Also admits
150
+ basic regular expressions using the operator '~', i.e.
151
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
152
+ case insensitive search.
153
+ :param str genes: Comma separated list of gene ids. Also admits basic
154
+ regular expressions using the operator '~', i.e. '~{perl-regex}'
155
+ e.g. '~value' for case sensitive, '~/value/i' for case insensitive
156
+ search.
157
+ :param str source: Comma separated list of source ids or names.
158
+ :param str regions: Comma separated list of regions. Also admits basic
159
+ regular expressions using the operator '~', i.e. '~{perl-regex}'
160
+ e.g. '~value' for case sensitive, '~/value/i' for case insensitive
161
+ search.
162
+ :param str categories: Comma separated list of category names. Also
163
+ admits basic regular expressions using the operator '~', i.e.
164
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
165
+ case insensitive search.
166
+ :param str tags: Panel tags. Also admits basic regular expressions
167
+ using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
168
+ sensitive, '~/value/i' for case insensitive search.
169
+ :param bool deleted: Boolean to retrieve deleted entries.
170
+ :param str status: Filter by status.
171
+ :param str creation_date: Creation date. Format: yyyyMMddHHmmss.
172
+ Examples: >2018, 2017-2018, <201805.
173
+ :param str modification_date: Modification date. Format:
174
+ yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
175
+ :param str acl: Filter entries for which a user has the provided
176
+ permissions. Format: acl={user}:{permissions}. Example:
177
+ acl=john:WRITE,WRITE_ANNOTATIONS will return all entries for which
178
+ user john has both WRITE and WRITE_ANNOTATIONS permissions. Only
179
+ study owners or administrators can query by this field. .
180
+ :param str release: Release when it was created.
181
+ :param int snapshot: Snapshot value (Latest version of the entry in
182
+ the specified release).
183
+ """
184
+
185
+ options['field'] = field
186
+ return self._get(category='panels', resource='distinct', **options)
187
+
188
+ def import_panels(self, data=None, **options):
189
+ """
190
+ Import panels.
191
+ PATH: /{apiVersion}/panels/import
192
+
193
+ :param str include: Fields included in the response, whole JSON path
194
+ must be provided.
195
+ :param str exclude: Fields excluded in the response, whole JSON path
196
+ must be provided.
197
+ :param str study: Study [[organization@]project:]study where study and
198
+ project can be either the ID or UUID.
199
+ :param bool include_result: Flag indicating to include the created or
200
+ updated document result in the response.
201
+ :param dict data: Panel parameters.
202
+ """
203
+
204
+ return self._post(category='panels', resource='import', data=data, **options)
205
+
206
+ def search(self, **options):
207
+ """
208
+ Panel search.
209
+ PATH: /{apiVersion}/panels/search
210
+
211
+ :param str include: Fields included in the response, whole JSON path
212
+ must be provided.
213
+ :param str exclude: Fields excluded in the response, whole JSON path
214
+ must be provided.
215
+ :param int limit: Number of results to be returned.
216
+ :param int skip: Number of results to skip.
217
+ :param bool count: Get the total number of results matching the query.
218
+ Deactivated by default.
219
+ :param str study: Study [[organization@]project:]study where study and
220
+ project can be either the ID or UUID.
221
+ :param str id: Comma separated list of panel IDs up to a maximum of
222
+ 100. Also admits basic regular expressions using the operator '~',
223
+ i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i'
224
+ for case insensitive search.
225
+ :param str uuid: Comma separated list of panel UUIDs up to a maximum
226
+ of 100.
227
+ :param str name: Comma separated list of panel names up to a maximum
228
+ of 100. Also admits basic regular expressions using the operator
229
+ '~', i.e. '~{perl-regex}' e.g. '~value' for case sensitive,
230
+ '~/value/i' for case insensitive search.
231
+ :param str internal_status: Filter by internal status.
232
+ :param str disorders: Comma separated list of disorder ids or names.
233
+ Also admits basic regular expressions using the operator '~', i.e.
234
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
235
+ case insensitive search.. Also admits basic regular expressions
236
+ using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
237
+ sensitive, '~/value/i' for case insensitive search.
238
+ :param str variants: Comma separated list of variant ids. Also admits
239
+ basic regular expressions using the operator '~', i.e.
240
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
241
+ case insensitive search.
242
+ :param str genes: Comma separated list of gene ids. Also admits basic
243
+ regular expressions using the operator '~', i.e. '~{perl-regex}'
244
+ e.g. '~value' for case sensitive, '~/value/i' for case insensitive
245
+ search.
246
+ :param str source: Comma separated list of source ids or names.
247
+ :param str regions: Comma separated list of regions. Also admits basic
248
+ regular expressions using the operator '~', i.e. '~{perl-regex}'
249
+ e.g. '~value' for case sensitive, '~/value/i' for case insensitive
250
+ search.
251
+ :param str categories: Comma separated list of category names. Also
252
+ admits basic regular expressions using the operator '~', i.e.
253
+ '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
254
+ case insensitive search.
255
+ :param str tags: Panel tags. Also admits basic regular expressions
256
+ using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
257
+ sensitive, '~/value/i' for case insensitive search.
258
+ :param bool deleted: Boolean to retrieve deleted entries.
259
+ :param str status: Filter by status.
260
+ :param str creation_date: Creation date. Format: yyyyMMddHHmmss.
261
+ Examples: >2018, 2017-2018, <201805.
262
+ :param str modification_date: Modification date. Format:
263
+ yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
264
+ :param str acl: Filter entries for which a user has the provided
265
+ permissions. Format: acl={user}:{permissions}. Example:
266
+ acl=john:WRITE,WRITE_ANNOTATIONS will return all entries for which
267
+ user john has both WRITE and WRITE_ANNOTATIONS permissions. Only
268
+ study owners or administrators can query by this field. .
269
+ :param str release: Release when it was created.
270
+ :param int snapshot: Snapshot value (Latest version of the entry in
271
+ the specified release).
272
+ """
273
+
274
+ return self._get(category='panels', resource='search', **options)
275
+
276
+ def acl(self, panels, **options):
277
+ """
278
+ Returns the acl of the panels. If member is provided, it will only
279
+ return the acl for the member.
280
+ PATH: /{apiVersion}/panels/{panels}/acl
281
+
282
+ :param str panels: Comma separated list of panel IDs up to a maximum
283
+ of 100. (REQUIRED)
284
+ :param str study: Study [[organization@]project:]study where study and
285
+ project can be either the ID or UUID.
286
+ :param str member: User or group id.
287
+ :param bool silent: Boolean to retrieve all possible entries that are
288
+ queried for, false to raise an exception whenever one of the
289
+ entries looked for cannot be shown for whichever reason.
290
+ """
291
+
292
+ return self._get(category='panels', resource='acl', query_id=panels, **options)
293
+
294
+ def delete(self, panels, **options):
295
+ """
296
+ Delete existing panels.
297
+ PATH: /{apiVersion}/panels/{panels}/delete
298
+
299
+ :param str panels: Comma separated list of panel ids. (REQUIRED)
300
+ :param str study: Study [[organization@]project:]study where study and
301
+ project can be either the ID or UUID.
302
+ """
303
+
304
+ return self._delete(category='panels', resource='delete', query_id=panels, **options)
305
+
306
+ def info(self, panels, **options):
307
+ """
308
+ Panel info.
309
+ PATH: /{apiVersion}/panels/{panels}/info
310
+
311
+ :param str panels: Comma separated list of panel IDs up to a maximum
312
+ of 100. (REQUIRED)
313
+ :param str include: Fields included in the response, whole JSON path
314
+ must be provided.
315
+ :param str exclude: Fields excluded in the response, whole JSON path
316
+ must be provided.
317
+ :param str study: Study [[organization@]project:]study where study and
318
+ project can be either the ID or UUID.
319
+ :param str version: Comma separated list of panel versions. 'all' to
320
+ get all the panel versions. Not supported if multiple panel ids are
321
+ provided.
322
+ :param bool deleted: Boolean to retrieve deleted panels.
323
+ """
324
+
325
+ return self._get(category='panels', resource='info', query_id=panels, **options)
326
+
327
+ def update(self, panels, data=None, **options):
328
+ """
329
+ Update panel attributes.
330
+ PATH: /{apiVersion}/panels/{panels}/update
331
+
332
+ :param str panels: Comma separated list of panel ids. (REQUIRED)
333
+ :param str include: Fields included in the response, whole JSON path
334
+ must be provided.
335
+ :param str exclude: Fields excluded in the response, whole JSON path
336
+ must be provided.
337
+ :param str study: Study [[organization@]project:]study where study and
338
+ project can be either the ID or UUID.
339
+ :param bool include_result: Flag indicating to include the created or
340
+ updated document result in the response.
341
+ :param dict data: Panel parameters.
342
+ """
343
+
344
+ return self._post(category='panels', resource='update', query_id=panels, data=data, **options)
345
+