Skip to content

Commit 4eb68ff

Browse files
author
Guy Davenport
committed
added nullable: true to remaining
1 parent cc28c32 commit 4eb68ff

File tree

78 files changed

+663
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+663
-17
lines changed

Specification/BrAPI-Core/Studies/Schemas/StudyNewRequest.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ components:
120120
121121
MIAPPE V1.1 (DM-12) Study title - Human-readable text summarising the study
122122
type: string
123+
nullable: true
123124
example: INRA's Walnut Genetic Resources Observation at Kenya
124125
studyCode:
125126
description: A short human readable code for a study
@@ -134,6 +135,7 @@ components:
134135
studyType:
135136
description: The type of study being performed. ex. "Yield Trial", etc
136137
type: string
138+
nullable: true
137139
example: Phenotyping
138140
trialDbId:
139141
description: The ID which uniquely identifies a trial

Specification/BrAPI-Genotyping/AlleleMatrix/Schemas/AlleleMatrix.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,39 @@ components:
1919
pagination:
2020
description: Pagination for the matrix
2121
type: array
22+
nullable: true
2223
items:
2324
type: object
2425
properties:
2526
dimension:
2627
description: The dimension of the matrix being paginated
2728
type: string
29+
nullable: true
2830
enum:
2931
- CALLSETS
3032
- VARIANTS
3133
example: VARIANTS
3234
pageSize:
3335
description: the maximum number of elements per page in this dimension of the matrix
3436
type: integer
37+
nullable: true
3538
example: 500
3639
page:
3740
description: the requested page number (zero indexed)
3841
type: integer
42+
nullable: true
3943
example: 0
4044
totalCount:
4145
description: The total number of elements that are available on the server and match the requested query parameters.
4246
type: integer
47+
nullable: true
4348
example: 10000
4449
totalPages:
4550
description: |-
4651
The total number of pages of elements available on the server. This should be calculated with the following formula.
4752
<br/>totalPages = CEILING( totalCount / requested_page_size)
4853
type: integer
54+
nullable: true
4955
example: 20
5056
example:
5157
- dimension: VARIANTS
@@ -73,19 +79,22 @@ components:
7379
variantDbIds:
7480
description: A list of unique identifiers for the Variants contained in the matrix response. This array should match the ordering for rows in the matrix.
7581
type: array
82+
nullable: true
7683
items:
7784
type: string
7885
example: ['feb54257', 'feb40355', 'feb40323']
7986
dataMatrices:
8087
description: The 'dataMatrices' are an array of matrix objects that hold the allele data and associated metadata. Each matrix should be the same size and orientation, aligned with the "callSetDbIds" as columns and the "variantDbIds" as rows.
8188
type: array
89+
nullable: true
8290
items:
8391
description: This is a single data matrix. It could be the allele matrix or an additional layer of metadata associated with each genotype value.
8492
type: object
8593
properties:
8694
dataType:
8795
description: The type of field represented in this data matrix. This is intended to help parse the data out of JSON.
8896
type: string
97+
nullable: true
8998
enum:
9099
- string
91100
- integer
@@ -97,16 +106,19 @@ components:
97106
The name of the field represented in this data matrix. The key word "Genotype" is reserved for the allele matrix. Examples of other metadata matrices include: "Genotype Quality", "Read Depth", and "Haplotype Quality"
98107
<br> This maps to a FORMAT field in the VCF file standard.
99108
type: string
109+
nullable: true
100110
example: Genotype
101111
dataMatrixAbbreviation:
102112
description: |-
103113
The abbreviated code of the field represented in this data matrix. These codes should match the VCF standard when possible and the key word "GT" is reserved for the allele matrix. Examples of other metadata matrices include: "GQ", "RD", and "HQ"
104114
<br> This maps to a FORMAT field in the VCF file standard.
105115
type: string
116+
nullable: true
106117
example: GT
107118
dataMatrix:
108119
description: The two dimensional array of data, providing the allele matrix or an additional layer of metadata associated with each genotype value. Each matrix should be the same size and orientation, aligned with the "callSetDbIds" as columns and the "variantDbIds" as rows.
109120
type: array
121+
nullable: true
110122
items:
111123
description: An array of rows in the data matrix
112124
type: array
@@ -135,16 +147,20 @@ components:
135147
expandHomozygotes:
136148
description: Should homozygotes be expanded (true) or collapsed into a single occurrence (false)
137149
type: boolean
150+
nullable: true
138151
example: true
139152
sepPhased:
140153
description: The string used as a separator for phased allele calls.
141154
type: string
155+
nullable: true
142156
example: '|'
143157
sepUnphased:
144158
description: The string used as a separator for unphased allele calls.
145159
type: string
160+
nullable: true
146161
example: '/'
147162
unknownString:
148163
description: The string used as a representation for missing data.
149164
type: string
165+
nullable: true
150166
example: '.'

Specification/BrAPI-Genotyping/AlleleMatrix/Schemas/AlleleMatrixParameters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ components:
9393
positionRange:
9494
name: positionRange
9595
description: |-
96-
The postion range to search
96+
The position range to search
9797
<br/> Uses the format "contig:start-end" where "contig" is the chromosome or contig name, "start" is
9898
the starting position of the range, and "end" is the ending position of the range
9999
<br> Example: CRHOM_1:12000-14000

Specification/BrAPI-Genotyping/AlleleMatrix/Schemas/AlleleMatrixSearchRequest.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ components:
1111
pagination:
1212
description: Pagination for the matrix
1313
type: array
14+
nullable: true
1415
items:
1516
type: object
1617
properties:
@@ -53,13 +54,15 @@ components:
5354
description: |-
5455
`dataMatrixNames` is a list of names (ie 'Genotype', 'Read Depth' etc). This list controls which data matrices are returned in the response.
5556
type: array
57+
nullable: true
5658
items:
5759
type: string
5860
example: ['Genotype', 'Read Depth']
5961
dataMatrixAbbreviations:
6062
description: |-
6163
`dataMatrixAbbreviations` is a comma seperated list of abbreviations (ie 'GT', 'RD' etc). This list controls which data matrices are returned in the response.
6264
type: array
65+
nullable: true
6366
items:
6467
type: string
6568
example: ['GT', 'RD']
@@ -70,30 +73,35 @@ components:
7073
Uses the format "<chrom>:<start>-<end>" where <chrom> is the chromosome name, <start> is
7174
the starting position of the range, and <end> is the ending position of the range
7275
type: array
76+
nullable: true
7377
items:
7478
type: string
7579
example: [ '20:1000-35000', '20:87000-125000' ]
7680
germplasmNames:
7781
description: A list of human readable `Germplasm` names
7882
type: array
83+
nullable: true
7984
items:
8085
type: string
8186
example: [ 'a03202ec', '274e4f63' ]
8287
germplasmPUIs:
8388
description: A list of permanent unique identifiers associated with `Germplasm`
8489
type: array
90+
nullable: true
8591
items:
8692
type: string
8793
example: [ 'a03202ec', '274e4f63' ]
8894
germplasmDbIds:
8995
description: A list of IDs which uniquely identify `Germplasm` within the given database server
9096
type: array
97+
nullable: true
9198
items:
9299
type: string
93100
example: [ 'a03202ec', '274e4f63' ]
94101
sampleDbIds:
95102
description: A list of IDs which uniquely identify `Samples` within the given database server
96103
type: array
104+
nullable: true
97105
items:
98106
type: string
99107
example: [ 'a03202ec', '274e4f63' ]
@@ -106,28 +114,34 @@ components:
106114
variantDbIds:
107115
description: A list of IDs which uniquely identify `Variants` within the given database server
108116
type: array
117+
nullable: true
109118
items:
110119
type: string
111120
example: [ 'bba0b258', 'ff97d4f0' ]
112121
variantSetDbIds:
113122
description: A list of IDs which uniquely identify `VariantSets` within the given database server
114123
type: array
124+
nullable: true
115125
items:
116126
type: string
117127
example: [ '407c0508', '49e24dfc' ]
118128
expandHomozygotes:
119129
description: Should homozygotes be expanded (true) or collapsed into a single occurrence (false)
120130
type: boolean
131+
nullable: true
121132
example: true
122133
sepPhased:
123134
description: The string used as a separator for phased allele calls.
124135
type: string
136+
nullable: true
125137
example: '|'
126138
sepUnphased:
127139
description: The string used as a separator for unphased allele calls.
128140
type: string
141+
nullable: true
129142
example: '/'
130143
unknownString:
131144
description: The string used as a representation for missing data.
132145
type: string
146+
nullable: true
133147
example: '.'

Specification/BrAPI-Genotyping/CallSets/Schemas/CallSet.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@ components:
2121
type: string
2222
description: A free space containing any additional information related to a particular object. A data source may provide any JSON object, unrestricted by the BrAPI specification.
2323
type: object
24+
nullable: true
2425
externalReferences:
2526
$ref: '#/components/schemas/ExternalReferences'
27+
nullable: true
2628
sampleDbId:
2729
description: The Biosample entity the call set data was generated from.
2830
type: string
31+
nullable: true
2932
example: 5e50e11d
3033
created:
3134
description: The date this call set was created
3235
type: string
36+
nullable: true
3337
format: date-time
3438
callSetDbId:
3539
description: The ID which uniquely identifies a CallSet within the given database server
@@ -38,19 +42,23 @@ components:
3842
callSetName:
3943
description: The human readable name which identifies a germplasm within the given database server
4044
type: string
45+
nullable: true
4146
example: Sample_123_DNA_Run_456
4247
updated:
4348
description: The time at which this call set was last updated
4449
type: string
50+
nullable: true
4551
format: date-time
4652
studyDbId:
4753
description: The ID which uniquely identifies a study within the given database server
4854
type: string
55+
nullable: true
4956
example: 708149c1
5057
variantSetDbIds:
5158
description: The IDs of the variantSets this callSet has calls in.
5259
items:
5360
type: string
5461
type: array
62+
nullable: true
5563
example: [ 'cfd3d60f', 'a4e8bfe9' ]
5664

Specification/BrAPI-Genotyping/CallSets/Schemas/CallSetsSearchRequest.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,35 @@ components:
1919
sampleDbIds:
2020
description: A list of IDs which uniquely identify `Samples` within the given database server
2121
type: array
22+
nullable: true
2223
items:
2324
type: string
2425
example: [ '758d3f6d', '39c0a3f7']
2526
sampleNames:
2627
description: A list of human readable names associated with `Samples`
2728
type: array
29+
nullable: true
2830
items:
2931
type: string
3032
example: [ 'Sample_123', 'Sample_789' ]
3133
callSetDbIds:
3234
description: A list of IDs which uniquely identify `CallSets` within the given database server
3335
type: array
36+
nullable: true
3437
items:
3538
type: string
3639
example: [ '6c7486b2', '49c36a73']
3740
callSetNames:
3841
description: A list of human readable names associated with `CallSets`
3942
type: array
43+
nullable: true
4044
items:
4145
type: string
4246
example: [ 'Sample_123_DNA_Run_456', 'Sample_789_DNA_Run_101' ]
4347
variantSetDbIds:
4448
description: A list of IDs which uniquely identify `VariantSets` within the given database server
4549
type: array
50+
nullable: true
4651
items:
4752
type: string
4853
example: [ '8a9a8972', '32a2649a']

Specification/BrAPI-Genotyping/Calls/Schemas/Call.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ components:
2626
type: string
2727
description: A free space containing any additional information related to a particular object. A data source may provide any JSON object, unrestricted by the BrAPI specification.
2828
type: object
29+
nullable: true
2930
callSetDbId:
3031
description: |-
3132
The ID of the call set this variant call belongs to.

Specification/BrAPI-Genotyping/Calls/Schemas/CallsListResponse.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,21 @@ components:
3434
expandHomozygotes:
3535
description: Should homozygotes be expanded (true) or collapsed into a single occurrence (false)
3636
type: boolean
37+
nullable: true
3738
example: true
3839
sepPhased:
3940
description: The string used as a separator for phased allele calls.
4041
type: string
42+
nullable: true
4143
example: '|'
4244
sepUnphased:
4345
description: The string used as a separator for unphased allele calls.
4446
type: string
47+
nullable: true
4548
example: '/'
4649
unknownString:
4750
description: The string used as a representation for missing data.
4851
type: string
52+
nullable: true
4953
example: '.'
5054

Specification/BrAPI-Genotyping/Calls/Schemas/CallsSearchRequest.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,41 @@ components:
1313
callSetDbIds:
1414
description: A list of IDs which uniquely identify `CallSets` within the given database server
1515
type: array
16+
nullable: true
1617
items:
1718
type: string
1819
example: [ 'a03202ec', '274e4f63' ]
1920
variantDbIds:
2021
description: A list of IDs which uniquely identify `Variant` within the given database server
2122
type: array
23+
nullable: true
2224
items:
2325
type: string
2426
example: [ 'bba0b258', 'ff97d4f0' ]
2527
variantSetDbIds:
2628
description: A list of IDs which uniquely identify `VariantSets` within the given database server
2729
type: array
30+
nullable: true
2831
items:
2932
type: string
3033
example: [ '407c0508', '49e24dfc' ]
3134
expandHomozygotes:
3235
description: Should homozygotes be expanded (true) or collapsed into a single occurrence (false)
3336
type: boolean
37+
nullable: true
3438
example: true
3539
sepPhased:
3640
description: The string used as a separator for phased allele calls.
3741
type: string
42+
nullable: true
3843
example: '|'
3944
sepUnphased:
4045
description: The string used as a separator for unphased allele calls.
4146
type: string
47+
nullable: true
4248
example: '/'
4349
unknownString:
4450
description: The string used as a representation for missing data.
4551
type: string
52+
nullable: true
4653
example: '.'

0 commit comments

Comments
 (0)