pyxetabase 3.1.0.dev25__py3-none-any.whl → 3.1.1__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/rest_clients/file_client.py +1 -1
  2. pyxetabase/rest_clients/variant_operation_client.py +1 -2
  3. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/METADATA +1 -1
  4. pyxetabase-3.1.1.dist-info/RECORD +35 -0
  5. pyopencga/__init__.py +0 -0
  6. pyopencga/commons.py +0 -347
  7. pyopencga/exceptions.py +0 -8
  8. pyopencga/opencga_client.py +0 -334
  9. pyopencga/opencga_config.py +0 -211
  10. pyopencga/rest_clients/__init__.py +0 -0
  11. pyopencga/rest_clients/_parent_rest_clients.py +0 -110
  12. pyopencga/rest_clients/admin_client.py +0 -172
  13. pyopencga/rest_clients/alignment_client.py +0 -373
  14. pyopencga/rest_clients/clinical_analysis_client.py +0 -1279
  15. pyopencga/rest_clients/cohort_client.py +0 -338
  16. pyopencga/rest_clients/disease_panel_client.py +0 -352
  17. pyopencga/rest_clients/family_client.py +0 -355
  18. pyopencga/rest_clients/file_client.py +0 -698
  19. pyopencga/rest_clients/ga4gh_client.py +0 -86
  20. pyopencga/rest_clients/individual_client.py +0 -435
  21. pyopencga/rest_clients/job_client.py +0 -415
  22. pyopencga/rest_clients/meta_client.py +0 -85
  23. pyopencga/rest_clients/organization_client.py +0 -216
  24. pyopencga/rest_clients/project_client.py +0 -128
  25. pyopencga/rest_clients/sample_client.py +0 -446
  26. pyopencga/rest_clients/study_client.py +0 -461
  27. pyopencga/rest_clients/user_client.py +0 -192
  28. pyopencga/rest_clients/variant_client.py +0 -1378
  29. pyopencga/rest_clients/variant_operation_client.py +0 -746
  30. pyopencga/rest_clients/workflow_client.py +0 -263
  31. pyopencga/rest_response.py +0 -220
  32. pyopencga/retry.py +0 -57
  33. pyxetabase-3.1.0.dev25.dist-info/RECORD +0 -63
  34. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/WHEEL +0 -0
  35. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/licenses/LICENSE +0 -0
  36. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-3.1.1.dist-info}/top_level.txt +0 -0
@@ -1,352 +0,0 @@
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 pyopencga.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 study: Study [[organization@]project:]study where study and
194
- project can be either the ID or UUID.
195
- :param str job_id: Job ID. It must be a unique string within the
196
- study. An ID will be autogenerated automatically if not provided.
197
- :param str job_depends_on: Comma separated list of existing job IDs
198
- the job will depend on.
199
- :param str job_description: Job description.
200
- :param str job_tags: Job tags.
201
- :param str job_scheduled_start_time: Time when the job is scheduled to
202
- start.
203
- :param str job_priority: Priority of the job.
204
- :param bool job_dry_run: Flag indicating that the job will be executed
205
- in dry-run mode. In this mode, OpenCGA will validate that all
206
- parameters and prerequisites are correctly set for successful
207
- execution, but the job will not actually run.
208
- :param dict data: Panel parameters.
209
- """
210
-
211
- return self._post(category='panels', resource='import', data=data, **options)
212
-
213
- def search(self, **options):
214
- """
215
- Panel search.
216
- PATH: /{apiVersion}/panels/search
217
-
218
- :param str include: Fields included in the response, whole JSON path
219
- must be provided.
220
- :param str exclude: Fields excluded in the response, whole JSON path
221
- must be provided.
222
- :param int limit: Number of results to be returned.
223
- :param int skip: Number of results to skip.
224
- :param bool count: Get the total number of results matching the query.
225
- Deactivated by default.
226
- :param str study: Study [[organization@]project:]study where study and
227
- project can be either the ID or UUID.
228
- :param str id: Comma separated list of panel IDs up to a maximum of
229
- 100. Also admits basic regular expressions using the operator '~',
230
- i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i'
231
- for case insensitive search.
232
- :param str uuid: Comma separated list of panel UUIDs up to a maximum
233
- of 100.
234
- :param str name: Comma separated list of panel names up to a maximum
235
- of 100. Also admits basic regular expressions using the operator
236
- '~', i.e. '~{perl-regex}' e.g. '~value' for case sensitive,
237
- '~/value/i' for case insensitive search.
238
- :param str internal_status: Filter by internal status.
239
- :param str disorders: Comma separated list of disorder ids or names.
240
- Also admits basic regular expressions using the operator '~', i.e.
241
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
242
- case insensitive search.. Also admits basic regular expressions
243
- using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
244
- sensitive, '~/value/i' for case insensitive search.
245
- :param str variants: Comma separated list of variant ids. Also admits
246
- basic regular expressions using the operator '~', i.e.
247
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
248
- case insensitive search.
249
- :param str genes: Comma separated list of gene ids. Also admits basic
250
- regular expressions using the operator '~', i.e. '~{perl-regex}'
251
- e.g. '~value' for case sensitive, '~/value/i' for case insensitive
252
- search.
253
- :param str source: Comma separated list of source ids or names.
254
- :param str regions: Comma separated list of regions. Also admits basic
255
- regular expressions using the operator '~', i.e. '~{perl-regex}'
256
- e.g. '~value' for case sensitive, '~/value/i' for case insensitive
257
- search.
258
- :param str categories: Comma separated list of category names. Also
259
- admits basic regular expressions using the operator '~', i.e.
260
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
261
- case insensitive search.
262
- :param str tags: Panel tags. Also admits basic regular expressions
263
- using the operator '~', i.e. '~{perl-regex}' e.g. '~value' for case
264
- sensitive, '~/value/i' for case insensitive search.
265
- :param bool deleted: Boolean to retrieve deleted entries.
266
- :param str status: Filter by status.
267
- :param str creation_date: Creation date. Format: yyyyMMddHHmmss.
268
- Examples: >2018, 2017-2018, <201805.
269
- :param str modification_date: Modification date. Format:
270
- yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
271
- :param str acl: Filter entries for which a user has the provided
272
- permissions. Format: acl={user}:{permissions}. Example:
273
- acl=john:WRITE,WRITE_ANNOTATIONS will return all entries for which
274
- user john has both WRITE and WRITE_ANNOTATIONS permissions. Only
275
- study owners or administrators can query by this field. .
276
- :param str release: Release when it was created.
277
- :param int snapshot: Snapshot value (Latest version of the entry in
278
- the specified release).
279
- """
280
-
281
- return self._get(category='panels', resource='search', **options)
282
-
283
- def acl(self, panels, **options):
284
- """
285
- Returns the acl of the panels. If member is provided, it will only
286
- return the acl for the member.
287
- PATH: /{apiVersion}/panels/{panels}/acl
288
-
289
- :param str panels: Comma separated list of panel IDs up to a maximum
290
- of 100. (REQUIRED)
291
- :param str study: Study [[organization@]project:]study where study and
292
- project can be either the ID or UUID.
293
- :param str member: User or group id.
294
- :param bool silent: Boolean to retrieve all possible entries that are
295
- queried for, false to raise an exception whenever one of the
296
- entries looked for cannot be shown for whichever reason.
297
- """
298
-
299
- return self._get(category='panels', resource='acl', query_id=panels, **options)
300
-
301
- def delete(self, panels, **options):
302
- """
303
- Delete existing panels.
304
- PATH: /{apiVersion}/panels/{panels}/delete
305
-
306
- :param str panels: Comma separated list of panel ids. (REQUIRED)
307
- :param str study: Study [[organization@]project:]study where study and
308
- project can be either the ID or UUID.
309
- """
310
-
311
- return self._delete(category='panels', resource='delete', query_id=panels, **options)
312
-
313
- def info(self, panels, **options):
314
- """
315
- Panel info.
316
- PATH: /{apiVersion}/panels/{panels}/info
317
-
318
- :param str panels: Comma separated list of panel IDs up to a maximum
319
- of 100. (REQUIRED)
320
- :param str include: Fields included in the response, whole JSON path
321
- must be provided.
322
- :param str exclude: Fields excluded in the response, whole JSON path
323
- must be provided.
324
- :param str study: Study [[organization@]project:]study where study and
325
- project can be either the ID or UUID.
326
- :param str version: Comma separated list of panel versions. 'all' to
327
- get all the panel versions. Not supported if multiple panel ids are
328
- provided.
329
- :param bool deleted: Boolean to retrieve deleted panels.
330
- """
331
-
332
- return self._get(category='panels', resource='info', query_id=panels, **options)
333
-
334
- def update(self, panels, data=None, **options):
335
- """
336
- Update panel attributes.
337
- PATH: /{apiVersion}/panels/{panels}/update
338
-
339
- :param str panels: Comma separated list of panel ids. (REQUIRED)
340
- :param str include: Fields included in the response, whole JSON path
341
- must be provided.
342
- :param str exclude: Fields excluded in the response, whole JSON path
343
- must be provided.
344
- :param str study: Study [[organization@]project:]study where study and
345
- project can be either the ID or UUID.
346
- :param bool include_result: Flag indicating to include the created or
347
- updated document result in the response.
348
- :param dict data: Panel parameters.
349
- """
350
-
351
- return self._post(category='panels', resource='update', query_id=panels, data=data, **options)
352
-