pyxetabase 3.1.0.dev25__py3-none-any.whl → 4.0.0.dev29__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.
Files changed (37) hide show
  1. pyxetabase/rest_clients/_parent_rest_clients.py +47 -13
  2. pyxetabase/rest_clients/file_client.py +1 -1
  3. pyxetabase/rest_clients/variant_operation_client.py +1 -29
  4. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-4.0.0.dev29.dist-info}/METADATA +1 -1
  5. pyxetabase-4.0.0.dev29.dist-info/RECORD +35 -0
  6. pyopencga/__init__.py +0 -0
  7. pyopencga/commons.py +0 -347
  8. pyopencga/exceptions.py +0 -8
  9. pyopencga/opencga_client.py +0 -334
  10. pyopencga/opencga_config.py +0 -211
  11. pyopencga/rest_clients/__init__.py +0 -0
  12. pyopencga/rest_clients/_parent_rest_clients.py +0 -110
  13. pyopencga/rest_clients/admin_client.py +0 -172
  14. pyopencga/rest_clients/alignment_client.py +0 -373
  15. pyopencga/rest_clients/clinical_analysis_client.py +0 -1279
  16. pyopencga/rest_clients/cohort_client.py +0 -338
  17. pyopencga/rest_clients/disease_panel_client.py +0 -352
  18. pyopencga/rest_clients/family_client.py +0 -355
  19. pyopencga/rest_clients/file_client.py +0 -698
  20. pyopencga/rest_clients/ga4gh_client.py +0 -86
  21. pyopencga/rest_clients/individual_client.py +0 -435
  22. pyopencga/rest_clients/job_client.py +0 -415
  23. pyopencga/rest_clients/meta_client.py +0 -85
  24. pyopencga/rest_clients/organization_client.py +0 -216
  25. pyopencga/rest_clients/project_client.py +0 -128
  26. pyopencga/rest_clients/sample_client.py +0 -446
  27. pyopencga/rest_clients/study_client.py +0 -461
  28. pyopencga/rest_clients/user_client.py +0 -192
  29. pyopencga/rest_clients/variant_client.py +0 -1378
  30. pyopencga/rest_clients/variant_operation_client.py +0 -746
  31. pyopencga/rest_clients/workflow_client.py +0 -263
  32. pyopencga/rest_response.py +0 -220
  33. pyopencga/retry.py +0 -57
  34. pyxetabase-3.1.0.dev25.dist-info/RECORD +0 -63
  35. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-4.0.0.dev29.dist-info}/WHEEL +0 -0
  36. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-4.0.0.dev29.dist-info}/licenses/LICENSE +0 -0
  37. {pyxetabase-3.1.0.dev25.dist-info → pyxetabase-4.0.0.dev29.dist-info}/top_level.txt +0 -0
@@ -1,172 +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 Admin(_ParentRestClient):
14
- """
15
- This class contains methods for the 'Admin' webservices
16
- PATH: /{apiVersion}/admin
17
- """
18
-
19
- def __init__(self, configuration, token=None, login_handler=None, *args, **kwargs):
20
- super(Admin, self).__init__(configuration, token, login_handler, *args, **kwargs)
21
-
22
- def group_by_audit(self, fields, entity, **options):
23
- """
24
- Group by operation.
25
- PATH: /{apiVersion}/admin/audit/groupBy
26
-
27
- :param str entity: Entity to be grouped by. Allowed values: ['AUDIT
28
- NOTE ORGANIZATION USER PROJECT STUDY FILE SAMPLE JOB INDIVIDUAL
29
- COHORT DISEASE_PANEL FAMILY CLINICAL_ANALYSIS INTERPRETATION
30
- VARIANT ALIGNMENT CLINICAL EXPRESSION RGA FUNCTIONAL WORKFLOW
31
- RESOURCE'] (REQUIRED)
32
- :param str fields: Comma separated list of fields by which to group
33
- by. (REQUIRED)
34
- :param bool count: Count the number of elements matching the group.
35
- :param int limit: Maximum number of documents (groups) to be returned.
36
- :param str action: Action performed.
37
- :param str before: Object before update.
38
- :param str after: Object after update.
39
- :param str date: Date <,<=,>,>=(Format: yyyyMMddHHmmss) and
40
- yyyyMMddHHmmss-yyyyMMddHHmmss.
41
- """
42
-
43
- options['fields'] = fields
44
- options['entity'] = entity
45
- return self._get(category='admin', resource='groupBy', subcategory='audit', **options)
46
-
47
- def install_catalog(self, data=None, **options):
48
- """
49
- Install OpenCGA database.
50
- PATH: /{apiVersion}/admin/catalog/install
51
-
52
- :param dict data: JSON containing the mandatory parameters. (REQUIRED)
53
- """
54
-
55
- return self._post(category='admin', resource='install', subcategory='catalog', data=data, **options)
56
-
57
- def jwt_catalog(self, data=None, **options):
58
- """
59
- Change JWT secret key.
60
- PATH: /{apiVersion}/admin/catalog/jwt
61
-
62
- :param dict data: JSON containing the parameters. (REQUIRED)
63
- :param str organization: Organization id.
64
- """
65
-
66
- return self._post(category='admin', resource='jwt', subcategory='catalog', data=data, **options)
67
-
68
- def fetch_resource(self, data=None, **options):
69
- """
70
- Fetch resources from the public server and save them into the OpenCGA
71
- local installation.
72
- PATH: /{apiVersion}/admin/resource/fetch
73
-
74
- :param dict data: Download-resources tool parameters. (REQUIRED)
75
- :param str job_id: Job ID. It must be a unique string within the
76
- study. An ID will be autogenerated automatically if not provided.
77
- :param str job_description: Job description.
78
- :param str job_depends_on: Comma separated list of existing job IDs
79
- the job will depend on.
80
- :param str job_tags: Job tags.
81
- :param str job_scheduled_start_time: Time when the job is scheduled to
82
- start.
83
- :param str job_priority: Priority of the job.
84
- :param bool job_dry_run: Flag indicating that the job will be executed
85
- in dry-run mode. In this mode, OpenCGA will validate that all
86
- parameters and prerequisites are correctly set for successful
87
- execution, but the job will not actually run.
88
- """
89
-
90
- return self._post(category='admin', resource='fetch', subcategory='resource', data=data, **options)
91
-
92
- def create_users(self, data=None, **options):
93
- """
94
- Create a new user.
95
- PATH: /{apiVersion}/admin/users/create
96
-
97
- :param dict data: JSON containing the parameters. (REQUIRED)
98
- """
99
-
100
- return self._post(category='admin', resource='create', subcategory='users', data=data, **options)
101
-
102
- def import_users(self, data=None, **options):
103
- """
104
- Import users or a group of users from LDAP or AAD.
105
- PATH: /{apiVersion}/admin/users/import
106
-
107
- :param dict data: JSON containing the parameters. (REQUIRED)
108
- :param str organization: Organization id.
109
- """
110
-
111
- return self._post(category='admin', resource='import', subcategory='users', data=data, **options)
112
-
113
- def permissions_users(self, **options):
114
- """
115
- User permissions.
116
- PATH: /{apiVersion}/admin/users/permissions
117
-
118
- :param str study: Study [[organization@]project:]study where study and
119
- project can be either the ID or UUID.
120
- :param str entry_ids: Comma separated list of entry ids.
121
- :param str permissions: Comma separated list of permissions to be
122
- retrieved.
123
- :param str category: Category corresponding to the id's provided.
124
- """
125
-
126
- return self._get(category='admin', resource='permissions', subcategory='users', **options)
127
-
128
- def search_users(self, **options):
129
- """
130
- User search method.
131
- PATH: /{apiVersion}/admin/users/search
132
-
133
- :param str include: Fields included in the response, whole JSON path
134
- must be provided.
135
- :param str exclude: Fields excluded in the response, whole JSON path
136
- must be provided.
137
- :param int limit: Number of results to be returned.
138
- :param int skip: Number of results to skip.
139
- :param bool count: Get the total number of results matching the query.
140
- Deactivated by default.
141
- :param str organization: Organization id.
142
- :param str user: User ID.
143
- :param str authentication_id: Authentication origin ID.
144
- """
145
-
146
- return self._get(category='admin', resource='search', subcategory='users', **options)
147
-
148
- def sync_users(self, data=None, **options):
149
- """
150
- [DEPRECATED] Moved to /users/sync.
151
- PATH: /{apiVersion}/admin/users/sync
152
-
153
- :param dict data: JSON containing the parameters. (REQUIRED)
154
- :param str organization: Organization id.
155
- """
156
-
157
- return self._post(category='admin', resource='sync', subcategory='users', data=data, **options)
158
-
159
- def users_update_groups(self, user, data=None, **options):
160
- """
161
- Add or remove users from existing groups.
162
- PATH: /{apiVersion}/admin/users/{user}/groups/update
163
-
164
- :param dict data: JSON containing the parameters. (REQUIRED)
165
- :param str user: User ID. (REQUIRED)
166
- :param str organization: Organization id.
167
- :param str action: Action to be performed: ADD or REMOVE user to/from
168
- groups. Allowed values: ['ADD REMOVE']
169
- """
170
-
171
- return self._post(category='admin/users', resource='update', query_id=user, subcategory='groups', data=data, **options)
172
-
@@ -1,373 +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 Alignment(_ParentRestClient):
14
- """
15
- This class contains methods for the 'Analysis - Alignment' webservices
16
- PATH: /{apiVersion}/analysis/alignment
17
- """
18
-
19
- def __init__(self, configuration, token=None, login_handler=None, *args, **kwargs):
20
- super(Alignment, self).__init__(configuration, token, login_handler, *args, **kwargs)
21
-
22
- def run_bwa(self, data=None, **options):
23
- """
24
- BWA is a software package for mapping low-divergent sequences against
25
- a large reference genome.
26
- PATH: /{apiVersion}/analysis/alignment/bwa/run
27
-
28
- :param dict data: BWA parameters. (REQUIRED)
29
- :param str study: study.
30
- :param str job_id: Job ID. It must be a unique string within the
31
- study. An ID will be autogenerated automatically if not provided.
32
- :param str job_depends_on: Comma separated list of existing job IDs
33
- the job will depend on.
34
- :param str job_description: Job description.
35
- :param str job_tags: Job tags.
36
- :param str job_scheduled_start_time: Time when the job is scheduled to
37
- start.
38
- :param str job_priority: Priority of the job.
39
- :param bool job_dry_run: Flag indicating that the job will be executed
40
- in dry-run mode. In this mode, OpenCGA will validate that all
41
- parameters and prerequisites are correctly set for successful
42
- execution, but the job will not actually run.
43
- """
44
-
45
- return self._post(category='analysis', resource='run', subcategory='alignment/bwa', data=data, **options)
46
-
47
- def run_coverage_index(self, data=None, **options):
48
- """
49
- Compute the coverage from a given BAM alignment file, e.g., create a
50
- .bw file from a .bam file.
51
- PATH: /{apiVersion}/analysis/alignment/coverage/index/run
52
-
53
- :param dict data: Coverage computation parameters. (REQUIRED)
54
- :param str study: study.
55
- :param str job_id: Job ID. It must be a unique string within the
56
- study. An ID will be autogenerated automatically if not provided.
57
- :param str job_depends_on: Comma separated list of existing job IDs
58
- the job will depend on.
59
- :param str job_description: Job description.
60
- :param str job_tags: Job tags.
61
- :param str job_scheduled_start_time: Time when the job is scheduled to
62
- start.
63
- :param str job_priority: Priority of the job.
64
- :param bool job_dry_run: Flag indicating that the job will be executed
65
- in dry-run mode. In this mode, OpenCGA will validate that all
66
- parameters and prerequisites are correctly set for successful
67
- execution, but the job will not actually run.
68
- """
69
-
70
- return self._post(category='analysis', resource='run', subcategory='alignment/coverage/index', data=data, **options)
71
-
72
- def coverage_qc_gene_coverage_stats_run(self, data=None, **options):
73
- """
74
- Compute gene coverage stats for a given alignment file and a list of
75
- genes.
76
- PATH: /{apiVersion}/analysis/alignment/coverage/qc/geneCoverageStats/run
77
-
78
- :param dict data: Gene coverage stats parameters for a given BAM file
79
- and a list of genes. (REQUIRED)
80
- :param str study: study.
81
- :param str job_id: Job ID. It must be a unique string within the
82
- study. An ID will be autogenerated automatically if not provided.
83
- :param str job_depends_on: Comma separated list of existing job IDs
84
- the job will depend on.
85
- :param str job_description: Job description.
86
- :param str job_tags: Job tags.
87
- :param str job_scheduled_start_time: Time when the job is scheduled to
88
- start.
89
- :param str job_priority: Priority of the job.
90
- :param bool job_dry_run: Flag indicating that the job will be executed
91
- in dry-run mode. In this mode, OpenCGA will validate that all
92
- parameters and prerequisites are correctly set for successful
93
- execution, but the job will not actually run.
94
- """
95
-
96
- return self._post(category='analysis', resource='run', subcategory='alignment/coverage/qc/geneCoverageStats', data=data, **options)
97
-
98
- def query_coverage(self, file, **options):
99
- """
100
- Query the coverage of an alignment file for regions or genes.
101
- PATH: /{apiVersion}/analysis/alignment/coverage/query
102
-
103
- :param str file: File ID. (REQUIRED)
104
- :param str study: Study [[organization@]project:]study where study and
105
- project can be either the ID or UUID.
106
- :param str region: Comma separated list of regions 'chr:start-end,
107
- e.g.: 2,3:63500-65000.
108
- :param str gene: Comma separated list of genes, e.g.: BCRA2,TP53.
109
- :param int offset: Offset to extend the region, gene or exon at up and
110
- downstream.
111
- :param bool only_exons: Only exons are taking into account when genes
112
- are specified.
113
- :param str range: Range of coverage values to be reported. Minimum and
114
- maximum values are separated by '-', e.g.: 20-40 (for coverage
115
- values greater or equal to 20 and less or equal to 40). A single
116
- value means to report coverage values less or equal to that value.
117
- :param int window_size: Window size for the region coverage (if a
118
- coverage range is provided, window size must be 1).
119
- :param bool split_results: Split results into regions (or gene/exon
120
- regions).
121
- """
122
-
123
- options['file'] = file
124
- return self._get(category='analysis', resource='query', subcategory='alignment/coverage', **options)
125
-
126
- def ratio_coverage(self, file1, file2, **options):
127
- """
128
- Compute coverage ratio from file #1 vs file #2, (e.g. somatic vs
129
- germline).
130
- PATH: /{apiVersion}/analysis/alignment/coverage/ratio
131
-
132
- :param str file2: Input file #2 (e.g. germline file). (REQUIRED)
133
- :param str file1: Input file #1 (e.g. somatic file). (REQUIRED)
134
- :param str study: Study [[organization@]project:]study where study and
135
- project can be either the ID or UUID.
136
- :param bool skip_log2: Do not apply Log2 to normalise the coverage
137
- ratio.
138
- :param str region: Comma separated list of regions 'chr:start-end,
139
- e.g.: 2,3:63500-65000.
140
- :param str gene: Comma separated list of genes, e.g.: BCRA2,TP53.
141
- :param int offset: Offset to extend the region, gene or exon at up and
142
- downstream.
143
- :param bool only_exons: Only exons are taking into account when genes
144
- are specified.
145
- :param int window_size: Window size for the region coverage (if a
146
- coverage range is provided, window size must be 1).
147
- :param bool split_results: Split results into regions (or gene/exon
148
- regions).
149
- """
150
-
151
- options['file1'] = file1
152
- options['file2'] = file2
153
- return self._get(category='analysis', resource='ratio', subcategory='alignment/coverage', **options)
154
-
155
- def stats_coverage(self, file, gene, **options):
156
- """
157
- Compute coverage stats per transcript for a list of genes.
158
- PATH: /{apiVersion}/analysis/alignment/coverage/stats
159
-
160
- :param str gene: Comma separated list of genes, e.g.: BCRA2,TP53.
161
- (REQUIRED)
162
- :param str file: File ID. (REQUIRED)
163
- :param str study: Study [[organization@]project:]study where study and
164
- project can be either the ID or UUID.
165
- :param int threshold: Only regions whose coverage depth is under this
166
- threshold will be reported.
167
- """
168
-
169
- options['file'] = file
170
- options['gene'] = gene
171
- return self._get(category='analysis', resource='stats', subcategory='alignment/coverage', **options)
172
-
173
- def run_deeptools(self, data=None, **options):
174
- """
175
- Deeptools is a suite of python tools particularly developed for the
176
- efficient analysis of high-throughput sequencing data, such as
177
- ChIP-seq, RNA-seq or MNase-seq.
178
- PATH: /{apiVersion}/analysis/alignment/deeptools/run
179
-
180
- :param dict data: Deeptools parameters. Supported Deeptools commands:
181
- bamCoverage, bamCompare. (REQUIRED)
182
- :param str study: study.
183
- :param str job_id: Job ID. It must be a unique string within the
184
- study. An ID will be autogenerated automatically if not provided.
185
- :param str job_depends_on: Comma separated list of existing job IDs
186
- the job will depend on.
187
- :param str job_description: Job description.
188
- :param str job_tags: Job tags.
189
- :param str job_scheduled_start_time: Time when the job is scheduled to
190
- start.
191
- :param str job_priority: Priority of the job.
192
- :param bool job_dry_run: Flag indicating that the job will be executed
193
- in dry-run mode. In this mode, OpenCGA will validate that all
194
- parameters and prerequisites are correctly set for successful
195
- execution, but the job will not actually run.
196
- """
197
-
198
- return self._post(category='analysis', resource='run', subcategory='alignment/deeptools', data=data, **options)
199
-
200
- def run_fastqc(self, data=None, **options):
201
- """
202
- A high throughput sequence QC analysis tool.
203
- PATH: /{apiVersion}/analysis/alignment/fastqc/run
204
-
205
- :param dict data: FastQC parameters. (REQUIRED)
206
- :param str study: study.
207
- :param str job_id: Job ID. It must be a unique string within the
208
- study. An ID will be autogenerated automatically if not provided.
209
- :param str job_depends_on: Comma separated list of existing job IDs
210
- the job will depend on.
211
- :param str job_description: Job description.
212
- :param str job_tags: Job tags.
213
- :param str job_scheduled_start_time: Time when the job is scheduled to
214
- start.
215
- :param str job_priority: Priority of the job.
216
- :param bool job_dry_run: Flag indicating that the job will be executed
217
- in dry-run mode. In this mode, OpenCGA will validate that all
218
- parameters and prerequisites are correctly set for successful
219
- execution, but the job will not actually run.
220
- """
221
-
222
- return self._post(category='analysis', resource='run', subcategory='alignment/fastqc', data=data, **options)
223
-
224
- def run_index(self, data=None, **options):
225
- """
226
- Index a given alignment file BAM/CRAM, e.g., create a .bai file from a
227
- .bam file.
228
- PATH: /{apiVersion}/analysis/alignment/index/run
229
-
230
- :param dict data: Alignment index params. (REQUIRED)
231
- :param str study: study.
232
- :param str job_id: Job ID. It must be a unique string within the
233
- study. An ID will be autogenerated automatically if not provided.
234
- :param str job_depends_on: Comma separated list of existing job IDs
235
- the job will depend on.
236
- :param str job_description: Job description.
237
- :param str job_tags: Job tags.
238
- :param str job_scheduled_start_time: Time when the job is scheduled to
239
- start.
240
- :param str job_priority: Priority of the job.
241
- :param bool job_dry_run: Flag indicating that the job will be executed
242
- in dry-run mode. In this mode, OpenCGA will validate that all
243
- parameters and prerequisites are correctly set for successful
244
- execution, but the job will not actually run.
245
- """
246
-
247
- return self._post(category='analysis', resource='run', subcategory='alignment/index', data=data, **options)
248
-
249
- def run_picard(self, data=None, **options):
250
- """
251
- Picard is a set of command line tools (in Java) for manipulating
252
- high-throughput sequencing (HTS) data and formats such as
253
- SAM/BAM/CRAM and VCF. Supported Picard commands: CollectHsMetrics,
254
- CollectWgsMetrics, BedToIntervalList.
255
- PATH: /{apiVersion}/analysis/alignment/picard/run
256
-
257
- :param dict data: Picard parameters. Supported Picard commands:
258
- CollectHsMetrics, CollectWgsMetrics, BedToIntervalList. (REQUIRED)
259
- :param str study: study.
260
- :param str job_id: Job ID. It must be a unique string within the
261
- study. An ID will be autogenerated automatically if not provided.
262
- :param str job_depends_on: Comma separated list of existing job IDs
263
- the job will depend on.
264
- :param str job_description: Job description.
265
- :param str job_tags: Job tags.
266
- :param str job_scheduled_start_time: Time when the job is scheduled to
267
- start.
268
- :param str job_priority: Priority of the job.
269
- :param bool job_dry_run: Flag indicating that the job will be executed
270
- in dry-run mode. In this mode, OpenCGA will validate that all
271
- parameters and prerequisites are correctly set for successful
272
- execution, but the job will not actually run.
273
- """
274
-
275
- return self._post(category='analysis', resource='run', subcategory='alignment/picard', data=data, **options)
276
-
277
- def run_qc(self, data=None, **options):
278
- """
279
- Compute quality control (QC) metrics for a given alignment file:
280
- samtools stats, samtools flag stats and FastQC metrics.
281
- PATH: /{apiVersion}/analysis/alignment/qc/run
282
-
283
- :param dict data: Alignment quality control (QC) parameters. It
284
- computes: stats, flag stats and fastqc metrics. The BAM file ID is
285
- mandatory and in order to skip some metrics, use the following
286
- keywords (separated by commas): stats, flagstats, fastqc.
287
- (REQUIRED)
288
- :param str study: study.
289
- :param str job_id: Job ID. It must be a unique string within the
290
- study. An ID will be autogenerated automatically if not provided.
291
- :param str job_depends_on: Comma separated list of existing job IDs
292
- the job will depend on.
293
- :param str job_description: Job description.
294
- :param str job_tags: Job tags.
295
- :param str job_scheduled_start_time: Time when the job is scheduled to
296
- start.
297
- :param str job_priority: Priority of the job.
298
- :param bool job_dry_run: Flag indicating that the job will be executed
299
- in dry-run mode. In this mode, OpenCGA will validate that all
300
- parameters and prerequisites are correctly set for successful
301
- execution, but the job will not actually run.
302
- """
303
-
304
- return self._post(category='analysis', resource='run', subcategory='alignment/qc', data=data, **options)
305
-
306
- def query(self, file, **options):
307
- """
308
- Search over indexed alignments.
309
- PATH: /{apiVersion}/analysis/alignment/query
310
-
311
- :param str file: File ID. (REQUIRED)
312
- :param int limit: Number of results to be returned.
313
- :param int skip: Number of results to skip.
314
- :param bool count: Get the total number of results matching the query.
315
- Deactivated by default.
316
- :param str study: Study [[organization@]project:]study where study and
317
- project can be either the ID or UUID.
318
- :param str region: Comma separated list of regions 'chr:start-end,
319
- e.g.: 2,3:63500-65000.
320
- :param str gene: Comma separated list of genes, e.g.: BCRA2,TP53.
321
- :param int offset: Offset to extend the region, gene or exon at up and
322
- downstream.
323
- :param bool only_exons: Only exons are taking into account when genes
324
- are specified.
325
- :param int min_mapping_quality: Minimum mapping quality.
326
- :param int max_num_mismatches: Maximum number of mismatches.
327
- :param int max_num_hits: Maximum number of hits.
328
- :param bool properly_paired: Return only properly paired alignments.
329
- :param int max_insert_size: Maximum insert size.
330
- :param bool skip_unmapped: Skip unmapped alignments.
331
- :param bool skip_duplicated: Skip duplicated alignments.
332
- :param bool region_contained: Return alignments contained within
333
- boundaries of region.
334
- :param bool force_m_d_field: Force SAM MD optional field to be set
335
- with the alignments.
336
- :param bool bin_qualities: Compress the nucleotide qualities by using
337
- 8 quality levels.
338
- :param bool split_results: Split results into regions (or gene/exon
339
- regions).
340
- """
341
-
342
- options['file'] = file
343
- return self._get(category='analysis', resource='query', subcategory='alignment', **options)
344
-
345
- def run_samtools(self, data=None, **options):
346
- """
347
- Samtools is a program for interacting with high-throughput sequencing
348
- data in SAM, BAM and CRAM formats. Supported Samtools commands:
349
- sort, index, view, stats, flagstat, dict, faidx, depth,
350
- plot-bamstats.
351
- PATH: /{apiVersion}/analysis/alignment/samtools/run
352
-
353
- :param dict data: Samtools parameters. Supported Samtools commands:
354
- sort, index, view, stats, flagstat, dict, faidx, depth,
355
- plot-bamstats. (REQUIRED)
356
- :param str study: study.
357
- :param str job_id: Job ID. It must be a unique string within the
358
- study. An ID will be autogenerated automatically if not provided.
359
- :param str job_depends_on: Comma separated list of existing job IDs
360
- the job will depend on.
361
- :param str job_description: Job description.
362
- :param str job_tags: Job tags.
363
- :param str job_scheduled_start_time: Time when the job is scheduled to
364
- start.
365
- :param str job_priority: Priority of the job.
366
- :param bool job_dry_run: Flag indicating that the job will be executed
367
- in dry-run mode. In this mode, OpenCGA will validate that all
368
- parameters and prerequisites are correctly set for successful
369
- execution, but the job will not actually run.
370
- """
371
-
372
- return self._post(category='analysis', resource='run', subcategory='alignment/samtools', data=data, **options)
373
-