-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiReceptor_Data_Service_API_V2.yaml
1063 lines (1060 loc) · 35.2 KB
/
iReceptor_Data_Service_API_V2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
info:
title: iReceptor Data Source API
version: 2.0.5
contact:
name: iReceptor Project
url: 'http://www.ireceptor.org/'
email: breden@sfu.ca
description: >
Documentation of Major Version 2 of the iReceptor Adaptive Immune Receptor
Repertoire (AIRR) data repsoitory web service application programming interface
(API). V2 of the API implements an increased level of compliance with the
[Minimal Information for AIRR (MiAIRR)
standard](https://github.com/airr-community/airr-standards). Learn more
about [iReceptor](http://www.ireceptor.org/)
host: ipa.ireceptor.org
basePath: /v2
definitions:
# A definition of the summary response for an iReceptor API call. This
# response is used wherever summary data at the sample level is provided
# by an API call. It is composed of the sequence count, the relevant AIRR
# model elements, and the revelant iReceptor model elements.
ireceptor_sample_summary_response:
type: array
items:
allOf:
- $ref: '#/definitions/ireceptor_sequence_count_model'
- $ref: '#/definitions/airr_summary_model'
- $ref: 'https://raw.githubusercontent.com/sfu-ireceptor/api/AIRR-compliance/ireceptor_summary.yaml#/ireceptor_summary_model'
ireceptor_sequence_summary_response:
type: array
items:
allOf:
- $ref: '#/definitions/ireceptor_sequence_count_model'
- $ref: '#/definitions/ireceptor_filtered_sequence_count_model'
- $ref: '#/definitions/airr_summary_model'
- $ref: 'https://raw.githubusercontent.com/sfu-ireceptor/api/AIRR-compliance/ireceptor_summary.yaml#/ireceptor_summary_model'
# A definition of the sequence response for an iReceptor API call. This
# response is used wherever sequence data is provided by an API call.
# It is a composite of the sequence fields defined by the MiAIRR standard,
# the sequence fields defined by the AIRR Formats working group, and any
# ancillary fields defined by iReceptor.
ireceptor_sequence_response:
type: array
items:
allOf:
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/Rearrangement'
- $ref: 'https://raw.githubusercontent.com/sfu-ireceptor/api/AIRR-compliance/ireceptor_sequence.yaml#/ireceptor_sequence_annotation_model'
# The AIRR Minimal Standards model for metadata above the sequence annotation level.
airr_summary_model:
allOf:
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/Study'
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/Subject'
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/Diagnosis'
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/Sample'
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/CellProcessing'
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/NucleicAcidProcessing'
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/RawSequenceData'
- $ref: 'https://raw.githubusercontent.com/airr-community/airr-standards/v0.1.0/specs/definitions.yaml#/SoftwareProcessing'
# A simple model to represent a sequence count, used to make the
# composite responses clean in that they all refer to models.
ireceptor_sequence_count_model:
type: object
properties:
ir_sequence_count:
type: integer
description: Number of sequences found that met the sample search criteria for this sample
example: 123456
ireceptor_filtered_sequence_count_model:
type: object
properties:
ir_filtered_sequence_count:
type: integer
description: Number of sequences found that met the sequence search criteria for this sample
example: 4321
ireceptor_core_samples_parameters_model:
type: object
required:
- ir_username
properties:
ir_username:
type: string
description: >
Username of the individual requesting access to the iReceptor
repository node.
ir_lab_id:
type: string
description: |
e.g. 1
ir_project_id:
type: array
items:
type: string
description: |
e.g. 1
ireceptor_ancillary_samples_parameters_model:
type: object
properties:
ir_subject_age_min:
type: integer
description: |
e.g. 30
ir_subject_age_max:
type: integer
description: |
e.g. 50
#
# AIRR Formats compliant extended parameters for rearrangements (/sequences* entry points)
#
airr_formats_sequences_parameters_model:
type: object
properties:
junction_length:
type: integer
description: |
Number of junction nucleotides in sequence_vdj (CDR3 + conserved residues)
junction_aa_length:
type: integer
description: >-
Length of JUNCTION in amino acids
functional:
type: string
description: |
Filter for sequences that are either functional, non-functional, or both
#
# iReceptor extensions to the MiAIRR and AIRR Formats parameter models.
#
ireceptor_core_sequences_parameters_model:
type: object
required:
- ir_username
properties:
ir_username:
type: string
description: >
Username of the individual requesting access to the iReceptor
repository node.
ir_project_sample_id_list:
type: array
items:
type: string
ir_data_format:
description: >-
'csv' - vQuest based CSV (as per /v1); 'tsv' - vQuest based
TSV (as per /v1 with tab delimiters instead of commas); 'airr'
- AIRR Formats rearrangements TSV (as per AIRR formats
rearrangements spec)
ireceptor_ancillary_sequences_parameters_model:
type: object
properties:
ir_show_unproductive:
type: string
description: >-
By default, only productive sequences are returned. In order to return
unproductive sequences, set this parameter to "T"
parameters:
#
# Generally useful parameters for all API entry points.
#
ir_username:
name: ir_username
in: query
description: >
Username of the individual requesting access to the iReceptor
repository node. If the iReceptor repository is a public repository,
then this parameter is not required. If the repository is not public
then the username must be supplied and the repository will determine
the access for that user for that repository.
required: false
type: string
ir_username_form:
name: ir_username
in: formData
description: >
Username of the individual requesting access to the iReceptor
repository node. If the iReceptor repository is a public repository,
then this parameter is not required. If the repository is not public
then the username must be supplied and the repository will determine
the access for that user for that repository.
required: false
type: string
#
# MiAIRR compliant parameters for /samples entry points.
# Note: Currently only those parameters used by iReceptor repositories
# are defined here.
#
study_id:
name: study_id
type: string
in: query
study_id_form:
name: study_id
type: string
in: formData
study_title:
name: study_title
type: string
in: query
study_title_form:
name: study_title
type: string
in: formData
study_description:
name: study_description
type: string
in: query
study_description_form:
name: study_description
type: string
in: formData
lab_name:
name: lab_name
type: string
in: query
lab_name_form:
name: lab_name
type: string
in: formData
subject_id:
name: subject_id
type: string
in: query
subject_id_form:
name: subject_id
type: string
in: formData
organism:
name: organism
type: string
in: query
organism_form:
name: organism
type: string
in: formData
sex:
name: sex
type: string
in: query
sex_form:
name: sex
type: string
in: formData
ethnicity:
name: ethnicity
type: array
items:
type: string
in: query
ethnicity_form:
name: ethnicity
type: array
items:
type: string
in: formData
study_group_description:
name: study_group_description
type: array
items:
type: string
in: query
study_group_description_form:
name: study_group_description
type: array
items:
type: string
in: formData
sample_id:
name: sample_id
type: string
in: query
sample_id_form:
name: sample_id
type: string
in: formData
tissue:
name: tissue
type: array
items:
type: string
in: query
tissue_form:
name: tissue
type: array
items:
type: string
in: formData
disease_state_sample:
name: disease_state_sample
type: string
in: query
disease_state_sample_form:
name: disease_state_sample
type: string
in: formData
cell_subset:
name: cell_subset
type: array
items:
type: string
in: query
cell_subset_form:
name: cell_subset
type: array
items:
type: string
in: formData
cell_phenotype:
name: cell_phenotype
type: string
in: query
cell_phenotype_form:
name: cell_phenotype
type: string
in: formData
template_class:
name: template_class
type: array
items:
type: string
in: query
template_class_form:
name: template_class
type: array
items:
type: string
in: formData
sequencing_platform:
name: sequencing_platform
type: string
in: query
sequencing_platform_form:
name: sequencing_platform
type: string
in: formData
#
# iReceptor specific parameters for the /samples API entry point.
#
ir_project_id:
name: ir_project_id
in: query
description: |
e.g. 1
required: false
type: array
items:
type: string
ir_project_id_form:
name: ir_project_id
in: formData
description: |
e.g. 1
required: false
type: array
items:
type: string
ir_subject_age_min:
name: ir_subject_age_min
in: query
description: |
e.g. 10
required: false
type: integer
ir_subject_age_min_form:
name: ir_subject_age_min
in: formData
description: |
e.g. 10
required: false
type: integer
ir_subject_age_max:
name: ir_subject_age_max
in: query
description: |
e.g. 12
required: false
type: integer
ir_subject_age_max_form:
name: ir_subject_age_max
in: formData
description: |
e.g. 12
required: false
type: integer
#
# MiAIRR compliant parameters for rearrangements (/sequences* entry points)
#
germline_database:
name: germline_database
in: query
type: string
description: >
Source of germline V(D)J segments, with version number or
date accessed (e.g. IMGT/V-QUEST Release 201736-4 (7 September 2017)) (AIRR)
germline_database_form:
name: germline_database
in: formData
type: string
description: >
Source of germline V(D)J segments, with version number or
date accessed (e.g. IMGT/V-QUEST Release 201736-4 (7 September 2017)) (AIRR)
cell_index:
name: cell_index
in: query
type: integer
description: |
Cell Index (UID linking sequences from the same cell) (AIRR)
cell_index_form:
name: cell_index
in: formData
type: integer
description: |
Cell Index (UID linking sequences from the same cell) (AIRR)
v_call:
name: v_call
in: query
type: string
description: |
V gene with allele (e.g. IGHV4-59*01) (AIRR)
v_call_form:
name: v_call
in: formData
type: string
description: |
V gene with allele (e.g. IGHV4-59*01) (AIRR)
d_call:
name: d_call
in: query
type: string
description: |
D gene with allele (e.g. IGHD3-10*01) (AIRR)
d_call_form:
name: d_call
in: formData
type: string
description: |
D gene with allele (e.g. IGHD3-10*01) (AIRR)
j_call:
name: j_call
in: query
type: string
description: |
J gene with allele (e.g. IGHJ4*02) (AIRR)
j_call_form:
name: j_call
in: formData
type: string
description: |
J gene with allele (e.g. IGHJ4*02) (AIRR)
c_call:
name: c_call
in: query
type: string
description: |
C region with allele (AIRR)
c_call_form:
name: c_call
in: formData
type: string
description: |
C region with allele (AIRR)
junction_nt:
name: junction_nt
in: query
type: string
description: >
JUNCTION nucleotide sequence (Sequence of the CDR3
region + conserved residues (nucleotide)) (AIRR)
junction_nt_form:
name: junction_nt
in: formData
type: string
description: >
JUNCTION nucleotide sequence (Sequence of the CDR3
region + conserved residues (nucleotide)) (AIRR)
junction_aa:
name: junction_aa
in: query
type: string
description: >
JUNCTION amino acid sequence (Sequence of the CDR3
region + conserved residues (amino acid)) (AIRR)
junction_aa_form:
name: junction_aa
in: formData
type: string
description: >
JUNCTION amino acid sequence (Sequence of the CDR3
region + conserved residues (amino acid)) (AIRR)
duplicate_count:
name: duplicate_count
in: query
type: integer
description: |
Number of times the sequence has been duplicated in a file (AIRR)
duplicate_count_form:
name: duplicate_count
in: formData
type: integer
description: |
Number of times the sequence has been duplicated in a file (AIRR)
#
# AIRR Formats compliant extended parameters for rearrangements (/sequences* entry points)
#
junction_length:
name: junction_length
in: query
type: integer
description: |
Number of junction nucleotides in sequence_vdj (CDR3 + conserved residues)
junction_length_form:
name: junction_length
in: formData
type: integer
description: |
Number of junction nucleotides in sequence_vdj (CDR3 + conserved residues)
junction_aa_length:
name: junction_aa_length
in: query
description: >-
Length of JUNCTION (CDR3 + conserved residues) in amino acids
required: false
type: integer
junction_aa_length_form:
name: junction_aa_length
in: formData
description: >-
Length of JUNCTION (CDR3 + conserved residues) in amino acids
required: false
type: integer
functional:
name: functional
in: query
type: boolean
description: |
Filter for sequences that are either functional, non-functional, or both
functional_form:
name: functional
in: formData
type: boolean
description: |
Filter for sequences that are either functional, non-functional, or both
#
# iReceptor specific parameters for rearrangements (/sequences* entry points)
#
ir_sample_id_list:
name: ir_project_sample_id_list
in: query
description: >
List of unique identifiers (specific to the repository) that identify the samples
to apply the query to.
required: false
type: array
items:
type: string
ir_sample_id_list_form:
name: ir_project_sample_id_list
in: formData
description: >
List of unique identifiers (specific to the repository) that identify the samples
to apply the query to.
required: false
type: array
items:
type: string
ir_data_format:
name: ir_data_format
in: query
description: >-
Data format to return the sequence data in, one of:</br>
'csv' - vQuest based CSV (as per /v1)(default)</br>
'tsv' - vQuest based TSV (as per /v1 with tab delimiters instead of commas);</br>
'airr' - AIRR Formats rearrangements TSV (as per AIRR formats rearrangements spec)
required: false
type: string
ir_data_format_form:
name: ir_data_format
in: formData
description: >-
Data format to return the sequence data in, one of:</br>
'csv' - vQuest based CSV (as per /v1)(default)</br>
'tsv' - vQuest based TSV (as per /v1 with tab delimiters instead of commas);</br>
'airr' - AIRR Formats rearrangements TSV (as per AIRR formats rearrangements spec)
required: false
type: string
ir_show_unproductive:
name: ir_show_unproductive
in: query
description: >
By default, only productive sequences are returned. In order to return
unproductive sequences, set this parameter to "T"
required: false
type: array
items:
type: boolean
ir_show_unproductive_form:
name: ir_show_unproductive
in: formData
description: >
By default, only productive sequences are returned. In order to return
unproductive sequences, set this parameter to "T"
required: false
type: array
items:
type: boolean
ir_junction_nt_length:
name: ir_junction_nt_length
in: query
description: >-
Length of JUNCTION (CDR3 + conserved residues) in nucleotide base pairs (iReceptor)
required: false
type: integer
ir_junction_nt_length_form:
name: ir_junction_nt_length
in: formData
description: >-
Length of JUNCTION (CDR3 + conserved residues) in nucleotide base pairs (iReceptor)
required: false
type: integer
schemes:
- https
produces:
- application/json
consumes:
- application/x-www-form-urlencoded
tags:
- name: info
description: Service information
- name: samples
description: Queries for samples
- name: sequences
description: Queries for sequences
- name: clones
description: Queries for clones
paths:
/:
x-swagger-router-controller: status
get:
description: |
Service heartbeat.
consumes:
- application/octet-stream
operationId: getStatus
responses:
'200':
description: |
Success.
schema:
type: object
properties:
result:
type: string
/info:
x-swagger-router-controller: status
get:
description: |
Service information.
tags:
- info
consumes:
- application/octet-stream
operationId: getInfo
responses:
'200':
description: |
Success.
schema:
type: object
properties:
name:
type: string
version:
type: string
/swagger:
x-swagger-pipe: swagger_raw
/samples:
x-swagger-router-controller: samples
get:
description: >
This service returns metadata about samples, including higher-level
meta-data around the study, subject, diagnosis, and sample processing
(data relevant to MiAIRR data classes 1 through 3). The data returned is
filtered based on the parameters provided.
A successful call returns a json list with a sample level summary of
each sample including a summary count of the number of sequences found
for that sample.
tags:
- samples
parameters:
- $ref: '#/parameters/ir_username'
- $ref: '#/parameters/ir_project_id'
- $ref: '#/parameters/study_id'
- $ref: '#/parameters/study_title'
- $ref: '#/parameters/study_description'
- $ref: '#/parameters/lab_name'
- $ref: '#/parameters/subject_id'
- $ref: '#/parameters/organism'
- $ref: '#/parameters/sex'
- $ref: '#/parameters/ethnicity'
- $ref: '#/parameters/study_group_description'
- $ref: '#/parameters/sample_id'
- $ref: '#/parameters/tissue'
- $ref: '#/parameters/disease_state_sample'
- $ref: '#/parameters/cell_subset'
- $ref: '#/parameters/cell_phenotype'
- $ref: '#/parameters/template_class'
- $ref: '#/parameters/sequencing_platform'
- $ref: '#/parameters/ir_subject_age_min'
- $ref: '#/parameters/ir_subject_age_max'
operationId: getSamples
responses:
'200':
description: |
A successful call returns an array of sample summary metadata for
each sample that meets the search criteria. The metadata returned
for each sample includes the number of sequences found for that sample
as well as the study/subject/sample data for that sample. The metadata
for each sample in the response contains a set of AIRR compliant data
as well as repository specific data that is required to query the
repository about those types of elements.
schema:
$ref: '#/definitions/ireceptor_sample_summary_response'
'400':
description: malformed request
'401':
description: authentication error
'403':
description: authorization error
'404':
description: data not found
'405':
description: method not allowed
post:
description: >
This service returns metadata about samples, including higher-level
meta-data around the study, subject, diagnosis, and sample processing
(data relevant to MiAIRR data classes 1 through 3). The data returned is
filtered based on the parameters provided.
A successful call returns a json list with a sample level summary of
each sample including a summary count of the number of sequences found
for that sample.
tags:
- samples
parameters:
- $ref: '#/parameters/ir_username_form'
- $ref: '#/parameters/ir_project_id_form'
- $ref: '#/parameters/study_id_form'
- $ref: '#/parameters/study_title_form'
- $ref: '#/parameters/study_description_form'
- $ref: '#/parameters/lab_name_form'
- $ref: '#/parameters/subject_id_form'
- $ref: '#/parameters/organism_form'
- $ref: '#/parameters/sex_form'
- $ref: '#/parameters/ethnicity_form'
- $ref: '#/parameters/study_group_description_form'
- $ref: '#/parameters/sample_id_form'
- $ref: '#/parameters/tissue_form'
- $ref: '#/parameters/disease_state_sample_form'
- $ref: '#/parameters/cell_subset_form'
- $ref: '#/parameters/cell_phenotype_form'
- $ref: '#/parameters/template_class_form'
- $ref: '#/parameters/sequencing_platform_form'
- $ref: '#/parameters/ir_subject_age_min_form'
- $ref: '#/parameters/ir_subject_age_max_form'
operationId: postSamples
responses:
'200':
description: >
A successful call returns an array of sample summary metadata for
each sample that meets the search criteria. The metadata returned
for each sample includes the number of sequences found for that sample
as well as the study/subject/sample data for that sample. The metadata
for each sample in the response contains a set of AIRR compliant data
as well as repository specific data that is required to query the
repository about those types of elements.
schema:
$ref: '#/definitions/ireceptor_sample_summary_response'
'400':
description: malformed request
'401':
description: authentication error
'403':
description: authorization error
'404':
description: data not found
'405':
description: method not allowed
/sequences_summary:
x-swagger-router-controller: sequences
get:
description: >
This service returns a summary of sequences that matches the GET
provided filter. "ir_username" parameter refers to user requesting
access to the repository.
tags:
- sequences
parameters:
- $ref: '#/parameters/ir_username'
- $ref: '#/parameters/ir_sample_id_list'
- $ref: '#/parameters/v_call'
- $ref: '#/parameters/d_call'
- $ref: '#/parameters/j_call'
- $ref: '#/parameters/junction_aa'
- $ref: '#/parameters/junction_length'
- $ref: '#/parameters/junction_aa_length'
- $ref: '#/parameters/functional'
- $ref: '#/parameters/ir_show_unproductive'
operationId: getSequenceSummary
responses:
'200':
description: >
A successful call returns two components, an aggregated summary of the data
that satisfies the query and an example subset of the annotated sequence data
that meets the query criteria. The aggreated data returns a summary similar
to that returned by the /samples API entry point, returning the number of
sequences and the study/subject/sample meta-data for each sample. The example
subset of sequence data that is returned is a small subset of annotated sequences
that met the search criteria. The number of sequences returned is given in the
"num_sequences" paramter to the query and the format in which the sequences are
returned is provided by the "sequence_format" parameter to the query.
schema:
type: object
properties:
summary:
$ref: '#/definitions/ireceptor_sequence_summary_response'
items:
$ref: '#/definitions/ireceptor_sequence_response'
'400':
description: malformed request
'401':
description: authentication error
'403':
description: authorization error
'404':
description: data not found
'405':
description: method not allowed
post:
description: >
This service returns a summary of sequences that matches the POST
provided filter. "ir_username" parameter refers to user requesting
access to the repository.
tags:
- sequences
parameters:
- $ref: '#/parameters/ir_username_form'
- $ref: '#/parameters/ir_sample_id_list_form'
- $ref: '#/parameters/v_call_form'
- $ref: '#/parameters/d_call_form'
- $ref: '#/parameters/j_call_form'
- $ref: '#/parameters/junction_aa_form'
- $ref: '#/parameters/junction_length_form'
- $ref: '#/parameters/junction_aa_length_form'
- $ref: '#/parameters/functional_form'
- $ref: '#/parameters/ir_show_unproductive_form'
operationId: postSequenceSummary
responses:
'200':
description: >
A successful call returns two components, an aggregated summary of the data
that satisfies the query and an example subset of the annotated sequence data
that meets the query criteria. The aggreated data returns a summary similar
to that returned by the /samples API entry point, returning the number of
sequences and the study/subject/sample meta-data for each sample. The example
subset of sequence data that is returned is a small subset of annotated sequences
that met the search criteria. The number of sequences returned is given in the
"num_sequences" paramter to the query and the format in which the sequences are
returned is provided by the "sequence_format" parameter to the query.
schema:
type: object
properties:
summary:
$ref: '#/definitions/ireceptor_sequence_summary_response'
items:
$ref: '#/definitions/ireceptor_sequence_response'
'400':
description: malformed request
'401':
description: authentication error
'403':
description: authorization error
'404':
description: data not found
'405':
description: method not allowed
/sequences_data:
x-swagger-router-controller: sequences
get:
description: >
This service returns the annotation data that matches the GET provided
filter. "username" parameter refers to external_users table, and it
requires the array of "project_sample_id", which limits which samples
the sequences will be taken from. Other parameters are optional, and
refer to the sequence_md_view view in iReceptor database.
tags:
- sequences
parameters:
- $ref: '#/parameters/ir_username'
- $ref: '#/parameters/ir_sample_id_list'
- $ref: '#/parameters/ir_data_format'
- $ref: '#/parameters/v_call'
- $ref: '#/parameters/d_call'
- $ref: '#/parameters/j_call'
- $ref: '#/parameters/junction_aa'
- $ref: '#/parameters/junction_length'
- $ref: '#/parameters/junction_aa_length'
- $ref: '#/parameters/functional'
- $ref: '#/parameters/ir_show_unproductive'
operationId: getSequenceData
responses:
'200':
description: >
A successful call returns an array of sequence data. Optional
"format" parameter determines the output format. Default is a JSON
response, limited to top 50 results. If "format" is set to "csv", it
will return all the matching sequence annotations, in addition to
sample information and annotation tool information, in a
comma-separated format; "tsv" returns a tab-delimited outputs;
"airr" returns AIRR minimal standards encoded tab-delimited outputs.
schema:
type: file
'400':
description: malformed request
'401':
description: authentication error
'403':
description: authorization error
'404':
description: data not found
'405':
description: method not allowed
post:
description: >
This service returns the annotation data that matches the POST provided
filter. "username" parameter refers to external_users table, and it
requires the array of "project_sample_id", which limits which samples
the sequences will be taken from. Other parameters are optional, and
refer to the sequence_md_view view in iReceptor database. A full list of
possible parameters is in the iReceptorAPI-sequenceMetadata file
tags:
- sequences
parameters:
- $ref: '#/parameters/ir_username_form'
- $ref: '#/parameters/ir_sample_id_list_form'
- $ref: '#/parameters/ir_data_format_form'
- $ref: '#/parameters/v_call_form'
- $ref: '#/parameters/d_call_form'
- $ref: '#/parameters/j_call_form'
- $ref: '#/parameters/junction_aa_form'
- $ref: '#/parameters/junction_length_form'
- $ref: '#/parameters/junction_aa_length_form'
- $ref: '#/parameters/functional_form'
- $ref: '#/parameters/ir_show_unproductive_form'
operationId: postSequenceData
responses:
'200':
description: >
A successful call returns an array of sequence data. Optional
"format" parameter determines the output format. Default is a JSON
response, limited to top 50 results. If "format" is set to "csv", it
will return all the matching sequence annotations, in addition to
sample information and annotation tool information, in a
comma-separated format; "tsv" returns a tab-delimited outputs;
"airr" returns AIRR minimal standards encoded tab-delimited outputs.
schema:
type: file
'400':
description: malformed request
'401':
description: authentication error
'403':
description: authorization error
'404':
description: data not found
'405':
description: method not allowed
/clones_summary:
x-swagger-router-controller: clones
post:
description: >
This service returns a summary of sequence clones that match the GET
provided filter. "username" parameter refers to external_users table.
tags:
- clones
parameters:
- $ref: '#/parameters/ir_username_form'
- $ref: '#/parameters/ir_sample_id_list_form'
- $ref: '#/parameters/v_call_form'
- $ref: '#/parameters/d_call_form'
- $ref: '#/parameters/j_call_form'
- $ref: '#/parameters/junction_aa_form'
- $ref: '#/parameters/junction_length_form'
- $ref: '#/parameters/junction_aa_length_form'
- $ref: '#/parameters/functional_form'
- $ref: '#/parameters/ir_show_unproductive_form'
operationId: postCloneSummary
responses:
'200':