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,355 +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 Family(_ParentRestClient):
14
- """
15
- This class contains methods for the 'Families' webservices
16
- PATH: /{apiVersion}/families
17
- """
18
-
19
- def __init__(self, configuration, token=None, login_handler=None, *args, **kwargs):
20
- super(Family, 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}/families/acl/{members}/update
26
-
27
- :param dict data: JSON containing the parameters to add ACLs.
28
- (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
- :param str propagate: Propagate family permissions to related
36
- individuals and samples. Allowed values: ['NO YES
37
- YES_AND_VARIANT_VIEW']
38
- """
39
-
40
- options['action'] = action
41
- return self._post(category='families', resource='update', subcategory='acl', second_query_id=members, data=data, **options)
42
-
43
- def aggregation_stats(self, **options):
44
- """
45
- Fetch catalog family stats.
46
- PATH: /{apiVersion}/families/aggregationStats
47
-
48
- :param str study: Study [[organization@]project:]study where study and
49
- project can be either the ID or UUID.
50
- :param str id: Comma separated list family IDs up to a maximum of 100.
51
- Also admits basic regular expressions using the operator '~', i.e.
52
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
53
- case insensitive search.
54
- :param str name: Comma separated list family names up to a maximum of
55
- 100. Also admits basic regular expressions using the operator '~',
56
- i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i'
57
- for case insensitive search.
58
- :param str uuid: Comma separated list family UUIDs up to a maximum of
59
- 100.
60
- :param str members: Comma separated list of family members.
61
- :param int expected_size: Expected size of the family (number of
62
- members).
63
- :param str samples: Comma separated list of member's samples.
64
- :param str phenotypes: Comma separated list of phenotype ids or names.
65
- Also admits 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 disorders: Comma separated list of disorder ids or names.
69
- Also admits basic regular expressions using the operator '~', i.e.
70
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
71
- case insensitive search.
72
- :param str creation_date: Creation date. Format: yyyyMMddHHmmss.
73
- Examples: >2018, 2017-2018, <201805.
74
- :param str modification_date: Modification date. Format:
75
- yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
76
- :param bool deleted: Boolean to retrieve deleted entries.
77
- :param str internal_status: Filter by internal status.
78
- :param str status: Filter by status.
79
- :param str annotation: Annotation filters. Example:
80
- age>30;gender=FEMALE. For more information, please visit
81
- http://docs.opencb.org/display/opencga/AnnotationSets+1.4.0.
82
- :param str acl: Filter entries for which a user has the provided
83
- permissions. Format: acl={user}:{permissions}. Example:
84
- acl=john:WRITE,WRITE_ANNOTATIONS will return all entries for which
85
- user john has both WRITE and WRITE_ANNOTATIONS permissions. Only
86
- study owners or administrators can query by this field. .
87
- :param str release: Release when it was created.
88
- :param int snapshot: Snapshot value (Latest version of the entry in
89
- the specified release).
90
- :param str field: Field to apply aggregation statistics to (or a list
91
- of fields separated by semicolons), e.g.:
92
- studies;type;numSamples[0..10]:1;format:sum(size).
93
- """
94
-
95
- return self._get(category='families', resource='aggregationStats', **options)
96
-
97
- def load_annotation_sets(self, variable_set_id, path, data=None, **options):
98
- """
99
- Load annotation sets from a TSV file.
100
- PATH: /{apiVersion}/families/annotationSets/load
101
-
102
- :param str path: Path where the TSV file is located in OpenCGA or
103
- where it should be located. (REQUIRED)
104
- :param str variable_set_id: Variable set ID or name. (REQUIRED)
105
- :param str study: Study [[organization@]project:]study where study and
106
- project can be either the ID or UUID.
107
- :param bool parents: Flag indicating whether to create parent
108
- directories if they don't exist (only when TSV file was not
109
- previously associated).
110
- :param str annotation_set_id: Annotation set id. If not provided,
111
- variableSetId will be used.
112
- :param dict data: JSON containing the 'content' of the TSV file if
113
- this has not yet been registered into OpenCGA.
114
- """
115
-
116
- options['variableSetId'] = variable_set_id
117
- options['path'] = path
118
- return self._post(category='families', resource='load', subcategory='annotationSets', data=data, **options)
119
-
120
- def create(self, data=None, **options):
121
- """
122
- Create family and the individual objects if they do not exist.
123
- PATH: /{apiVersion}/families/create
124
-
125
- :param dict data: JSON containing family information. (REQUIRED)
126
- :param str include: Fields included in the response, whole JSON path
127
- must be provided.
128
- :param str exclude: Fields excluded in the response, whole JSON path
129
- must be provided.
130
- :param str study: Study [[organization@]project:]study where study and
131
- project can be either the ID or UUID.
132
- :param str members: Comma separated list of member ids to be
133
- associated to the created family.
134
- :param bool include_result: Flag indicating to include the created or
135
- updated document result in the response.
136
- """
137
-
138
- return self._post(category='families', resource='create', data=data, **options)
139
-
140
- def distinct(self, field, **options):
141
- """
142
- Family distinct method.
143
- PATH: /{apiVersion}/families/distinct
144
-
145
- :param str field: Comma separated list of fields for which to obtain
146
- the distinct values. (REQUIRED)
147
- :param str study: Study [[organization@]project:]study where study and
148
- project can be either the ID or UUID.
149
- :param str id: Comma separated list family IDs up to a maximum of 100.
150
- Also admits 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 name: Comma separated list family names up to a maximum of
154
- 100. Also admits basic regular expressions using the operator '~',
155
- i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i'
156
- for case insensitive search.
157
- :param str uuid: Comma separated list family UUIDs up to a maximum of
158
- 100.
159
- :param str members: Comma separated list of family members.
160
- :param int expected_size: Expected size of the family (number of
161
- members).
162
- :param str samples: Comma separated list of member's samples.
163
- :param str phenotypes: Comma separated list of phenotype ids or names.
164
- Also admits basic regular expressions using the operator '~', i.e.
165
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
166
- case insensitive search.
167
- :param str disorders: Comma separated list of disorder ids or names.
168
- Also admits basic regular expressions using the operator '~', i.e.
169
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
170
- case insensitive search.
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 bool deleted: Boolean to retrieve deleted entries.
176
- :param str internal_status: Filter by internal status.
177
- :param str status: Filter by status.
178
- :param str annotation: Annotation filters. Example:
179
- age>30;gender=FEMALE. For more information, please visit
180
- http://docs.opencb.org/display/opencga/AnnotationSets+1.4.0.
181
- :param str acl: Filter entries for which a user has the provided
182
- permissions. Format: acl={user}:{permissions}. Example:
183
- acl=john:WRITE,WRITE_ANNOTATIONS will return all entries for which
184
- user john has both WRITE and WRITE_ANNOTATIONS permissions. Only
185
- study owners or administrators can query by this field. .
186
- :param str release: Release when it was created.
187
- :param int snapshot: Snapshot value (Latest version of the entry in
188
- the specified release).
189
- """
190
-
191
- options['field'] = field
192
- return self._get(category='families', resource='distinct', **options)
193
-
194
- def search(self, **options):
195
- """
196
- Search families.
197
- PATH: /{apiVersion}/families/search
198
-
199
- :param str include: Fields included in the response, whole JSON path
200
- must be provided.
201
- :param str exclude: Fields excluded in the response, whole JSON path
202
- must be provided.
203
- :param int limit: Number of results to be returned.
204
- :param int skip: Number of results to skip.
205
- :param bool count: Get the total number of results matching the query.
206
- Deactivated by default.
207
- :param bool flatten_annotations: Flatten the annotations?.
208
- :param str study: Study [[organization@]project:]study where study and
209
- project can be either the ID or UUID.
210
- :param str id: Comma separated list family IDs up to a maximum of 100.
211
- Also admits basic regular expressions using the operator '~', i.e.
212
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
213
- case insensitive search.
214
- :param str name: Comma separated list family names up to a maximum of
215
- 100. Also admits basic regular expressions using the operator '~',
216
- i.e. '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i'
217
- for case insensitive search.
218
- :param str uuid: Comma separated list family UUIDs up to a maximum of
219
- 100.
220
- :param str members: Comma separated list of family members.
221
- :param int expected_size: Expected size of the family (number of
222
- members).
223
- :param str samples: Comma separated list of member's samples.
224
- :param str phenotypes: Comma separated list of phenotype ids or names.
225
- Also admits basic regular expressions using the operator '~', i.e.
226
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
227
- case insensitive search.
228
- :param str disorders: Comma separated list of disorder ids or names.
229
- Also admits basic regular expressions using the operator '~', i.e.
230
- '~{perl-regex}' e.g. '~value' for case sensitive, '~/value/i' for
231
- case insensitive search.
232
- :param str creation_date: Creation date. Format: yyyyMMddHHmmss.
233
- Examples: >2018, 2017-2018, <201805.
234
- :param str modification_date: Modification date. Format:
235
- yyyyMMddHHmmss. Examples: >2018, 2017-2018, <201805.
236
- :param bool deleted: Boolean to retrieve deleted entries.
237
- :param str internal_status: Filter by internal status.
238
- :param str status: Filter by status.
239
- :param str annotation: Annotation filters. Example:
240
- age>30;gender=FEMALE. For more information, please visit
241
- http://docs.opencb.org/display/opencga/AnnotationSets+1.4.0.
242
- :param str acl: Filter entries for which a user has the provided
243
- permissions. Format: acl={user}:{permissions}. Example:
244
- acl=john:WRITE,WRITE_ANNOTATIONS will return all entries for which
245
- user john has both WRITE and WRITE_ANNOTATIONS permissions. Only
246
- study owners or administrators can query by this field. .
247
- :param str release: Release when it was created.
248
- :param int snapshot: Snapshot value (Latest version of the entry in
249
- the specified release).
250
- """
251
-
252
- return self._get(category='families', resource='search', **options)
253
-
254
- def acl(self, families, **options):
255
- """
256
- Returns the acl of the families. If member is provided, it will only
257
- return the acl for the member.
258
- PATH: /{apiVersion}/families/{families}/acl
259
-
260
- :param str families: Comma separated list of family IDs or names up to
261
- a maximum of 100. (REQUIRED)
262
- :param str study: Study [[organization@]project:]study where study and
263
- project can be either the ID or UUID.
264
- :param str member: User or group id.
265
- :param bool silent: Boolean to retrieve all possible entries that are
266
- queried for, false to raise an exception whenever one of the
267
- entries looked for cannot be shown for whichever reason.
268
- """
269
-
270
- return self._get(category='families', resource='acl', query_id=families, **options)
271
-
272
- def delete(self, families, **options):
273
- """
274
- Delete existing families.
275
- PATH: /{apiVersion}/families/{families}/delete
276
-
277
- :param str families: Comma separated list of family ids. (REQUIRED)
278
- :param str study: Study [[organization@]project:]study where study and
279
- project can be either the ID or UUID.
280
- """
281
-
282
- return self._delete(category='families', resource='delete', query_id=families, **options)
283
-
284
- def info(self, families, **options):
285
- """
286
- Get family information.
287
- PATH: /{apiVersion}/families/{families}/info
288
-
289
- :param str families: Comma separated list of family IDs or names up to
290
- a maximum of 100. (REQUIRED)
291
- :param str include: Fields included in the response, whole JSON path
292
- must be provided.
293
- :param str exclude: Fields excluded in the response, whole JSON path
294
- must be provided.
295
- :param bool flatten_annotations: Flatten the annotations?.
296
- :param str study: Study [[organization@]project:]study where study and
297
- project can be either the ID or UUID.
298
- :param str version: Comma separated list of family versions. 'all' to
299
- get all the family versions. Not supported if multiple family ids
300
- are provided.
301
- :param bool deleted: Boolean to retrieve deleted families.
302
- """
303
-
304
- return self._get(category='families', resource='info', query_id=families, **options)
305
-
306
- def update(self, families, data=None, **options):
307
- """
308
- Update some family attributes.
309
- PATH: /{apiVersion}/families/{families}/update
310
-
311
- :param str families: Comma separated list of family ids. (REQUIRED)
312
- :param str include: Fields included in the response, whole JSON path
313
- must be provided.
314
- :param str exclude: Fields excluded in the response, whole JSON path
315
- must be provided.
316
- :param str study: Study [[organization@]project:]study where study and
317
- project can be either the ID or UUID.
318
- :param bool update_roles: Update the member roles within the family.
319
- :param bool update_pedigree_graph: Update the family pedigree graph.
320
- :param str annotation_sets_action: Action to be performed if the array
321
- of annotationSets is being updated. Allowed values: ['ADD SET
322
- REMOVE']
323
- :param bool include_result: Flag indicating to include the created or
324
- updated document result in the response.
325
- :param dict data: body.
326
- """
327
-
328
- return self._post(category='families', resource='update', query_id=families, data=data, **options)
329
-
330
- def update_annotation_sets_annotations(self, family, annotation_set, data=None, **options):
331
- """
332
- Update annotations from an annotationSet.
333
- PATH: /{apiVersion}/families/{family}/annotationSets/{annotationSet}/annotations/update
334
-
335
- :param str annotation_set: AnnotationSet ID to be updated. (REQUIRED)
336
- :param str family: Family id. (REQUIRED)
337
- :param str study: Study [[organization@]project:]study where study and
338
- project can be either the ID or UUID.
339
- :param str action: Action to be performed: ADD to add new annotations;
340
- REPLACE to replace the value of an already existing annotation; SET
341
- to set the new list of annotations removing any possible old
342
- annotations; REMOVE to remove some annotations; RESET to set some
343
- annotations to the default value configured in the corresponding
344
- variables of the VariableSet if any. Allowed values: ['ADD SET
345
- REMOVE RESET REPLACE']
346
- :param dict data: Json containing the map of annotations when the
347
- action is ADD, SET or REPLACE, a json with only the key 'remove'
348
- containing the comma separated variables to be removed as a value
349
- when the action is REMOVE or a json with only the key 'reset'
350
- containing the comma separated variables that will be set to the
351
- default value when the action is RESET.
352
- """
353
-
354
- return self._post(category='families', resource='annotations/update', query_id=family, subcategory='annotationSets', second_query_id=annotation_set, data=data, **options)
355
-